你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualMachine.DefinitionStages.WithOS Interface
public interface WithOS
The stage of a virtual machine definition allowing to specify the operating system image.
Method Summary
Method Details
withLatestLinuxImage
public 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:
Returns:
withLatestWindowsImage
public 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:
Returns:
withLinuxCustomImage
public WithLinuxRootUsernameManaged withLinuxCustomImage(String customImageId)
Specifies the resource ID of a Linux custom image to be used as the virtual machines' OS.
Parameters:
Returns:
withPopularLinuxImage
public WithLinuxRootUsernameManagedOrUnmanaged withPopularLinuxImage(KnownLinuxVirtualMachineImage knownImage)
Specifies a known marketplace Linux image to be used for the virtual machine's OS.
Parameters:
Returns:
withPopularWindowsImage
public WithWindowsAdminUsernameManagedOrUnmanaged withPopularWindowsImage(KnownWindowsVirtualMachineImage knownImage)
Specifies a known marketplace Windows image to be used for the virtual machine's OS.
Parameters:
Returns:
withSpecializedOSDisk
public WithManagedCreate withSpecializedOSDisk(Disk disk, OperatingSystemTypes osType)
Specifies a specialized operating system managed disk to be attached to the virtual machine.
Parameters:
Returns:
withSpecializedOSUnmanagedDisk
public WithUnmanagedCreate withSpecializedOSUnmanagedDisk(String osDiskUrl, OperatingSystemTypes osType)
Specifies a specialized operating system unmanaged disk to be attached to the virtual machine.
Parameters:
Returns:
withSpecificLinuxImageVersion
public WithLinuxRootUsernameManagedOrUnmanaged withSpecificLinuxImageVersion(ImageReference imageReference)
Specifies a version of a market-place Linux image to be used as the virtual machine's OS.
Parameters:
Returns:
withSpecificWindowsImageVersion
public WithWindowsAdminUsernameManagedOrUnmanaged withSpecificWindowsImageVersion(ImageReference imageReference)
Specifies a version of a marketplace Windows image to be used as the virtual machine's OS.
Parameters:
Returns:
withStoredLinuxImage
public WithLinuxRootUsernameUnmanaged withStoredLinuxImage(String imageUrl)
Specifies a user (generalized) Linux image to be used for the virtual machine's OS.
Parameters:
Returns:
withStoredWindowsImage
public WithWindowsAdminUsernameUnmanaged withStoredWindowsImage(String imageUrl)
Specifies the user (generalized) Windows image to be used for the virtual machine's OS.
Parameters:
Returns:
withWindowsCustomImage
public WithWindowsAdminUsernameManaged withWindowsCustomImage(String customImageId)
Specifies the resource ID of a Windows custom image to be used as the virtual machine's OS.
Parameters:
Returns: