You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been referring to these samples to figure out how to use the BatchManagementClient. (The other Batch client doesn't support user-assigned managed identity) The package Microsoft.IdentityModel.Clients.ActiveDirectory is deprecated and will stop receiving updates in December 2022 (3 months as of writing).
The sample should be updated to instead use Microsoft.Identity.Client, which would look something like this. It would also be great to update beyond .net462.
varcred=newDefaultAzureCredential(false);// I'm running this on an azure function, with system managed identity.vartoken=cred.GetTokenAsync(newTokenRequestContext(newstring[]{"https://management.core.windows.net/",}));usingvarbatchManagementClient=newBatchManagementClient(newTokenCredentials(token.Result.Token));
The text was updated successfully, but these errors were encountered:
I've been referring to these samples to figure out how to use the BatchManagementClient. (The other Batch client doesn't support user-assigned managed identity) The package
Microsoft.IdentityModel.Clients.ActiveDirectory
is deprecated and will stop receiving updates in December 2022 (3 months as of writing).azure-batch-samples/CSharp/AccountManagement/AccountManagement.csproj
Line 15 in 079a7d2
The sample should be updated to instead use
Microsoft.Identity.Client
, which would look something like this. It would also be great to update beyond.net462
.The text was updated successfully, but these errors were encountered: