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 |
---|---|
Virtual |
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. |
Virtual |
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. |
Virtual |
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. |
Virtual |
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
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for