1. Hugo Moors
  2. PowerBuilder
  3. Monday, 22 May 2023 14:18 PM UTC

How would I use Azure managed identity with Powerbuilder (currently using 2022 build 1892 application uses runtime 22.0.0.1878)?

We're setting up blob storage and my application needs to access it.

Some examples would be helpful

How would something like this be done in Powerbuilder:

var clientId = "xxxx";
var secret = "yyyy";
var tenant = "ttttt";

ClientSecretCredential credential = new ClientSecretCredential(tenant, clientId, secret);
string accountName = "aaaa";

string url = string.Format("https://{0}.blob.core.windows.net/", accountName);
var client = new BlobServiceClient(new Uri(url), credential);

 

Thanks

 

Hugo Moors Accepted Answer Pending Moderation
  1. Wednesday, 24 May 2023 09:16 AM UTC
  2. PowerBuilder
  3. # 1

Here is where I got the above code from, this was given to me by the Azure administrators as something that my app should have to do:

https://stackoverflow.com/questions/63206596/authenticate-to-blobserviceclient-using-clientsecretcredential-in-a-native-app

Specifically this part I have no idea where to start

ClientSecretCredential credential = new ClientSecretCredential(tenant, clientId, secret);
Comment
  1. mike S
  2. Wednesday, 24 May 2023 16:22 PM UTC
get the REST api version of that.

they gave you c# library calls that generate the rest api
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 22 May 2023 15:09 PM UTC
  2. PowerBuilder
  3. # 2

are you already using Azure AD?  

If not, (or as an alternative), it is fairly typical for blob storage processing to create a SAS access token and use that.  

 

 

 

Comment
  1. Hugo Moors
  2. Monday, 22 May 2023 17:03 PM UTC
I know SAS tokens and they are easy.

But the powers that be have decided managed identities, is the way to go so my app is going to have to use it.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.