Interface VirtualMachine.DefinitionStages.WithOS
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged
,VirtualMachine.DefinitionManagedOrUnmanaged
,VirtualMachine.DefinitionShared
,VirtualMachine.DefinitionStages.WithProximityPlacementGroup
,VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
- VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithOS
The stage of a virtual machine definition allowing to specify the operating system image.
-
Method Summary
Modifier and TypeMethodDescriptionwithLatestLinuxImage
(String publisher, String offer, String sku) Specifies that the latest version of a marketplace Linux image is to be used as the virtual machine's OS.withLatestWindowsImage
(String publisher, String offer, String sku) Specifies that the latest version of a marketplace Windows image should to be used as the virtual machine's OS.withLinuxCustomImage
(String customImageId) Specifies the resource ID of a generalized Linux custom image to be used as the virtual machines' OS.withLinuxGalleryImageVersion
(String galleryImageVersionId) Specifies the resource ID of a generalized Linux gallery image version to be used as the virtual machines' OS.withPopularLinuxImage
(KnownLinuxVirtualMachineImage knownImage) Specifies a known marketplace Linux image to be used for the virtual machine's OS.Specifies a known marketplace Windows image to be used for the virtual machine's OS.withSpecializedLinuxCustomImage
(String customImageId) Specifies the resource ID of a specialized Linux custom image to be used as the virtual machines' OS.withSpecializedLinuxGalleryImageVersion
(String galleryImageVersionId) Specifies the resource ID of a specialized Linux gallery image version to be used as the virtual machines' OS.withSpecializedOSDisk
(Disk disk, OperatingSystemTypes osType) Specifies a specialized operating system managed disk to be attached to the virtual machine.withSpecializedOSUnmanagedDisk
(String osDiskUrl, OperatingSystemTypes osType) Specifies a specialized operating system unmanaged disk to be attached to the virtual machine.withSpecializedWindowsCustomImage
(String customImageId) Specifies the resource ID of a specialized Windows custom image to be used as the virtual machine's OS.withSpecializedWindowsGalleryImageVersion
(String galleryImageVersionId) Specifies the resource ID of a specialized Windows gallery image version to be used as the virtual machine's OS.withSpecificLinuxImageVersion
(ImageReference imageReference) Specifies a version of a market-place Linux image to be used as the virtual machine's OS.withSpecificWindowsImageVersion
(ImageReference imageReference) Specifies a version of a marketplace Windows image to be used as the virtual machine's OS.withStoredLinuxImage
(String imageUrl) Specifies a user (generalized) Linux image to be used for the virtual machine's OS.withStoredWindowsImage
(String imageUrl) Specifies the user (generalized) Windows image to be used for the virtual machine's OS.withWindowsCustomImage
(String customImageId) Specifies the resource ID of a generalized Windows custom image to be used as the virtual machine's OS.withWindowsGalleryImageVersion
(String galleryImageVersionId) Specifies the resource ID of a generalized Windows gallery image version to be used as the virtual machine's OS.
-
Method Details
-
withPopularWindowsImage
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withPopularWindowsImage(KnownWindowsVirtualMachineImage knownImage) Specifies a known marketplace Windows image to be used for the virtual machine's OS.- Parameters:
knownImage
- a known market-place image- Returns:
- the next stage of the definition
-
withLatestWindowsImage
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withLatestWindowsImage(String publisher, String offer, String sku) Specifies that the latest version of a marketplace Windows image should to be used as the virtual machine's OS.- Parameters:
publisher
- specifies the publisher of the imageoffer
- specifies the offer of the imagesku
- specifies the SKU of the image- Returns:
- the next stage of the definition
-
withSpecificWindowsImageVersion
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withSpecificWindowsImageVersion(ImageReference imageReference) Specifies a version of a marketplace Windows image to be used as the virtual machine's OS.- Parameters:
imageReference
- describes publisher, offer, SKU and version of the market-place image- Returns:
- the next stage of the definition
-
withWindowsCustomImage
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManaged withWindowsCustomImage(String customImageId) Specifies the resource ID of a generalized Windows custom image to be used as the virtual machine's OS.- Parameters:
customImageId
- the resource ID of the custom image- Returns:
- the next stage of the definition
-
withSpecializedWindowsCustomImage
VirtualMachine.DefinitionStages.WithWindowsCreateManaged withSpecializedWindowsCustomImage(String customImageId) Specifies the resource ID of a specialized Windows custom image to be used as the virtual machine's OS.- Parameters:
customImageId
- the resource ID of the custom image- Returns:
- the next stage of the definition
-
withWindowsGalleryImageVersion
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManaged withWindowsGalleryImageVersion(String galleryImageVersionId) Specifies the resource ID of a generalized Windows gallery image version to be used as the virtual machine's OS.- Parameters:
galleryImageVersionId
- the resource ID of the gallery image version- Returns:
- the next stage of the definition
-
withSpecializedWindowsGalleryImageVersion
VirtualMachine.DefinitionStages.WithWindowsCreateManaged withSpecializedWindowsGalleryImageVersion(String galleryImageVersionId) Specifies the resource ID of a specialized Windows gallery image version to be used as the virtual machine's OS.- Parameters:
galleryImageVersionId
- the resource ID of the gallery image version- Returns:
- the next stage of the definition
-
withStoredWindowsImage
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameUnmanaged withStoredWindowsImage(String imageUrl) Specifies the user (generalized) Windows image to be used for the virtual machine's OS.- Parameters:
imageUrl
- the URL of a VHD- Returns:
- the next stage of the definition
-
withPopularLinuxImage
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withPopularLinuxImage(KnownLinuxVirtualMachineImage knownImage) Specifies a known marketplace Linux image to be used for the virtual machine's OS.- Parameters:
knownImage
- a known market-place image- Returns:
- the next stage of the definition
-
withLatestLinuxImage
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withLatestLinuxImage(String publisher, String offer, String sku) Specifies that the latest version of a marketplace Linux image is to be used as the virtual machine's OS.- Parameters:
publisher
- specifies the publisher of an imageoffer
- specifies an offer of the imagesku
- specifies a SKU of the image- Returns:
- the next stage of the definition
-
withSpecificLinuxImageVersion
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withSpecificLinuxImageVersion(ImageReference imageReference) Specifies a version of a market-place Linux image to be used as the virtual machine's OS.- Parameters:
imageReference
- describes the publisher, offer, SKU and version of the market-place image- Returns:
- the next stage of the definition
-
withLinuxCustomImage
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManaged withLinuxCustomImage(String customImageId) Specifies the resource ID of a generalized Linux custom image to be used as the virtual machines' OS.- Parameters:
customImageId
- the resource ID of a custom image- Returns:
- the next stage of the definition
-
withSpecializedLinuxCustomImage
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManaged withSpecializedLinuxCustomImage(String customImageId) Specifies the resource ID of a specialized Linux custom image to be used as the virtual machines' OS.- Parameters:
customImageId
- the resource ID of a custom image- Returns:
- the next stage of the definition
-
withLinuxGalleryImageVersion
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManaged withLinuxGalleryImageVersion(String galleryImageVersionId) Specifies the resource ID of a generalized Linux gallery image version to be used as the virtual machines' OS.- Parameters:
galleryImageVersionId
- the resource ID of a gallery image version- Returns:
- the next stage of the definition
-
withSpecializedLinuxGalleryImageVersion
VirtualMachine.DefinitionStages.WithLinuxCreateManaged withSpecializedLinuxGalleryImageVersion(String galleryImageVersionId) Specifies the resource ID of a specialized Linux gallery image version to be used as the virtual machines' OS.- Parameters:
galleryImageVersionId
- the resource ID of a gallery image version- Returns:
- the next stage of the definition
-
withStoredLinuxImage
VirtualMachine.DefinitionStages.WithLinuxRootUsernameUnmanaged withStoredLinuxImage(String imageUrl) Specifies a user (generalized) Linux image to be used for the virtual machine's OS.- Parameters:
imageUrl
- the URL of a VHD- Returns:
- the next stage of the definition
-
withSpecializedOSUnmanagedDisk
VirtualMachine.DefinitionStages.WithUnmanagedCreate withSpecializedOSUnmanagedDisk(String osDiskUrl, OperatingSystemTypes osType) Specifies a specialized operating system unmanaged disk to be attached to the virtual machine.- Parameters:
osDiskUrl
- osDiskUrl the URL to the OS disk in the Azure Storage accountosType
- the OS type- Returns:
- the next stage of the definition
-
withSpecializedOSDisk
VirtualMachine.DefinitionStages.WithManagedCreate withSpecializedOSDisk(Disk disk, OperatingSystemTypes osType) Specifies a specialized operating system managed disk to be attached to the virtual machine.- Parameters:
disk
- the managed disk to attachosType
- the OS type- Returns:
- the next stage of the definition
-