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 |
---|---|
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 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. |
Virtual |
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
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente las Cuestiones de GitHub como mecanismo de retroalimentación para el contenido y lo sustituiremos por un nuevo sistema de retroalimentación. Para más información, consulta:Enviar y ver comentarios de