ArmManagedServiceIdentitiesModelFactory.UserAssignedIdentityData Method

Definition

public static Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityData UserAssignedIdentityData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Guid? tenantId = default, Guid? principalId = default, Guid? clientId = default, Azure.ResourceManager.ManagedServiceIdentities.Models.IsolationScope? isolationScope = default, System.Collections.Generic.IEnumerable<string> assignmentRestrictionsProviders = default);
static member UserAssignedIdentityData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Nullable<Guid> * Nullable<Guid> * Nullable<Guid> * Nullable<Azure.ResourceManager.ManagedServiceIdentities.Models.IsolationScope> * seq<string> -> Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityData
Public Shared Function UserAssignedIdentityData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional principalId As Nullable(Of Guid) = Nothing, Optional clientId As Nullable(Of Guid) = Nothing, Optional isolationScope As Nullable(Of IsolationScope) = Nothing, Optional assignmentRestrictionsProviders As IEnumerable(Of String) = Nothing) As UserAssignedIdentityData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

tenantId
Nullable<Guid>

The id of the tenant which the identity belongs to.

principalId
Nullable<Guid>

The id of the service principal object associated with the created identity.

clientId
Nullable<Guid>

The id of the app associated with the identity. This is a random generated UUID by MSI.

isolationScope
Nullable<IsolationScope>

Enum to configure regional restrictions on identity assignment, as necessary.

assignmentRestrictionsProviders
IEnumerable<String>

List of resource providers or resource providers with resource types that this identity can be assigned to (case-insensitive). Examples: 'Microsoft.Compute', 'Microsoft.Storage/Accounts', 'Microsoft.Network/VirtualNetworks'.

Returns

A new UserAssignedIdentityData instance for mocking.

Applies to