VirtualMachine.UpdateStages.WithRoleAndScopeOrUpdate Interface

public interface WithRoleAndScopeOrUpdate extends VirtualMachine.Update

The stage of the Managed Service Identity enabled virtual machine allowing to set role assignment for a scope.

Method Summary

Modifier and Type Method and Description
VirtualMachine.UpdateStages.WithRoleAndScopeOrUpdate withRoleBasedAccessTo(String scope, BuiltInRole asRole)

Specifies that applications running on the virtual machine requires the given access role with scope of access limited to the ARM resource identified by the resource ID specified in the scope parameter.

VirtualMachine.UpdateStages.WithRoleAndScopeOrUpdate withRoleBasedAccessToCurrentResourceGroup(BuiltInRole asRole)

Specifies that applications running on the virtual machine requires the given access role with scope of access limited to the current resource group that the virtual machine resides.

VirtualMachine.UpdateStages.WithRoleAndScopeOrUpdate withRoleDefinitionBasedAccessTo(String scope, String roleDefinitionId)

Specifies that applications running on the virtual machine requires the given access role definition with scope of access limited to the ARM resource identified by the resource id specified in the scope parameter.

VirtualMachine.UpdateStages.WithRoleAndScopeOrUpdate withRoleDefinitionBasedAccessToCurrentResourceGroup(String roleDefinitionId)

Specifies that applications running on the virtual machine requires the given access role definition with scope of access limited to the current resource group that the virtual machine resides.

Inherited Members

Appliable<T>.apply() Appliable<T>.applyAsync() Appliable<T>.applyAsync(final ServiceCallback<T> callback) VirtualMachine.UpdateStages.WithExtension.defineNewExtension(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.defineUnmanagedDataDisk(String name) Indexable.key() VirtualMachine.UpdateStages.WithExtension.updateExtension(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.updateUnmanagedDataDisk(String name) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics() VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(Creatable<StorageAccount> creatable) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(StorageAccount storageAccount) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(String storageAccountBlobEndpointUri) VirtualMachine.Update.withDataDiskDefaultCachingType(CachingTypes cachingType) VirtualMachine.Update.withDataDiskDefaultStorageAccountType(StorageAccountTypes storageAccountType) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk, int newSizeInGB, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withExistingSecondaryNetworkInterface(NetworkInterface networkInterface) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName) VirtualMachine.UpdateStages.WithManagedServiceIdentity.withManagedServiceIdentity() VirtualMachine.UpdateStages.WithManagedServiceIdentity.withManagedServiceIdentity(int tokenPort) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(Creatable<Disk> creatable) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(Creatable<Disk> creatable, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType, StorageAccountTypes storageAccountType) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withNewSecondaryNetworkInterface(Creatable<NetworkInterface> creatable) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withNewUnmanagedDataDisk(Integer sizeInGB) VirtualMachine.Update.withOSDiskCaching(CachingTypes cachingType) VirtualMachine.Update.withOSDiskEncryptionSettings(DiskEncryptionSettings settings) VirtualMachine.Update.withOSDiskSizeInGB(Integer size) VirtualMachine.Update.withOSDiskSizeInGB(int size) VirtualMachine.UpdateStages.WithBootDiagnostics.withoutBootDiagnostics() VirtualMachine.UpdateStages.WithManagedDataDisk.withoutDataDisk(int lun) VirtualMachine.UpdateStages.WithExtension.withoutExtension(String name) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withoutSecondaryNetworkInterface(String name) Resource.UpdateWithTags<T>.withoutTag(String key) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withoutUnmanagedDataDisk(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withoutUnmanagedDataDisk(int lun) VirtualMachine.Update.withSize(String sizeName) VirtualMachine.Update.withSize(VirtualMachineSizeTypes size) Resource.UpdateWithTags<T>.withTag(String key, String value) Resource.UpdateWithTags<T>.withTags(Map<String, String> tags)

Method Details

withRoleBasedAccessTo

public WithRoleAndScopeOrUpdate withRoleBasedAccessTo(String scope, BuiltInRole asRole)

Specifies that applications running on the virtual machine requires the given access role with scope of access limited to the ARM resource identified by the resource ID specified in the scope parameter.

Parameters:

scope - scope of the access represented in ARM resource ID format
asRole - access role to assigned to the virtual machine

Returns:

the next stage of the update

withRoleBasedAccessToCurrentResourceGroup

public WithRoleAndScopeOrUpdate withRoleBasedAccessToCurrentResourceGroup(BuiltInRole asRole)

Specifies that applications running on the virtual machine requires the given access role with scope of access limited to the current resource group that the virtual machine resides.

Parameters:

asRole - access role to assigned to the virtual machine

Returns:

the next stage of the update

withRoleDefinitionBasedAccessTo

public WithRoleAndScopeOrUpdate withRoleDefinitionBasedAccessTo(String scope, String roleDefinitionId)

Specifies that applications running on the virtual machine requires the given access role definition with scope of access limited to the ARM resource identified by the resource id specified in the scope parameter.

Parameters:

scope - scope of the access represented in ARM resource ID format
roleDefinitionId - access role definition to assigned to the virtual machine

Returns:

the next stage of the update

withRoleDefinitionBasedAccessToCurrentResourceGroup

public WithRoleAndScopeOrUpdate withRoleDefinitionBasedAccessToCurrentResourceGroup(String roleDefinitionId)

Specifies that applications running on the virtual machine requires the given access role definition with scope of access limited to the current resource group that the virtual machine resides.

Parameters:

roleDefinitionId - access role definition to assigned to the virtual machine

Returns:

the next stage of the update

Applies to