Condividi tramite


ArmDeviceRegistryModelFactory.SystemAssignedServiceIdentity Method

Definition

Managed service identity (either system assigned, or none).

public static Azure.ResourceManager.DeviceRegistry.Models.SystemAssignedServiceIdentity SystemAssignedServiceIdentity(Guid? principalId = default, Guid? tenantId = default, Azure.ResourceManager.DeviceRegistry.Models.SystemAssignedServiceIdentityType type = default);
static member SystemAssignedServiceIdentity : Nullable<Guid> * Nullable<Guid> * Azure.ResourceManager.DeviceRegistry.Models.SystemAssignedServiceIdentityType -> Azure.ResourceManager.DeviceRegistry.Models.SystemAssignedServiceIdentity
Public Shared Function SystemAssignedServiceIdentity (Optional principalId As Nullable(Of Guid) = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional type As SystemAssignedServiceIdentityType = Nothing) As SystemAssignedServiceIdentity

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.

type
SystemAssignedServiceIdentityType

The type of managed identity assigned to this resource.

Returns

A new SystemAssignedServiceIdentity instance for mocking.

Applies to