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.WithOSThe stage of a virtual machine definition allowing to specify the operating system image.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedwithGeneralizedLinuxCustomImage(String customImageId)Specifies the resource ID of a generalized Linux custom image to be used as the virtual machines' OS.VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedwithGeneralizedLinuxGalleryImageVersion(String galleryImageVersionId)Specifies the resource ID of a generalized Linux gallery image version to be used as the virtual machines' OS.VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedwithGeneralizedWindowsCustomImage(String customImageId)Specifies the resource ID of a generalized Windows custom image to be used as the virtual machine's OS.VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedwithGeneralizedWindowsGalleryImageVersion(String galleryImageVersionId)Specifies the resource ID of a generalized Windows gallery image version to be used as the virtual machine's OS.VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanagedwithLatestLinuxImage(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.VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanagedwithLatestWindowsImage(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.VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanagedwithPopularLinuxImage(KnownLinuxVirtualMachineImage knownImage)Specifies a known marketplace Linux image to be used for the virtual machine's OS.VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanagedwithPopularWindowsImage(KnownWindowsVirtualMachineImage knownImage)Specifies a known marketplace Windows image to be used for the virtual machine's OS.VirtualMachine.DefinitionStages.WithLinuxCreateManagedwithSpecializedLinuxCustomImage(String customImageId)Specifies the resource ID of a specialized Linux custom image to be used as the virtual machines' OS.VirtualMachine.DefinitionStages.WithLinuxCreateManagedwithSpecializedLinuxGalleryImageVersion(String galleryImageVersionId)Specifies the resource ID of a specialized Linux gallery image version to be used as the virtual machines' OS.VirtualMachine.DefinitionStages.WithManagedCreatewithSpecializedOSDisk(Disk disk, OperatingSystemTypes osType)Specifies a specialized operating system managed disk to be attached to the virtual machine.VirtualMachine.DefinitionStages.WithUnmanagedCreatewithSpecializedOSUnmanagedDisk(String osDiskUrl, OperatingSystemTypes osType)Specifies a specialized operating system unmanaged disk to be attached to the virtual machine.VirtualMachine.DefinitionStages.WithWindowsCreateManagedwithSpecializedWindowsCustomImage(String customImageId)Specifies the resource ID of a specialized Windows custom image to be used as the virtual machine's OS.VirtualMachine.DefinitionStages.WithWindowsCreateManagedwithSpecializedWindowsGalleryImageVersion(String galleryImageVersionId)Specifies the resource ID of a specialized Windows gallery image version to be used as the virtual machine's OS.VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanagedwithSpecificLinuxImageVersion(ImageReference imageReference)Specifies a version of a market-place Linux image to be used as the virtual machine's OS.VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanagedwithSpecificWindowsImageVersion(ImageReference imageReference)Specifies a version of a marketplace Windows image to be used as the virtual machine's OS.VirtualMachine.DefinitionStages.WithLinuxRootUsernameUnmanagedwithStoredLinuxImage(String imageUrl)Specifies a user (generalized) Linux image to be used for the virtual machine's OS.VirtualMachine.DefinitionStages.WithWindowsAdminUsernameUnmanagedwithStoredWindowsImage(String imageUrl)Specifies the user (generalized) Windows image to be used for the virtual machine's OS.
-
-
-
Method Detail
-
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
-
withGeneralizedWindowsCustomImage
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManaged withGeneralizedWindowsCustomImage(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
-
withGeneralizedWindowsGalleryImageVersion
VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManaged withGeneralizedWindowsGalleryImageVersion(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
-
withGeneralizedLinuxCustomImage
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManaged withGeneralizedLinuxCustomImage(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.WithLinuxCreateManaged 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
-
withGeneralizedLinuxGalleryImageVersion
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManaged withGeneralizedLinuxGalleryImageVersion(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
-
-