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.

C#
public static Azure.ResourceManager.ManagedServiceIdentities.SystemAssignedIdentityResource GetSystemAssignedIdentity(this Azure.ResourceManager.ArmResource armResource);

Parameters

armResource
ArmResource

The ArmResource instance the method will execute against.

Returns

Returns a SystemAssignedIdentityResource object.

Exceptions

armResource is null.

Applies to

Azure SDK for .NET Preview dan Azure SDK for .NET Latest
Produk Versi
Azure SDK for .NET Latest, Preview

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.

C#
public static Azure.ResourceManager.ManagedServiceIdentities.SystemAssignedIdentityResource GetSystemAssignedIdentity(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope);

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

Azure SDK for .NET Preview dan Azure SDK for .NET Latest
Produk Versi
Azure SDK for .NET Latest, Preview