using azure sdk to get managed identities from Microsoft Entra

The SDK can be download here (under Azure Management) 

https://azure.github.io/azure-sdk/releases/latest/mgmt/dotnet.html

and look for Resource Management - Managed Service Identity


Install this library and get started using the code snippet from the website that looks something like this 


using System;

using System.Threading.Tasks;

using Azure.Core;

using Azure.Identity;

using Azure.ResourceManager;

using Azure.ResourceManager.Compute;

using Azure.ResourceManager.Resources;

ArmClient client = new ArmClient(new DefaultAzureCredential());


You also need the required permission/role assignment setup in Microsoft Entra. 

Next best places to get started is to look at the same code. The sdk itself is pretty straight forward.


https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ManagedServiceIdentities_1.1.0/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/




Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm