ResourceManagerModelFactory.ManagedServiceIdentity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of LocationExpanded.
public static Azure.ResourceManager.Models.ManagedServiceIdentity ManagedServiceIdentity (Guid? principalId = default, Guid? tenantId = default, Azure.ResourceManager.Models.ManagedServiceIdentityType managedServiceIdentityType = default, System.Collections.Generic.IDictionary<Azure.Core.ResourceIdentifier,Azure.ResourceManager.Models.UserAssignedIdentity> userAssignedIdentities = default);
static member ManagedServiceIdentity : Nullable<Guid> * Nullable<Guid> * Azure.ResourceManager.Models.ManagedServiceIdentityType * System.Collections.Generic.IDictionary<Azure.Core.ResourceIdentifier, Azure.ResourceManager.Models.UserAssignedIdentity> -> Azure.ResourceManager.Models.ManagedServiceIdentity
Public Shared Function ManagedServiceIdentity (Optional principalId As Nullable(Of Guid) = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional managedServiceIdentityType As ManagedServiceIdentityType = Nothing, Optional userAssignedIdentities As IDictionary(Of ResourceIdentifier, UserAssignedIdentity) = Nothing) As ManagedServiceIdentity
Parameters
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
- managedServiceIdentityType
- ManagedServiceIdentityType
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- userAssignedIdentities
- IDictionary<ResourceIdentifier,UserAssignedIdentity>
The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
Returns
A new ManagedServiceIdentity instance for mocking.
Applies to
Azure SDK for .NET