IWithSystemAssignedIdentityBasedAccessOrCreateBeta.WithSystemAssignedIdentityBasedAccessTo Method

Definition

Overloads

WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

Specifies a system assigned managed service identity with access to a specific resource with a specified role.

WithSystemAssignedIdentityBasedAccessTo(String, String)

Specifies a system assigned managed service identity with access to a specific resource with a specified role from the id.

WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

Specifies a system assigned managed service identity with access to a specific resource with a specified role.

public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate WithSystemAssignedIdentityBasedAccessTo (string resourceId, Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role);
abstract member WithSystemAssignedIdentityBasedAccessTo : string * Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate
Public Function WithSystemAssignedIdentityBasedAccessTo (resourceId As String, role As BuiltInRole) As IWithSystemAssignedIdentityBasedAccessOrCreate

Parameters

resourceId
String

The id of the resource you are setting up access to.

role
BuiltInRole

Access role to be assigned to the identity.

Returns

IWithSystemAssignedIdentityBasedAccessOrCreate

Applies to

WithSystemAssignedIdentityBasedAccessTo(String, String)

Specifies a system assigned managed service identity with access to a specific resource with a specified role from the id.

public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate WithSystemAssignedIdentityBasedAccessTo (string resourceId, string roleDefinitionId);
abstract member WithSystemAssignedIdentityBasedAccessTo : string * string -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate
Public Function WithSystemAssignedIdentityBasedAccessTo (resourceId As String, roleDefinitionId As String) As IWithSystemAssignedIdentityBasedAccessOrCreate

Parameters

resourceId
String

The id of the resource you are setting up access to.

roleDefinitionId
String

Id of the access role to be assigned to the identity.

Returns

IWithSystemAssignedIdentityBasedAccessOrCreate

Applies to