Snapshot Class

Definition

Snapshot resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class Snapshot : Microsoft.Azure.Management.Compute.Models.Resource
type Snapshot = class
    inherit Resource
Public Class Snapshot
Inherits Resource
Inheritance
System.Object
Snapshot
Attributes

Constructors

Snapshot()

Initializes a new instance of the Snapshot class.

Properties

CreationData

Gets or sets disk source information. CreationData information cannot be changed after the disk has been created.

DiskSizeGB

Gets or sets if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.

Id

Gets resource Id

(Inherited from Resource)
Location

Gets or sets resource location

(Inherited from Resource)
ManagedBy

Gets unused. Always Null.

Name

Gets resource name

(Inherited from Resource)
OsType

Gets or sets the Operating System type. Possible values include: 'Windows', 'Linux'

ProvisioningState

Gets the disk provisioning state.

Sku
Tags

Gets or sets resource tags

(Inherited from Resource)
TimeCreated

Gets the time when the disk was created.

Type

Gets resource type

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to