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
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示