Interface VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate
- All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.model.Creatable<VirtualMachine>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasName, com.azure.resourcemanager.resources.fluentcore.model.Indexable, com.azure.resourcemanager.resources.fluentcore.arm.models.Resource.DefinitionWithTags<VirtualMachine.DefinitionStages.WithCreate>, VirtualMachine.DefinitionStages.WithAdditionalCapacities, VirtualMachine.DefinitionStages.WithAvailabilitySet, VirtualMachine.DefinitionStages.WithBillingProfile, VirtualMachine.DefinitionStages.WithBootDiagnostics, VirtualMachine.DefinitionStages.WithCapacityReservation, VirtualMachine.DefinitionStages.WithCreate, VirtualMachine.DefinitionStages.WithEphemeralOSDisk, VirtualMachine.DefinitionStages.WithExtension, VirtualMachine.DefinitionStages.WithLicenseType, VirtualMachine.DefinitionStages.WithNetworkInterfaceDeleteOptions, VirtualMachine.DefinitionStages.WithOSDiskSettings, VirtualMachine.DefinitionStages.WithPlan, VirtualMachine.DefinitionStages.WithPriority, VirtualMachine.DefinitionStages.WithScaleSet, VirtualMachine.DefinitionStages.WithSecondaryNetworkInterface, VirtualMachine.DefinitionStages.WithSecurityProfile, VirtualMachine.DefinitionStages.WithSecurityTypes, VirtualMachine.DefinitionStages.WithStorageAccount, VirtualMachine.DefinitionStages.WithSystemAssignedManagedServiceIdentity, VirtualMachine.DefinitionStages.WithUserAssignedManagedServiceIdentity, VirtualMachine.DefinitionStages.WithUserData, VirtualMachine.DefinitionStages.WithVMSize
- Enclosing interface:
VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate
extends VirtualMachine.DefinitionStages.WithCreate
The stage of the System Assigned (Local) Managed Service Identity enabled virtual machine allowing to set
access role for the identity.
-
Method Summary
Modifier and TypeMethodDescriptionwithSystemAssignedIdentityBasedAccessTo(String resourceId, com.azure.resourcemanager.authorization.models.BuiltInRole role) Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on an ARM resource identified by the resource ID.withSystemAssignedIdentityBasedAccessTo(String resourceId, String roleDefinitionId) Specifies that virtual machine's system assigned (local) identity should have the access (described by the role definition) on an ARM resource identified by the resource ID.withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(com.azure.resourcemanager.authorization.models.BuiltInRole role) Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on the resource group that virtual machine resides.withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(String roleDefinitionId) Specifies that virtual machine's system assigned (local) identity should have the access (described by the role definition) on the resource group that virtual machine resides.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Creatable
create, create, createAsync, createAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Indexable
keyMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource.DefinitionWithTags
withTag, withTagsMethods inherited from interface VirtualMachine.DefinitionStages.WithAdditionalCapacities
enableHibernation, enableUltraSsdMethods inherited from interface VirtualMachine.DefinitionStages.WithAvailabilitySet
withExistingAvailabilitySet, withNewAvailabilitySet, withNewAvailabilitySetMethods inherited from interface VirtualMachine.DefinitionStages.WithBillingProfile
withMaxPriceMethods inherited from interface VirtualMachine.DefinitionStages.WithBootDiagnostics
withBootDiagnostics, withBootDiagnostics, withBootDiagnostics, withBootDiagnostics, withBootDiagnosticsOnManagedStorageAccountMethods inherited from interface VirtualMachine.DefinitionStages.WithCapacityReservation
withCapacityReservationGroupMethods inherited from interface VirtualMachine.DefinitionStages.WithCreate
beginCreate, beginCreateMethods inherited from interface VirtualMachine.DefinitionStages.WithEphemeralOSDisk
withPlacementMethods inherited from interface VirtualMachine.DefinitionStages.WithExtension
defineNewExtensionMethods inherited from interface VirtualMachine.DefinitionStages.WithLicenseType
withLicenseTypeMethods inherited from interface VirtualMachine.DefinitionStages.WithNetworkInterfaceDeleteOptions
withPrimaryNetworkInterfaceDeleteOptionsMethods inherited from interface VirtualMachine.DefinitionStages.WithOSDiskSettings
withEphemeralOSDisk, withOSDiskCaching, withOSDiskDeleteOptions, withOSDiskDiskEncryptionSet, withOSDiskEncryptionSettings, withOSDiskName, withOSDiskSizeInGB, withOSDiskWriteAcceleratorEnabledMethods inherited from interface VirtualMachine.DefinitionStages.WithPlan
withPlan, withPromotionalPlanMethods inherited from interface VirtualMachine.DefinitionStages.WithPriority
withLowPriority, withLowPriority, withPriority, withSpotPriority, withSpotPriorityMethods inherited from interface VirtualMachine.DefinitionStages.WithScaleSet
withExistingVirtualMachineScaleSetMethods inherited from interface VirtualMachine.DefinitionStages.WithSecondaryNetworkInterface
withExistingSecondaryNetworkInterface, withNewSecondaryNetworkInterface, withNewSecondaryNetworkInterfaceMethods inherited from interface VirtualMachine.DefinitionStages.WithSecurityProfile
withEncryptionAtHostMethods inherited from interface VirtualMachine.DefinitionStages.WithSecurityTypes
withTrustedLaunchMethods inherited from interface VirtualMachine.DefinitionStages.WithStorageAccount
withExistingStorageAccount, withNewStorageAccount, withNewStorageAccountMethods inherited from interface VirtualMachine.DefinitionStages.WithSystemAssignedManagedServiceIdentity
withSystemAssignedManagedServiceIdentityMethods inherited from interface VirtualMachine.DefinitionStages.WithUserAssignedManagedServiceIdentity
withExistingUserAssignedManagedServiceIdentity, withNewUserAssignedManagedServiceIdentityMethods inherited from interface VirtualMachine.DefinitionStages.WithUserData
withUserDataMethods inherited from interface VirtualMachine.DefinitionStages.WithVMSize
withSize, withSize
-
Method Details
-
withSystemAssignedIdentityBasedAccessTo
VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessTo(String resourceId, com.azure.resourcemanager.authorization.models.BuiltInRole role) Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on an ARM resource identified by the resource ID. Applications running on the virtual machine will have the same permission (role) on the ARM resource.- Parameters:
resourceId- the ARM identifier of the resourcerole- access role to assigned to the virtual machine's local identity- Returns:
- the next stage of the definition
-
withSystemAssignedIdentityBasedAccessToCurrentResourceGroup
VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(com.azure.resourcemanager.authorization.models.BuiltInRole role) Specifies that virtual machine's system assigned (local) identity should have the given access (described by the role) on the resource group that virtual machine resides. Applications running on the virtual machine will have the same permission (role) on the resource group.- Parameters:
role- access role to assigned to the virtual machine's local identity- Returns:
- the next stage of the definition
-
withSystemAssignedIdentityBasedAccessTo
VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessTo(String resourceId, String roleDefinitionId) Specifies that virtual machine's system assigned (local) identity should have the access (described by the role definition) on an ARM resource identified by the resource ID. Applications running on the virtual machine will have the same permission (role) on the ARM resource.- Parameters:
resourceId- scope of the access represented in ARM resource ID formatroleDefinitionId- access role definition to assigned to the virtual machine's local identity- Returns:
- the next stage of the definition
-
withSystemAssignedIdentityBasedAccessToCurrentResourceGroup
VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(String roleDefinitionId) Specifies that virtual machine's system assigned (local) identity should have the access (described by the role definition) on the resource group that virtual machine resides. Applications running on the virtual machine will have the same permission (role) on the resource group.- Parameters:
roleDefinitionId- access role definition to assigned to the virtual machine's local identity- Returns:
- the next stage of the definition
-