pulumi_wasm_providers_azure_mini::compute

Module snapshot

source
Expand description

Manages a Disk Snapshot.

§Example Usage

resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: snapshot-rg
      location: West Europe
  exampleManagedDisk:
    type: azure:compute:ManagedDisk
    name: example
    properties:
      name: managed-disk
      location: ${example.location}
      resourceGroupName: ${example.name}
      storageAccountType: Standard_LRS
      createOption: Empty
      diskSizeGb: '10'
  exampleSnapshot:
    type: azure:compute:Snapshot
    name: example
    properties:
      name: snapshot
      location: ${example.location}
      resourceGroupName: ${example.name}
      createOption: Copy
      sourceUri: ${exampleManagedDisk.id}

§Import

Snapshots can be imported using the resource id, e.g.

$ pulumi import azure:compute/snapshot:Snapshot example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/snapshots/snapshot1

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments