Interface VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate

    • Method Detail

      • withSystemAssignedIdentityBasedAccessTo

        VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessTo​(String resourceId,
                                                                                                                              BuiltInRole role)
        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.
        Parameters:
        resourceId - the ARM identifier of the resource
        role - access role to assigned to the virtual machine's local identity
        Returns:
        the next stage of the definition
      • withSystemAssignedIdentityBasedAccessToCurrentResourceGroup

        VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessToCurrentResourceGroup​(BuiltInRole role)
        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.
        Parameters:
        role - access role to assigned to the virtual machine's local identity
        Returns:
        the next stage of the definition
      • withSystemAssignedIdentityBasedAccessTo

        VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessTo​(String resourceId,
                                                                                                                              String roleDefinitionId)
        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.
        Parameters:
        resourceId - scope of the access represented in ARM resource ID format
        roleDefinitionId - access role definition to assigned to the virtual machine's local identity
        Returns:
        the next stage of the definition
      • withSystemAssignedIdentityBasedAccessToCurrentResourceGroup

        VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessToCurrentResourceGroup​(String roleDefinitionId)
        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.
        Parameters:
        roleDefinitionId - access role definition to assigned to the virtual machine's local identity
        Returns:
        the next stage of the definition