Compartir vía


VirtualMachine.DefinitionStages.WithRoleAndScopeOrCreate Interface

public interface WithRoleAndScopeOrCreate extends VirtualMachine.DefinitionStages.WithCreate

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.DefinitionStages.WithRoleAndScopeOrCreate 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.DefinitionStages.WithRoleAndScopeOrCreate 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.DefinitionStages.WithRoleAndScopeOrCreate withRoleDefinitionBasedAccessTo(String scope, String roleDefinitionId)

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

VirtualMachine.DefinitionStages.WithRoleAndScopeOrCreate withRoleDefinitionBasedAccessToCurrentResourceGroup(String roleDefinitionId)

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

Inherited Members

Creatable<T>.create() Creatable<T>.createAsync(final ServiceCallback<T> callback) Creatable<T>.createAsync() VirtualMachine.DefinitionStages.WithExtension.defineNewExtension(String name) Indexable.key() HasName.name() VirtualMachine.DefinitionStages.WithBootDiagnostics.withBootDiagnostics() VirtualMachine.DefinitionStages.WithBootDiagnostics.withBootDiagnostics(Creatable<StorageAccount> creatable) VirtualMachine.DefinitionStages.WithBootDiagnostics.withBootDiagnostics(StorageAccount storageAccount) VirtualMachine.DefinitionStages.WithBootDiagnostics.withBootDiagnostics(String storageAccountBlobEndpointUri) VirtualMachine.DefinitionStages.WithAvailabilitySet.withExistingAvailabilitySet(AvailabilitySet availabilitySet) VirtualMachine.DefinitionStages.WithSecondaryNetworkInterface.withExistingSecondaryNetworkInterface(NetworkInterface networkInterface) VirtualMachine.DefinitionStages.WithStorageAccount.withExistingStorageAccount(StorageAccount storageAccount) VirtualMachine.DefinitionStages.WithManagedServiceIdentity.withManagedServiceIdentity() VirtualMachine.DefinitionStages.WithManagedServiceIdentity.withManagedServiceIdentity(int tokenPort) VirtualMachine.DefinitionStages.WithAvailabilitySet.withNewAvailabilitySet(String name) VirtualMachine.DefinitionStages.WithAvailabilitySet.withNewAvailabilitySet(Creatable<AvailabilitySet> creatable) VirtualMachine.DefinitionStages.WithSecondaryNetworkInterface.withNewSecondaryNetworkInterface(Creatable<NetworkInterface> creatable) VirtualMachine.DefinitionStages.WithStorageAccount.withNewStorageAccount(String name) VirtualMachine.DefinitionStages.WithStorageAccount.withNewStorageAccount(Creatable<StorageAccount> creatable) VirtualMachine.DefinitionStages.WithOSDiskSettings.withOSDiskCaching(CachingTypes cachingType) VirtualMachine.DefinitionStages.WithOSDiskSettings.withOSDiskEncryptionSettings(DiskEncryptionSettings settings) VirtualMachine.DefinitionStages.WithOSDiskSettings.withOSDiskName(String name) VirtualMachine.DefinitionStages.WithOSDiskSettings.withOSDiskSizeInGB(Integer size) VirtualMachine.DefinitionStages.WithOSDiskSettings.withOSDiskSizeInGB(int size) VirtualMachine.DefinitionStages.WithPlan.withPlan(PurchasePlan plan) VirtualMachine.DefinitionStages.WithPlan.withPromotionalPlan(PurchasePlan plan, String promotionCode) VirtualMachine.DefinitionStages.WithVMSize.withSize(String sizeName) VirtualMachine.DefinitionStages.WithVMSize.withSize(VirtualMachineSizeTypes size) Resource.DefinitionWithTags<T>.withTag(String key, String value) Resource.DefinitionWithTags<T>.withTags(Map<String, String> tags)

Method Details

withRoleBasedAccessTo

public WithRoleAndScopeOrCreate 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 definition

withRoleBasedAccessToCurrentResourceGroup

public WithRoleAndScopeOrCreate 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 definition

withRoleDefinitionBasedAccessTo

public WithRoleAndScopeOrCreate withRoleDefinitionBasedAccessTo(String scope, String roleDefinitionId)

Specifies that applications running on the virtual machine requires the access described in the given 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 definition

withRoleDefinitionBasedAccessToCurrentResourceGroup

public WithRoleAndScopeOrCreate withRoleDefinitionBasedAccessToCurrentResourceGroup(String roleDefinitionId)

Specifies that applications running on the virtual machine requires the access described in the given 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 definition

Applies to