IWithSystemAssignedIdentityBasedAccessOrCreate.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 virtual machine will have the same permission (role) on the ARM resource.

WithSystemAssignedIdentityBasedAccessTo(String, String)

Specifies that virtual machine'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 virtual machine 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 virtual machine will have the same permission (role) on the ARM resource.

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

Parameters

resourceId
String

The ARM identifier of the resource.

role
BuiltInRole

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

Returns

Applies to

WithSystemAssignedIdentityBasedAccessTo(String, String)

Specifies that virtual machine'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 virtual machine will have the same permission (role) on the ARM resource.

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

Parameters

resourceId
String

Scope of the access represented in ARM resource ID format.

roleDefinitionId
String

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

Returns

Applies to