ResourceManagerModelFactory.ManagedServiceIdentity Method

Definition

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

principalId
Nullable<Guid>

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

tenantId
Nullable<Guid>

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