pulumi_wasm_providers_azure_mini::compute

Module managed_disk_sas_token

source
Expand description

Manages a Disk SAS Token.

Use this resource to obtain a Shared Access Signature (SAS Token) for an existing Managed Disk.

Shared access signatures allow fine-grained, ephemeral access control to various aspects of Managed Disk similar to blob/storage account container.

With the help of this resource, data from the disk can be copied from managed disk to a storage blob or to some other system without the need of azcopy.

§Example Usage

resources:
  test:
    type: azure:core:ResourceGroup
    properties:
      name: testrg
      location: West Europe
  testManagedDisk:
    type: azure:compute:ManagedDisk
    name: test
    properties:
      name: tst-disk-export
      location: ${test.location}
      resourceGroupName: ${test.name}
      storageAccountType: Standard_LRS
      createOption: Empty
      diskSizeGb: '1'
  testManagedDiskSasToken:
    type: azure:compute:ManagedDiskSasToken
    name: test
    properties:
      managedDiskId: ${testManagedDisk.id}
      durationInSeconds: 300
      accessLevel: Read

§Import

Disk SAS Token can be imported using the resource id, e.g.

$ pulumi import azure:compute/managedDiskSasToken:ManagedDiskSasToken example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/disks/manageddisk1

Structs§

Functions§

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