azDiskSnapshot

Use the resource azDiskSnapshot to deploy an Azure Snapshot.

Attributes

Attribute Type Mandatory Values Default Notes
Name String Yes
ResourceGroupName String Yes
Location String Yes
OSType String Yes Windows, Linux
StorageType String No Standard_LRS, Standard_ZRS Standard_LRS
Source Object Yes
Tag Object No
Lock Object No

Source

Attribute Type Mandatory Values Default Notes
ResourceGroupName String Yes
VMName String Yes
DiskName String No * Defaults to OS disk if not supplied

Input by YAML

Object model for YAML deployment:

---
azDiskSnapshot:
    # Mandatory
  - Name: 'string'
    ConnectionName: 'string'
    ResourceGroupName: 'string'
    Location: 'string'
    OSType: 'string'                                  # Windows, Linux
    StorageType: 'string'                             # Standard_LRS (D), Standard_ZRS
    Source:
      ResourceGroupName: 'string'
      VMName: 'string'                                # Supply a VM                           
      DiskName: 'string'                              # Disk name, default is OS Disk
    # Optional
    Tag: 
      'keyvalue-pairs'
    Lock:
      - Name: 'string'
        Level: 'string'                               # CanNotDelete, ReadOnly
        Notes: 'string'

Input by JSON

Object model for JSON deployment:

{
  "azDiskSnapshot": [
    {
      "Name": "string",
      "ResourceGroupName": "string",
      "Location": "string",
      "OSType": "string",
      "StorageType": "string",
      "Source": {
        "ResourceGroupName": "string",
        "VMName": "string",
        "DiskName": "string"
      },
      "Tag": {
        "key": "value"
      },
      "Lock": [
        {
          "Name": "string",
          "Level": "string",
          "Notes": "string"
        }
      ]
    }
  ]
}