共用方式為


IWithSystemAssignedIdentityBasedAccessOrCreate.WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup Method

Definition

Overloads

WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup(BuiltInRole)

Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on the resource group that virtual machine resides. Applications running on the virtual machine will have the same permission (role) on the resource group.

WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup(String)

Specifies that virtual machine's system assigned (local) identity should have the access (described by the role definition) on the resource group that virtual machine resides. Applications running on the virtual machine will have the same permission (role) on the resource group.

WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup(BuiltInRole)

Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on the resource group that virtual machine resides. Applications running on the virtual machine will have the same permission (role) on the resource group.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup (Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role);
abstract member WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate
Public Function WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup (role As BuiltInRole) As IWithSystemAssignedIdentityBasedAccessOrCreate

Parameters

role
BuiltInRole

Access role to assigned to the virtual machine's local identity.

Returns

Applies to

WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup(String)

Specifies that virtual machine's system assigned (local) identity should have the access (described by the role definition) on the resource group that virtual machine resides. Applications running on the virtual machine will have the same permission (role) on the resource group.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup (string roleDefinitionId);
abstract member WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup : string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate
Public Function WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup (roleDefinitionId As String) As IWithSystemAssignedIdentityBasedAccessOrCreate

Parameters

roleDefinitionId
String

Access role definition to assigned to the virtual machine's local identity.

Returns

Applies to