Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Image 类

定义

源用户映像虚拟硬盘。 在附加到虚拟机之前,将复制虚拟硬盘。 如果提供了 SourceImage,则目标虚拟硬盘驱动器不得存在。

[Microsoft.Rest.Serialization.JsonTransformation]
public class Image : Microsoft.Azure.Management.Compute.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type Image = class
    inherit Resource
Public Class Image
Inherits Resource
继承
属性

构造函数

Image()

初始化 Image 类的新实例。

Image(String, String, String, String, IDictionary<String,String>, SubResource, ImageStorageProfile, String, String, ExtendedLocation)

初始化 Image 类的新实例。

属性

ExtendedLocation

获取或设置 Image 的扩展位置。

HyperVGeneration

获取或设置指定从映像创建的 VirtualMachine 的 HyperVGenerationType。 从 API 版本 2019-03-01 开始,如果映像源是 blob,则我们需要用户指定值,如果源是托管资源(如磁盘或快照),如果无法从源托管资源推断它,则可能需要用户指定属性。 可能的值包括:“V1”、“V2”

Id

获取资源 ID

(继承自 Resource)
Location

获取或设置资源位置

(继承自 Resource)
Name

获取资源名称

(继承自 Resource)
ProvisioningState

获取预配状态。

SourceVirtualMachine

获取或设置从中创建映像的源虚拟机。

StorageProfile

获取或设置指定虚拟机磁盘的存储设置。

Tags

获取或设置资源标记

(继承自 Resource)
Type

获取资源类型

(继承自 Resource)

方法

Validate()

验证 对象。

适用于