共用方式為


IWithSystemAssignedIdentityBasedAccessOrApply.WithSystemAssignedIdentityBasedAccessTo Method

Definition

Overloads

WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on an ARM resource identified by the resource ID. Applications running on the scale set VM instance will have the same permission (role) on the ARM resource.

WithSystemAssignedIdentityBasedAccessTo(String, String)

Specifies that virtual machine scale set 's system assigned (local) identity should have the access (described by the role definition) on an ARM resource identified by the resource ID. Applications running on the scale set VM instance will have the same permission (role) on the ARM resource.

WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on an ARM resource identified by the resource ID. Applications running on the scale set VM instance will have the same permission (role) on the ARM resource.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSet.Update.IWithSystemAssignedIdentityBasedAccessOrApply 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.Compute.Fluent.VirtualMachineScaleSet.Update.IWithSystemAssignedIdentityBasedAccessOrApply
Public Function WithSystemAssignedIdentityBasedAccessTo (resourceId As String, role As BuiltInRole) As IWithSystemAssignedIdentityBasedAccessOrApply

Parameters

resourceId
String

The ARM identifier of the resource.

role
BuiltInRole

Access role to assigned to the scale set local identity.

Returns

Applies to

WithSystemAssignedIdentityBasedAccessTo(String, String)

Specifies that virtual machine scale set 's system assigned (local) identity should have the access (described by the role definition) on an ARM resource identified by the resource ID. Applications running on the scale set VM instance will have the same permission (role) on the ARM resource.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSet.Update.IWithSystemAssignedIdentityBasedAccessOrApply WithSystemAssignedIdentityBasedAccessTo (string resourceId, string roleDefinitionId);
abstract member WithSystemAssignedIdentityBasedAccessTo : string * string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSet.Update.IWithSystemAssignedIdentityBasedAccessOrApply
Public Function WithSystemAssignedIdentityBasedAccessTo (resourceId As String, roleDefinitionId As String) As IWithSystemAssignedIdentityBasedAccessOrApply

Parameters

resourceId
String

Scope of the access represented in ARM resource ID format.

roleDefinitionId
String

Access role definition to assigned to the scale set local identity.

Returns

Applies to