Share via


IWithSystemAssignedIdentityBasedAccessOrCreate.WithSystemAssignedIdentityBasedAccessTo Method

Definition

Overloads

WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

Specifies a system assigned managed service identity with access to a specific resource with a specific 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 specific 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

The next stage of the defintion.

Implements

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

The next stage of the defintion.

Implements

Applies to