Dela via


ManagedServiceIdentitiesExtensions.GetSystemAssignedIdentity Method

Definition

Overloads

GetSystemAssignedIdentity(ArmResource)

Gets an object representing a SystemAssignedIdentityResource along with the instance operations that can be performed on it in the ArmResource. MockingTo mock this method, please mock GetSystemAssignedIdentity() instead.

GetSystemAssignedIdentity(ArmClient, ResourceIdentifier)

Gets an object representing a SystemAssignedIdentityResource along with the instance operations that can be performed on it in the ArmClient. MockingTo mock this method, please mock GetSystemAssignedIdentity(ResourceIdentifier) instead.

GetSystemAssignedIdentity(ArmResource)

Source:
ManagedServiceIdentitiesExtensions.cs
Source:
ManagedServiceIdentitiesExtensions.cs

Gets an object representing a SystemAssignedIdentityResource along with the instance operations that can be performed on it in the ArmResource. MockingTo mock this method, please mock GetSystemAssignedIdentity() instead.

public static Azure.ResourceManager.ManagedServiceIdentities.SystemAssignedIdentityResource GetSystemAssignedIdentity (this Azure.ResourceManager.ArmResource armResource);
static member GetSystemAssignedIdentity : Azure.ResourceManager.ArmResource -> Azure.ResourceManager.ManagedServiceIdentities.SystemAssignedIdentityResource
<Extension()>
Public Function GetSystemAssignedIdentity (armResource As ArmResource) As SystemAssignedIdentityResource

Parameters

armResource
ArmResource

The ArmResource instance the method will execute against.

Returns

Returns a SystemAssignedIdentityResource object.

Exceptions

armResource is null.

Applies to

GetSystemAssignedIdentity(ArmClient, ResourceIdentifier)

Source:
ManagedServiceIdentitiesExtensions.cs
Source:
ManagedServiceIdentitiesExtensions.cs

Gets an object representing a SystemAssignedIdentityResource along with the instance operations that can be performed on it in the ArmClient. MockingTo mock this method, please mock GetSystemAssignedIdentity(ResourceIdentifier) instead.

public static Azure.ResourceManager.ManagedServiceIdentities.SystemAssignedIdentityResource GetSystemAssignedIdentity (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope);
static member GetSystemAssignedIdentity : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.ManagedServiceIdentities.SystemAssignedIdentityResource
<Extension()>
Public Function GetSystemAssignedIdentity (client As ArmClient, scope As ResourceIdentifier) As SystemAssignedIdentityResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

Returns

Returns a SystemAssignedIdentityResource object.

Exceptions

client is null.

Applies to