Azure Classic v5.43.0, May 6 23
Azure Classic v5.43.0, May 6 23
azure.compute.Snapshot
Explore with Pulumi AI
Manages a Disk Snapshot.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleManagedDisk = new Azure.Compute.ManagedDisk("exampleManagedDisk", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
StorageAccountType = "Standard_LRS",
CreateOption = "Empty",
DiskSizeGb = 10,
});
var exampleSnapshot = new Azure.Compute.Snapshot("exampleSnapshot", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
CreateOption = "Copy",
SourceUri = exampleManagedDisk.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleManagedDisk, err := compute.NewManagedDisk(ctx, "exampleManagedDisk", &compute.ManagedDiskArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
StorageAccountType: pulumi.String("Standard_LRS"),
CreateOption: pulumi.String("Empty"),
DiskSizeGb: pulumi.Int(10),
})
if err != nil {
return err
}
_, err = compute.NewSnapshot(ctx, "exampleSnapshot", &compute.SnapshotArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
CreateOption: pulumi.String("Copy"),
SourceUri: exampleManagedDisk.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.compute.ManagedDisk;
import com.pulumi.azure.compute.ManagedDiskArgs;
import com.pulumi.azure.compute.Snapshot;
import com.pulumi.azure.compute.SnapshotArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleManagedDisk = new ManagedDisk("exampleManagedDisk", ManagedDiskArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.storageAccountType("Standard_LRS")
.createOption("Empty")
.diskSizeGb("10")
.build());
var exampleSnapshot = new Snapshot("exampleSnapshot", SnapshotArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.createOption("Copy")
.sourceUri(exampleManagedDisk.id())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_managed_disk = azure.compute.ManagedDisk("exampleManagedDisk",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
storage_account_type="Standard_LRS",
create_option="Empty",
disk_size_gb=10)
example_snapshot = azure.compute.Snapshot("exampleSnapshot",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
create_option="Copy",
source_uri=example_managed_disk.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleManagedDisk = new azure.compute.ManagedDisk("exampleManagedDisk", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
storageAccountType: "Standard_LRS",
createOption: "Empty",
diskSizeGb: 10,
});
const exampleSnapshot = new azure.compute.Snapshot("exampleSnapshot", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
createOption: "Copy",
sourceUri: exampleManagedDisk.id,
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleManagedDisk:
type: azure:compute:ManagedDisk
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
storageAccountType: Standard_LRS
createOption: Empty
diskSizeGb: '10'
exampleSnapshot:
type: azure:compute:Snapshot
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
createOption: Copy
sourceUri: ${exampleManagedDisk.id}
Create Snapshot Resource
new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);
@overload
def Snapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
create_option: Optional[str] = None,
disk_size_gb: Optional[int] = None,
encryption_settings: Optional[SnapshotEncryptionSettingsArgs] = None,
incremental_enabled: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
source_resource_id: Optional[str] = None,
source_uri: Optional[str] = None,
storage_account_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def Snapshot(resource_name: str,
args: SnapshotArgs,
opts: Optional[ResourceOptions] = None)
func NewSnapshot(ctx *Context, name string, args SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)
public Snapshot(string name, SnapshotArgs args, CustomResourceOptions? opts = null)
public Snapshot(String name, SnapshotArgs args)
public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
type: azure:compute:Snapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Snapshot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Snapshot resource accepts the following input properties:
- Create
Option string Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- Resource
Group stringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- Disk
Size intGb The size of the Snapshotted Disk in GB.
- Encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- Incremental
Enabled bool Specifies if the Snapshot is incremental.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- Source
Resource stringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- Source
Uri string Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- Storage
Account stringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Create
Option string Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- Resource
Group stringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- Disk
Size intGb The size of the Snapshotted Disk in GB.
- Encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- Incremental
Enabled bool Specifies if the Snapshot is incremental.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- Source
Resource stringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- Source
Uri string Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- Storage
Account stringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- create
Option String Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- resource
Group StringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- disk
Size IntegerGb The size of the Snapshotted Disk in GB.
- encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- incremental
Enabled Boolean Specifies if the Snapshot is incremental.
- location String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- source
Resource StringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source
Uri String Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage
Account StringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Map<String,String>
A mapping of tags to assign to the resource.
- create
Option string Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- resource
Group stringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- disk
Size numberGb The size of the Snapshotted Disk in GB.
- encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- incremental
Enabled boolean Specifies if the Snapshot is incremental.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- source
Resource stringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source
Uri string Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage
Account stringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- create_
option str Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- resource_
group_ strname The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- disk_
size_ intgb The size of the Snapshotted Disk in GB.
- encryption_
settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- incremental_
enabled bool Specifies if the Snapshot is incremental.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- source_
resource_ strid Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source_
uri str Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage_
account_ strid Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Mapping[str, str]
A mapping of tags to assign to the resource.
- create
Option String Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- resource
Group StringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- disk
Size NumberGb The size of the Snapshotted Disk in GB.
- encryption
Settings Property Map A
encryption_settings
block as defined below.- incremental
Enabled Boolean Specifies if the Snapshot is incremental.
- location String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- source
Resource StringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source
Uri String Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage
Account StringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Map<String>
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Trusted
Launch boolEnabled Whether Trusted Launch is enabled for the Snapshot.
- Id string
The provider-assigned unique ID for this managed resource.
- Trusted
Launch boolEnabled Whether Trusted Launch is enabled for the Snapshot.
- id String
The provider-assigned unique ID for this managed resource.
- trusted
Launch BooleanEnabled Whether Trusted Launch is enabled for the Snapshot.
- id string
The provider-assigned unique ID for this managed resource.
- trusted
Launch booleanEnabled Whether Trusted Launch is enabled for the Snapshot.
- id str
The provider-assigned unique ID for this managed resource.
- trusted_
launch_ boolenabled Whether Trusted Launch is enabled for the Snapshot.
- id String
The provider-assigned unique ID for this managed resource.
- trusted
Launch BooleanEnabled Whether Trusted Launch is enabled for the Snapshot.
Look up Existing Snapshot Resource
Get an existing Snapshot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SnapshotState, opts?: CustomResourceOptions): Snapshot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_option: Optional[str] = None,
disk_size_gb: Optional[int] = None,
encryption_settings: Optional[SnapshotEncryptionSettingsArgs] = None,
incremental_enabled: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
source_resource_id: Optional[str] = None,
source_uri: Optional[str] = None,
storage_account_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
trusted_launch_enabled: Optional[bool] = None) -> Snapshot
func GetSnapshot(ctx *Context, name string, id IDInput, state *SnapshotState, opts ...ResourceOption) (*Snapshot, error)
public static Snapshot Get(string name, Input<string> id, SnapshotState? state, CustomResourceOptions? opts = null)
public static Snapshot get(String name, Output<String> id, SnapshotState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Option string Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- Disk
Size intGb The size of the Snapshotted Disk in GB.
- Encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- Incremental
Enabled bool Specifies if the Snapshot is incremental.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- Source
Resource stringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- Source
Uri string Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- Storage
Account stringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Trusted
Launch boolEnabled Whether Trusted Launch is enabled for the Snapshot.
- Create
Option string Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- Disk
Size intGb The size of the Snapshotted Disk in GB.
- Encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- Incremental
Enabled bool Specifies if the Snapshot is incremental.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- Source
Resource stringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- Source
Uri string Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- Storage
Account stringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- Trusted
Launch boolEnabled Whether Trusted Launch is enabled for the Snapshot.
- create
Option String Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- disk
Size IntegerGb The size of the Snapshotted Disk in GB.
- encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- incremental
Enabled Boolean Specifies if the Snapshot is incremental.
- location String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- source
Resource StringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source
Uri String Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage
Account StringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Map<String,String>
A mapping of tags to assign to the resource.
- trusted
Launch BooleanEnabled Whether Trusted Launch is enabled for the Snapshot.
- create
Option string Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- disk
Size numberGb The size of the Snapshotted Disk in GB.
- encryption
Settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- incremental
Enabled boolean Specifies if the Snapshot is incremental.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- source
Resource stringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source
Uri string Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage
Account stringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- trusted
Launch booleanEnabled Whether Trusted Launch is enabled for the Snapshot.
- create_
option str Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- disk_
size_ intgb The size of the Snapshotted Disk in GB.
- encryption_
settings SnapshotEncryption Settings Args A
encryption_settings
block as defined below.- incremental_
enabled bool Specifies if the Snapshot is incremental.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- source_
resource_ strid Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source_
uri str Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage_
account_ strid Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Mapping[str, str]
A mapping of tags to assign to the resource.
- trusted_
launch_ boolenabled Whether Trusted Launch is enabled for the Snapshot.
- create
Option String Indicates how the snapshot is to be created. Possible values are
Copy
orImport
.- disk
Size NumberGb The size of the Snapshotted Disk in GB.
- encryption
Settings Property Map A
encryption_settings
block as defined below.- incremental
Enabled Boolean Specifies if the Snapshot is incremental.
- location String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
Specifies the name of the Snapshot resource. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.
- source
Resource StringId Specifies a reference to an existing snapshot, when
create_option
isCopy
. Changing this forces a new resource to be created.- source
Uri String Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.
- storage
Account StringId Specifies the ID of an storage account. Used with
source_uri
to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.- Map<String>
A mapping of tags to assign to the resource.
- trusted
Launch BooleanEnabled Whether Trusted Launch is enabled for the Snapshot.
Supporting Types
SnapshotEncryptionSettings
- Disk
Encryption SnapshotKey Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined below.- Enabled bool
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- Key
Encryption SnapshotKey Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- Disk
Encryption SnapshotKey Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined below.- Enabled bool
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- Key
Encryption SnapshotKey Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk
Encryption SnapshotKey Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined below.- enabled Boolean
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key
Encryption SnapshotKey Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk
Encryption SnapshotKey Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined below.- enabled boolean
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key
Encryption SnapshotKey Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk_
encryption_ Snapshotkey Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined below.- enabled bool
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key_
encryption_ Snapshotkey Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk
Encryption Property MapKey A
disk_encryption_key
block as defined below.- enabled Boolean
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key
Encryption Property MapKey A
key_encryption_key
block as defined below.
SnapshotEncryptionSettingsDiskEncryptionKey
- Secret
Url string The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- Secret
Url string The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret
Url String The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret
Url string The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret_
url str The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source_
vault_ strid The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret
Url String The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
SnapshotEncryptionSettingsKeyEncryptionKey
- Key
Url string The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- Key
Url string The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key
Url String The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key
Url string The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key_
url str The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source_
vault_ strid The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key
Url String The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.