Class ManagedIdentityId
Class to store configuration for a managed identity enabled on a resource. For a system assigned managed identity use ManagedIdentityId.SystemAssigned. For user assigned managed identity use ManagedIdentityId.WithUserAssignedClientId("clientId") or ManagedIdentityId.WithUserAssignedResourceId("resourceId") or ManagedIdentityId.WithUserAssignedObjectId("objectid"). For more details see https://aka.ms/msal-net-managed-identity
public class ManagedIdentityId
- Inheritance
-
ManagedIdentityId
- Inherited Members
Properties
SystemAssigned
Create an instance of ManagedIdentityId for a system assigned managed identity.
public static ManagedIdentityId SystemAssigned { get; }
Property Value
Methods
WithUserAssignedClientId(string)
Create an instance of ManagedIdentityId for a user assigned managed identity from a client id.
public static ManagedIdentityId WithUserAssignedClientId(string clientId)
Parameters
clientId
stringClient id of the user assigned managed identity assigned to the azure resource.
Returns
- ManagedIdentityId
Instance of ManagedIdentityId.
Exceptions
WithUserAssignedObjectId(string)
Create an instance of ManagedIdentityId for a user assigned managed identity from an object id.
public static ManagedIdentityId WithUserAssignedObjectId(string objectId)
Parameters
objectId
stringObject id of the user assigned managed identity assigned to the azure resource.
Returns
- ManagedIdentityId
Instance of ManagedIdentityId.
Exceptions
WithUserAssignedResourceId(string)
Create an instance of ManagedIdentityId for a user assigned managed identity from a resource id.
public static ManagedIdentityId WithUserAssignedResourceId(string resourceId)
Parameters
resourceId
stringResource id of the user assigned managed identity assigned to the azure resource.
Returns
- ManagedIdentityId
Instance of ManagedIdentityId.