We recommend using Azure Native.
azure.compute.ManagedDisk
Explore with Pulumi AI
Manages a managed disk.
Example Usage
With Create Empty
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleManagedDisk = new azure.compute.ManagedDisk("example", {
    name: "acctestmd",
    location: example.location,
    resourceGroupName: example.name,
    storageAccountType: "Standard_LRS",
    createOption: "Empty",
    diskSizeGb: 1,
    tags: {
        environment: "staging",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_managed_disk = azure.compute.ManagedDisk("example",
    name="acctestmd",
    location=example.location,
    resource_group_name=example.name,
    storage_account_type="Standard_LRS",
    create_option="Empty",
    disk_size_gb=1,
    tags={
        "environment": "staging",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = compute.NewManagedDisk(ctx, "example", &compute.ManagedDiskArgs{
			Name:               pulumi.String("acctestmd"),
			Location:           example.Location,
			ResourceGroupName:  example.Name,
			StorageAccountType: pulumi.String("Standard_LRS"),
			CreateOption:       pulumi.String("Empty"),
			DiskSizeGb:         pulumi.Int(1),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("staging"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleManagedDisk = new Azure.Compute.ManagedDisk("example", new()
    {
        Name = "acctestmd",
        Location = example.Location,
        ResourceGroupName = example.Name,
        StorageAccountType = "Standard_LRS",
        CreateOption = "Empty",
        DiskSizeGb = 1,
        Tags = 
        {
            { "environment", "staging" },
        },
    });
});
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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleManagedDisk = new ManagedDisk("exampleManagedDisk", ManagedDiskArgs.builder()
            .name("acctestmd")
            .location(example.location())
            .resourceGroupName(example.name())
            .storageAccountType("Standard_LRS")
            .createOption("Empty")
            .diskSizeGb("1")
            .tags(Map.of("environment", "staging"))
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleManagedDisk:
    type: azure:compute:ManagedDisk
    name: example
    properties:
      name: acctestmd
      location: ${example.location}
      resourceGroupName: ${example.name}
      storageAccountType: Standard_LRS
      createOption: Empty
      diskSizeGb: '1'
      tags:
        environment: staging
With Create Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const source = new azure.compute.ManagedDisk("source", {
    name: "acctestmd1",
    location: example.location,
    resourceGroupName: example.name,
    storageAccountType: "Standard_LRS",
    createOption: "Empty",
    diskSizeGb: 1,
    tags: {
        environment: "staging",
    },
});
const copy = new azure.compute.ManagedDisk("copy", {
    name: "acctestmd2",
    location: example.location,
    resourceGroupName: example.name,
    storageAccountType: "Standard_LRS",
    createOption: "Copy",
    sourceResourceId: source.id,
    diskSizeGb: 1,
    tags: {
        environment: "staging",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
source = azure.compute.ManagedDisk("source",
    name="acctestmd1",
    location=example.location,
    resource_group_name=example.name,
    storage_account_type="Standard_LRS",
    create_option="Empty",
    disk_size_gb=1,
    tags={
        "environment": "staging",
    })
copy = azure.compute.ManagedDisk("copy",
    name="acctestmd2",
    location=example.location,
    resource_group_name=example.name,
    storage_account_type="Standard_LRS",
    create_option="Copy",
    source_resource_id=source.id,
    disk_size_gb=1,
    tags={
        "environment": "staging",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		source, err := compute.NewManagedDisk(ctx, "source", &compute.ManagedDiskArgs{
			Name:               pulumi.String("acctestmd1"),
			Location:           example.Location,
			ResourceGroupName:  example.Name,
			StorageAccountType: pulumi.String("Standard_LRS"),
			CreateOption:       pulumi.String("Empty"),
			DiskSizeGb:         pulumi.Int(1),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("staging"),
			},
		})
		if err != nil {
			return err
		}
		_, err = compute.NewManagedDisk(ctx, "copy", &compute.ManagedDiskArgs{
			Name:               pulumi.String("acctestmd2"),
			Location:           example.Location,
			ResourceGroupName:  example.Name,
			StorageAccountType: pulumi.String("Standard_LRS"),
			CreateOption:       pulumi.String("Copy"),
			SourceResourceId:   source.ID(),
			DiskSizeGb:         pulumi.Int(1),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("staging"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var source = new Azure.Compute.ManagedDisk("source", new()
    {
        Name = "acctestmd1",
        Location = example.Location,
        ResourceGroupName = example.Name,
        StorageAccountType = "Standard_LRS",
        CreateOption = "Empty",
        DiskSizeGb = 1,
        Tags = 
        {
            { "environment", "staging" },
        },
    });
    var copy = new Azure.Compute.ManagedDisk("copy", new()
    {
        Name = "acctestmd2",
        Location = example.Location,
        ResourceGroupName = example.Name,
        StorageAccountType = "Standard_LRS",
        CreateOption = "Copy",
        SourceResourceId = source.Id,
        DiskSizeGb = 1,
        Tags = 
        {
            { "environment", "staging" },
        },
    });
});
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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var source = new ManagedDisk("source", ManagedDiskArgs.builder()
            .name("acctestmd1")
            .location(example.location())
            .resourceGroupName(example.name())
            .storageAccountType("Standard_LRS")
            .createOption("Empty")
            .diskSizeGb("1")
            .tags(Map.of("environment", "staging"))
            .build());
        var copy = new ManagedDisk("copy", ManagedDiskArgs.builder()
            .name("acctestmd2")
            .location(example.location())
            .resourceGroupName(example.name())
            .storageAccountType("Standard_LRS")
            .createOption("Copy")
            .sourceResourceId(source.id())
            .diskSizeGb("1")
            .tags(Map.of("environment", "staging"))
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  source:
    type: azure:compute:ManagedDisk
    properties:
      name: acctestmd1
      location: ${example.location}
      resourceGroupName: ${example.name}
      storageAccountType: Standard_LRS
      createOption: Empty
      diskSizeGb: '1'
      tags:
        environment: staging
  copy:
    type: azure:compute:ManagedDisk
    properties:
      name: acctestmd2
      location: ${example.location}
      resourceGroupName: ${example.name}
      storageAccountType: Standard_LRS
      createOption: Copy
      sourceResourceId: ${source.id}
      diskSizeGb: '1'
      tags:
        environment: staging
Create ManagedDisk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedDisk(name: string, args: ManagedDiskArgs, opts?: CustomResourceOptions);@overload
def ManagedDisk(resource_name: str,
                args: ManagedDiskArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def ManagedDisk(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                create_option: Optional[str] = None,
                storage_account_type: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                name: Optional[str] = None,
                trusted_launch_enabled: Optional[bool] = None,
                disk_mbps_read_only: Optional[int] = None,
                disk_mbps_read_write: Optional[int] = None,
                disk_size_gb: Optional[int] = None,
                edge_zone: Optional[str] = None,
                optimized_frequent_attach_enabled: Optional[bool] = None,
                gallery_image_reference_id: Optional[str] = None,
                hyper_v_generation: Optional[str] = None,
                image_reference_id: Optional[str] = None,
                location: Optional[str] = None,
                logical_sector_size: Optional[int] = None,
                max_shares: Optional[int] = None,
                disk_iops_read_only: Optional[int] = None,
                zone: Optional[str] = None,
                disk_iops_read_write: Optional[int] = None,
                encryption_settings: Optional[ManagedDiskEncryptionSettingsArgs] = None,
                os_type: Optional[str] = None,
                performance_plus_enabled: Optional[bool] = None,
                public_network_access_enabled: Optional[bool] = None,
                disk_encryption_set_id: Optional[str] = None,
                secure_vm_disk_encryption_set_id: Optional[str] = None,
                security_type: Optional[str] = None,
                source_resource_id: Optional[str] = None,
                source_uri: Optional[str] = None,
                storage_account_id: Optional[str] = None,
                disk_access_id: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                tier: Optional[str] = None,
                on_demand_bursting_enabled: Optional[bool] = None,
                upload_size_bytes: Optional[int] = None,
                network_access_policy: Optional[str] = None)func NewManagedDisk(ctx *Context, name string, args ManagedDiskArgs, opts ...ResourceOption) (*ManagedDisk, error)public ManagedDisk(string name, ManagedDiskArgs args, CustomResourceOptions? opts = null)
public ManagedDisk(String name, ManagedDiskArgs args)
public ManagedDisk(String name, ManagedDiskArgs args, CustomResourceOptions options)
type: azure:compute:ManagedDisk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ManagedDiskArgs
- 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 ManagedDiskArgs
- 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 ManagedDiskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedDiskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var managedDiskResource = new Azure.Compute.ManagedDisk("managedDiskResource", new()
{
    CreateOption = "string",
    StorageAccountType = "string",
    ResourceGroupName = "string",
    Name = "string",
    TrustedLaunchEnabled = false,
    DiskMbpsReadOnly = 0,
    DiskMbpsReadWrite = 0,
    DiskSizeGb = 0,
    EdgeZone = "string",
    OptimizedFrequentAttachEnabled = false,
    GalleryImageReferenceId = "string",
    HyperVGeneration = "string",
    ImageReferenceId = "string",
    Location = "string",
    LogicalSectorSize = 0,
    MaxShares = 0,
    DiskIopsReadOnly = 0,
    Zone = "string",
    DiskIopsReadWrite = 0,
    EncryptionSettings = new Azure.Compute.Inputs.ManagedDiskEncryptionSettingsArgs
    {
        DiskEncryptionKey = new Azure.Compute.Inputs.ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs
        {
            SecretUrl = "string",
            SourceVaultId = "string",
        },
        KeyEncryptionKey = new Azure.Compute.Inputs.ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs
        {
            KeyUrl = "string",
            SourceVaultId = "string",
        },
    },
    OsType = "string",
    PerformancePlusEnabled = false,
    PublicNetworkAccessEnabled = false,
    DiskEncryptionSetId = "string",
    SecureVmDiskEncryptionSetId = "string",
    SecurityType = "string",
    SourceResourceId = "string",
    SourceUri = "string",
    StorageAccountId = "string",
    DiskAccessId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Tier = "string",
    OnDemandBurstingEnabled = false,
    UploadSizeBytes = 0,
    NetworkAccessPolicy = "string",
});
example, err := compute.NewManagedDisk(ctx, "managedDiskResource", &compute.ManagedDiskArgs{
	CreateOption:                   pulumi.String("string"),
	StorageAccountType:             pulumi.String("string"),
	ResourceGroupName:              pulumi.String("string"),
	Name:                           pulumi.String("string"),
	TrustedLaunchEnabled:           pulumi.Bool(false),
	DiskMbpsReadOnly:               pulumi.Int(0),
	DiskMbpsReadWrite:              pulumi.Int(0),
	DiskSizeGb:                     pulumi.Int(0),
	EdgeZone:                       pulumi.String("string"),
	OptimizedFrequentAttachEnabled: pulumi.Bool(false),
	GalleryImageReferenceId:        pulumi.String("string"),
	HyperVGeneration:               pulumi.String("string"),
	ImageReferenceId:               pulumi.String("string"),
	Location:                       pulumi.String("string"),
	LogicalSectorSize:              pulumi.Int(0),
	MaxShares:                      pulumi.Int(0),
	DiskIopsReadOnly:               pulumi.Int(0),
	Zone:                           pulumi.String("string"),
	DiskIopsReadWrite:              pulumi.Int(0),
	EncryptionSettings: &compute.ManagedDiskEncryptionSettingsArgs{
		DiskEncryptionKey: &compute.ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs{
			SecretUrl:     pulumi.String("string"),
			SourceVaultId: pulumi.String("string"),
		},
		KeyEncryptionKey: &compute.ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs{
			KeyUrl:        pulumi.String("string"),
			SourceVaultId: pulumi.String("string"),
		},
	},
	OsType:                      pulumi.String("string"),
	PerformancePlusEnabled:      pulumi.Bool(false),
	PublicNetworkAccessEnabled:  pulumi.Bool(false),
	DiskEncryptionSetId:         pulumi.String("string"),
	SecureVmDiskEncryptionSetId: pulumi.String("string"),
	SecurityType:                pulumi.String("string"),
	SourceResourceId:            pulumi.String("string"),
	SourceUri:                   pulumi.String("string"),
	StorageAccountId:            pulumi.String("string"),
	DiskAccessId:                pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Tier:                    pulumi.String("string"),
	OnDemandBurstingEnabled: pulumi.Bool(false),
	UploadSizeBytes:         pulumi.Int(0),
	NetworkAccessPolicy:     pulumi.String("string"),
})
var managedDiskResource = new ManagedDisk("managedDiskResource", ManagedDiskArgs.builder()
    .createOption("string")
    .storageAccountType("string")
    .resourceGroupName("string")
    .name("string")
    .trustedLaunchEnabled(false)
    .diskMbpsReadOnly(0)
    .diskMbpsReadWrite(0)
    .diskSizeGb(0)
    .edgeZone("string")
    .optimizedFrequentAttachEnabled(false)
    .galleryImageReferenceId("string")
    .hyperVGeneration("string")
    .imageReferenceId("string")
    .location("string")
    .logicalSectorSize(0)
    .maxShares(0)
    .diskIopsReadOnly(0)
    .zone("string")
    .diskIopsReadWrite(0)
    .encryptionSettings(ManagedDiskEncryptionSettingsArgs.builder()
        .diskEncryptionKey(ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs.builder()
            .secretUrl("string")
            .sourceVaultId("string")
            .build())
        .keyEncryptionKey(ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs.builder()
            .keyUrl("string")
            .sourceVaultId("string")
            .build())
        .build())
    .osType("string")
    .performancePlusEnabled(false)
    .publicNetworkAccessEnabled(false)
    .diskEncryptionSetId("string")
    .secureVmDiskEncryptionSetId("string")
    .securityType("string")
    .sourceResourceId("string")
    .sourceUri("string")
    .storageAccountId("string")
    .diskAccessId("string")
    .tags(Map.of("string", "string"))
    .tier("string")
    .onDemandBurstingEnabled(false)
    .uploadSizeBytes(0)
    .networkAccessPolicy("string")
    .build());
managed_disk_resource = azure.compute.ManagedDisk("managedDiskResource",
    create_option="string",
    storage_account_type="string",
    resource_group_name="string",
    name="string",
    trusted_launch_enabled=False,
    disk_mbps_read_only=0,
    disk_mbps_read_write=0,
    disk_size_gb=0,
    edge_zone="string",
    optimized_frequent_attach_enabled=False,
    gallery_image_reference_id="string",
    hyper_v_generation="string",
    image_reference_id="string",
    location="string",
    logical_sector_size=0,
    max_shares=0,
    disk_iops_read_only=0,
    zone="string",
    disk_iops_read_write=0,
    encryption_settings={
        "disk_encryption_key": {
            "secret_url": "string",
            "source_vault_id": "string",
        },
        "key_encryption_key": {
            "key_url": "string",
            "source_vault_id": "string",
        },
    },
    os_type="string",
    performance_plus_enabled=False,
    public_network_access_enabled=False,
    disk_encryption_set_id="string",
    secure_vm_disk_encryption_set_id="string",
    security_type="string",
    source_resource_id="string",
    source_uri="string",
    storage_account_id="string",
    disk_access_id="string",
    tags={
        "string": "string",
    },
    tier="string",
    on_demand_bursting_enabled=False,
    upload_size_bytes=0,
    network_access_policy="string")
const managedDiskResource = new azure.compute.ManagedDisk("managedDiskResource", {
    createOption: "string",
    storageAccountType: "string",
    resourceGroupName: "string",
    name: "string",
    trustedLaunchEnabled: false,
    diskMbpsReadOnly: 0,
    diskMbpsReadWrite: 0,
    diskSizeGb: 0,
    edgeZone: "string",
    optimizedFrequentAttachEnabled: false,
    galleryImageReferenceId: "string",
    hyperVGeneration: "string",
    imageReferenceId: "string",
    location: "string",
    logicalSectorSize: 0,
    maxShares: 0,
    diskIopsReadOnly: 0,
    zone: "string",
    diskIopsReadWrite: 0,
    encryptionSettings: {
        diskEncryptionKey: {
            secretUrl: "string",
            sourceVaultId: "string",
        },
        keyEncryptionKey: {
            keyUrl: "string",
            sourceVaultId: "string",
        },
    },
    osType: "string",
    performancePlusEnabled: false,
    publicNetworkAccessEnabled: false,
    diskEncryptionSetId: "string",
    secureVmDiskEncryptionSetId: "string",
    securityType: "string",
    sourceResourceId: "string",
    sourceUri: "string",
    storageAccountId: "string",
    diskAccessId: "string",
    tags: {
        string: "string",
    },
    tier: "string",
    onDemandBurstingEnabled: false,
    uploadSizeBytes: 0,
    networkAccessPolicy: "string",
});
type: azure:compute:ManagedDisk
properties:
    createOption: string
    diskAccessId: string
    diskEncryptionSetId: string
    diskIopsReadOnly: 0
    diskIopsReadWrite: 0
    diskMbpsReadOnly: 0
    diskMbpsReadWrite: 0
    diskSizeGb: 0
    edgeZone: string
    encryptionSettings:
        diskEncryptionKey:
            secretUrl: string
            sourceVaultId: string
        keyEncryptionKey:
            keyUrl: string
            sourceVaultId: string
    galleryImageReferenceId: string
    hyperVGeneration: string
    imageReferenceId: string
    location: string
    logicalSectorSize: 0
    maxShares: 0
    name: string
    networkAccessPolicy: string
    onDemandBurstingEnabled: false
    optimizedFrequentAttachEnabled: false
    osType: string
    performancePlusEnabled: false
    publicNetworkAccessEnabled: false
    resourceGroupName: string
    secureVmDiskEncryptionSetId: string
    securityType: string
    sourceResourceId: string
    sourceUri: string
    storageAccountId: string
    storageAccountType: string
    tags:
        string: string
    tier: string
    trustedLaunchEnabled: false
    uploadSizeBytes: 0
    zone: string
ManagedDisk Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ManagedDisk resource accepts the following input properties:
- CreateOption string
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- ResourceGroup stringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- StorageAccount stringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- DiskAccess stringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- DiskEncryption stringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- DiskIops intRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- DiskIops intRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- DiskMbps intRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- DiskMbps intRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- DiskSize intGb 
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- EncryptionSettings ManagedDisk Encryption Settings 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- GalleryImage stringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- HyperVGeneration string
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- ImageReference stringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- LogicalSector intSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- Name string
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- NetworkAccess stringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- OnDemand boolBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- OptimizedFrequent boolAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- OsType string
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- PerformancePlus boolEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- SecureVm stringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SecurityType string
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SourceResource stringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- SourceUri string
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Tier string
- TrustedLaunch boolEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- UploadSize intBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- Zone string
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- CreateOption string
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- ResourceGroup stringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- StorageAccount stringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- DiskAccess stringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- DiskEncryption stringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- DiskIops intRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- DiskIops intRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- DiskMbps intRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- DiskMbps intRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- DiskSize intGb 
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- EncryptionSettings ManagedDisk Encryption Settings Args 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- GalleryImage stringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- HyperVGeneration string
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- ImageReference stringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- LogicalSector intSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- Name string
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- NetworkAccess stringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- OnDemand boolBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- OptimizedFrequent boolAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- OsType string
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- PerformancePlus boolEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- SecureVm stringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SecurityType string
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SourceResource stringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- SourceUri string
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- Tier string
- TrustedLaunch boolEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- UploadSize intBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- Zone string
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- createOption String
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- resourceGroup StringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- storageAccount StringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- diskAccess StringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- diskEncryption StringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- diskIops IntegerRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- diskIops IntegerRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- diskMbps IntegerRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- diskMbps IntegerRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- diskSize IntegerGb 
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryptionSettings ManagedDisk Encryption Settings 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- galleryImage StringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyperVGeneration String
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- imageReference StringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logicalSector IntegerSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- Integer
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name String
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- networkAccess StringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- onDemand BooleanBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimizedFrequent BooleanAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- osType String
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performancePlus BooleanEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- secureVm StringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- securityType String
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- sourceResource StringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- sourceUri String
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tier String
- trustedLaunch BooleanEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- uploadSize IntegerBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone String
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- createOption string
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- resourceGroup stringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- storageAccount stringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- diskAccess stringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- diskEncryption stringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- diskIops numberRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- diskIops numberRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- diskMbps numberRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- diskMbps numberRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- diskSize numberGb 
- edgeZone string
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryptionSettings ManagedDisk Encryption Settings 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- galleryImage stringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyperVGeneration string
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- imageReference stringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logicalSector numberSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name string
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- networkAccess stringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- onDemand booleanBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimizedFrequent booleanAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- osType string
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performancePlus booleanEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- publicNetwork booleanAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- secureVm stringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- securityType string
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- sourceResource stringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- sourceUri string
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount stringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tier string
- trustedLaunch booleanEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- uploadSize numberBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone string
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- create_option str
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- resource_group_ strname 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- storage_account_ strtype 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- disk_access_ strid 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- disk_encryption_ strset_ id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- disk_iops_ intread_ only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- disk_iops_ intread_ write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- disk_mbps_ intread_ only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- disk_mbps_ intread_ write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk_size_ intgb 
- edge_zone str
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryption_settings ManagedDisk Encryption Settings Args 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- gallery_image_ strreference_ id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyper_v_ strgeneration 
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- image_reference_ strid 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location str
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logical_sector_ intsize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name str
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- network_access_ strpolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- on_demand_ boolbursting_ enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimized_frequent_ boolattach_ enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- os_type str
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performance_plus_ boolenabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- public_network_ boolaccess_ enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- secure_vm_ strdisk_ encryption_ set_ id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- security_type str
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- source_resource_ strid 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- source_uri str
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storage_account_ strid 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tier str
- trusted_launch_ boolenabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- upload_size_ intbytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone str
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- createOption String
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- resourceGroup StringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- storageAccount StringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- diskAccess StringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- diskEncryption StringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- diskIops NumberRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- diskIops NumberRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- diskMbps NumberRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- diskMbps NumberRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- diskSize NumberGb 
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryptionSettings Property Map
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- galleryImage StringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyperVGeneration String
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- imageReference StringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logicalSector NumberSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- Number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name String
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- networkAccess StringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- onDemand BooleanBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimizedFrequent BooleanAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- osType String
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performancePlus BooleanEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- secureVm StringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- securityType String
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- sourceResource StringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- sourceUri String
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
- tier String
- trustedLaunch BooleanEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- uploadSize NumberBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone String
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedDisk resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ManagedDisk Resource
Get an existing ManagedDisk 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?: ManagedDiskState, opts?: CustomResourceOptions): ManagedDisk@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_option: Optional[str] = None,
        disk_access_id: Optional[str] = None,
        disk_encryption_set_id: Optional[str] = None,
        disk_iops_read_only: Optional[int] = None,
        disk_iops_read_write: Optional[int] = None,
        disk_mbps_read_only: Optional[int] = None,
        disk_mbps_read_write: Optional[int] = None,
        disk_size_gb: Optional[int] = None,
        edge_zone: Optional[str] = None,
        encryption_settings: Optional[ManagedDiskEncryptionSettingsArgs] = None,
        gallery_image_reference_id: Optional[str] = None,
        hyper_v_generation: Optional[str] = None,
        image_reference_id: Optional[str] = None,
        location: Optional[str] = None,
        logical_sector_size: Optional[int] = None,
        max_shares: Optional[int] = None,
        name: Optional[str] = None,
        network_access_policy: Optional[str] = None,
        on_demand_bursting_enabled: Optional[bool] = None,
        optimized_frequent_attach_enabled: Optional[bool] = None,
        os_type: Optional[str] = None,
        performance_plus_enabled: Optional[bool] = None,
        public_network_access_enabled: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        secure_vm_disk_encryption_set_id: Optional[str] = None,
        security_type: Optional[str] = None,
        source_resource_id: Optional[str] = None,
        source_uri: Optional[str] = None,
        storage_account_id: Optional[str] = None,
        storage_account_type: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tier: Optional[str] = None,
        trusted_launch_enabled: Optional[bool] = None,
        upload_size_bytes: Optional[int] = None,
        zone: Optional[str] = None) -> ManagedDiskfunc GetManagedDisk(ctx *Context, name string, id IDInput, state *ManagedDiskState, opts ...ResourceOption) (*ManagedDisk, error)public static ManagedDisk Get(string name, Input<string> id, ManagedDiskState? state, CustomResourceOptions? opts = null)public static ManagedDisk get(String name, Output<String> id, ManagedDiskState state, CustomResourceOptions options)resources:  _:    type: azure:compute:ManagedDisk    get:      id: ${id}- 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.
- CreateOption string
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- DiskAccess stringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- DiskEncryption stringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- DiskIops intRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- DiskIops intRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- DiskMbps intRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- DiskMbps intRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- DiskSize intGb 
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- EncryptionSettings ManagedDisk Encryption Settings 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- GalleryImage stringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- HyperVGeneration string
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- ImageReference stringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- LogicalSector intSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- Name string
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- NetworkAccess stringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- OnDemand boolBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- OptimizedFrequent boolAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- OsType string
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- PerformancePlus boolEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- ResourceGroup stringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- SecureVm stringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SecurityType string
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SourceResource stringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- SourceUri string
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- StorageAccount stringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Tier string
- TrustedLaunch boolEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- UploadSize intBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- Zone string
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- CreateOption string
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- DiskAccess stringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- DiskEncryption stringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- DiskIops intRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- DiskIops intRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- DiskMbps intRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- DiskMbps intRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- DiskSize intGb 
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- EncryptionSettings ManagedDisk Encryption Settings Args 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- GalleryImage stringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- HyperVGeneration string
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- ImageReference stringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- LogicalSector intSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- Name string
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- NetworkAccess stringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- OnDemand boolBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- OptimizedFrequent boolAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- OsType string
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- PerformancePlus boolEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- ResourceGroup stringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- SecureVm stringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SecurityType string
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- SourceResource stringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- SourceUri string
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- StorageAccount stringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- map[string]string
- A mapping of tags to assign to the resource.
- Tier string
- TrustedLaunch boolEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- UploadSize intBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- Zone string
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- createOption String
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- diskAccess StringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- diskEncryption StringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- diskIops IntegerRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- diskIops IntegerRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- diskMbps IntegerRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- diskMbps IntegerRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- diskSize IntegerGb 
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryptionSettings ManagedDisk Encryption Settings 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- galleryImage StringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyperVGeneration String
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- imageReference StringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logicalSector IntegerSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- Integer
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name String
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- networkAccess StringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- onDemand BooleanBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimizedFrequent BooleanAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- osType String
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performancePlus BooleanEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- resourceGroup StringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- secureVm StringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- securityType String
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- sourceResource StringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- sourceUri String
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount StringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tier String
- trustedLaunch BooleanEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- uploadSize IntegerBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone String
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- createOption string
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- diskAccess stringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- diskEncryption stringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- diskIops numberRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- diskIops numberRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- diskMbps numberRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- diskMbps numberRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- diskSize numberGb 
- edgeZone string
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryptionSettings ManagedDisk Encryption Settings 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- galleryImage stringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyperVGeneration string
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- imageReference stringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logicalSector numberSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name string
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- networkAccess stringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- onDemand booleanBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimizedFrequent booleanAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- osType string
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performancePlus booleanEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- publicNetwork booleanAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- resourceGroup stringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- secureVm stringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- securityType string
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- sourceResource stringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- sourceUri string
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount stringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount stringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tier string
- trustedLaunch booleanEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- uploadSize numberBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone string
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- create_option str
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- disk_access_ strid 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- disk_encryption_ strset_ id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- disk_iops_ intread_ only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- disk_iops_ intread_ write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- disk_mbps_ intread_ only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- disk_mbps_ intread_ write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk_size_ intgb 
- edge_zone str
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryption_settings ManagedDisk Encryption Settings Args 
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- gallery_image_ strreference_ id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyper_v_ strgeneration 
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- image_reference_ strid 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location str
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logical_sector_ intsize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name str
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- network_access_ strpolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- on_demand_ boolbursting_ enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimized_frequent_ boolattach_ enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- os_type str
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performance_plus_ boolenabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- public_network_ boolaccess_ enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- resource_group_ strname 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- secure_vm_ strdisk_ encryption_ set_ id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- security_type str
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- source_resource_ strid 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- source_uri str
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storage_account_ strid 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- storage_account_ strtype 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tier str
- trusted_launch_ boolenabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- upload_size_ intbytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone str
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
- createOption String
- The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:- Import- Import a VHD file in to the managed disk (VHD specified with- source_uri).
- ImportSecure- Securely import a VHD file in to the managed disk (VHD specified with- source_uri).
- Empty- Create an empty managed disk.
- Copy- Copy an existing managed disk or snapshot (specified with- source_resource_id).
- FromImage- Copy a Platform Image (specified with- image_reference_id)
- Restore- Set by Azure Backup or Site Recovery on a restored disk (specified with- source_resource_id).
- Upload- Upload a VHD disk with the help of SAS URL (to be used with- upload_size_bytes).
 
- diskAccess StringId 
- The ID of the disk access resource for using private endpoints on disks. - Note: - disk_access_idis only supported when- network_access_policyis set to- AllowPrivate.
- diskEncryption StringSet Id 
- The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with - secure_vm_disk_encryption_set_id.- NOTE: The Disk Encryption Set must have the - ReaderRole Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault- NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions 
- diskIops NumberRead Only 
- The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
- diskIops NumberRead Write 
- The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.
- diskMbps NumberRead Only 
- The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
- diskMbps NumberRead Write 
- The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- diskSize NumberGb 
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.
- encryptionSettings Property Map
- A - encryption_settingsblock as defined below.- NOTE: Removing - encryption_settingsforces a new resource to be created.
- galleryImage StringReference Id 
- ID of a Gallery Image Version to copy when create_optionisFromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.
- hyperVGeneration String
- The HyperV Generation of the Disk when the source of an ImportorCopyoperation targets a source that contains an operating system. Possible values areV1andV2. ForImportSecureit must be set toV2. Changing this forces a new resource to be created.
- imageReference StringId 
- ID of an existing platform/marketplace disk image to copy when create_optionisFromImage. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logicalSector NumberSize 
- Logical Sector Size. Possible values are: - 512and- 4096. Defaults to- 4096. Changing this forces a new resource to be created.- NOTE: Setting logical sector size is supported only with - UltraSSD_LRSdisks and- PremiumV2_LRSdisks.
- Number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - Note: Premium SSD maxShares limit: - P15and- P20disks: 2.- P30,- P40,- P50disks: 5.- P60,- P70,- P80disks: 10. For ultra disks the- max_sharesminimum value is 1 and the maximum is 5.
- name String
- Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
- networkAccess StringPolicy 
- Policy for accessing the disk via network. Allowed values are AllowAll,AllowPrivate, andDenyAll.
- onDemand BooleanBursting Enabled 
- Specifies if On-Demand Bursting is enabled for the Managed Disk. - Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation. 
- optimizedFrequent BooleanAttach Enabled 
- Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to - false.- Note: Setting - optimized_frequent_attach_enabledto- truecauses the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
- osType String
- Specify a value when the source of an Import,ImportSecureorCopyoperation targets a source that contains an operating system. Valid values areLinuxorWindows.
- performancePlus BooleanEnabled 
- Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether it is allowed to access the disk via public network. Defaults to - true.- For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation. 
- resourceGroup StringName 
- The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- secureVm StringDisk Encryption Set Id 
- The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with - disk_encryption_set_id. Changing this forces a new resource to be created.- NOTE: - secure_vm_disk_encryption_set_idcan only be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- securityType String
- Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are - ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,- ConfidentialVM_DiskEncryptedWithPlatformKeyand- ConfidentialVM_DiskEncryptedWithCustomerKey. Changing this forces a new resource to be created.- NOTE: When - security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKeythe value of- create_optionmust be one of- FromImageor- ImportSecure.- NOTE: - security_typecannot be specified when- trusted_launch_enabledis set to true.- NOTE: - secure_vm_disk_encryption_set_idmust be specified when- security_typeis set to- ConfidentialVM_DiskEncryptedWithCustomerKey.
- sourceResource StringId 
- The ID of an existing Managed Disk or Snapshot to copy when create_optionisCopyor the recovery point to restore whencreate_optionisRestore. Changing this forces a new resource to be created.
- sourceUri String
- URI to a valid VHD file to be used when create_optionisImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the source_uriis located. Required whencreate_optionis set toImportorImportSecure. Changing this forces a new resource to be created.
- storageAccount StringType 
- The type of storage to use for the managed disk. Possible values are - Standard_LRS,- StandardSSD_ZRS,- Premium_LRS,- PremiumV2_LRS,- Premium_ZRS,- StandardSSD_LRSor- UltraSSD_LRS.- Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series: - ESv3,- DSv3,- FSv3,- LSv2,- Mand- Mv2. For more information see the- Azure Ultra Disk Storageproduct documentation.
- Map<String>
- A mapping of tags to assign to the resource.
- tier String
- trustedLaunch BooleanEnabled 
- Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created. - Note: Trusted Launch can only be enabled when - create_optionis- FromImageor- Import.
- uploadSize NumberBytes 
- Specifies the size of the managed disk to create in bytes. Required when create_optionisUpload. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -lorwc -c. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
- zone String
- Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created. - Note: Availability Zones are only supported in select regions at this time. 
Supporting Types
ManagedDiskEncryptionSettings, ManagedDiskEncryptionSettingsArgs        
- DiskEncryption ManagedKey Disk Encryption Settings Disk Encryption Key 
- A disk_encryption_keyblock as defined above.
- KeyEncryption ManagedKey Disk Encryption Settings Key Encryption Key 
- A key_encryption_keyblock as defined below.
- DiskEncryption ManagedKey Disk Encryption Settings Disk Encryption Key 
- A disk_encryption_keyblock as defined above.
- KeyEncryption ManagedKey Disk Encryption Settings Key Encryption Key 
- A key_encryption_keyblock as defined below.
- diskEncryption ManagedKey Disk Encryption Settings Disk Encryption Key 
- A disk_encryption_keyblock as defined above.
- keyEncryption ManagedKey Disk Encryption Settings Key Encryption Key 
- A key_encryption_keyblock as defined below.
- diskEncryption ManagedKey Disk Encryption Settings Disk Encryption Key 
- A disk_encryption_keyblock as defined above.
- keyEncryption ManagedKey Disk Encryption Settings Key Encryption Key 
- A key_encryption_keyblock as defined below.
- disk_encryption_ Managedkey Disk Encryption Settings Disk Encryption Key 
- A disk_encryption_keyblock as defined above.
- key_encryption_ Managedkey Disk Encryption Settings Key Encryption Key 
- A key_encryption_keyblock as defined below.
- diskEncryption Property MapKey 
- A disk_encryption_keyblock as defined above.
- keyEncryption Property MapKey 
- A key_encryption_keyblock as defined below.
ManagedDiskEncryptionSettingsDiskEncryptionKey, ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs              
- SecretUrl string
- The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as idon theazure.keyvault.Secretresource.
- SourceVault stringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- SecretUrl string
- The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as idon theazure.keyvault.Secretresource.
- SourceVault stringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- secretUrl String
- The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as idon theazure.keyvault.Secretresource.
- sourceVault StringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- secretUrl string
- The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as idon theazure.keyvault.Secretresource.
- sourceVault stringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- secret_url str
- The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as idon theazure.keyvault.Secretresource.
- source_vault_ strid 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- secretUrl String
- The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as idon theazure.keyvault.Secretresource.
- sourceVault StringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
ManagedDiskEncryptionSettingsKeyEncryptionKey, ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs              
- KeyUrl string
- The URL to the Key Vault Key used as the Key Encryption Key. This can be found as idon theazure.keyvault.Keyresource.
- SourceVault stringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- KeyUrl string
- The URL to the Key Vault Key used as the Key Encryption Key. This can be found as idon theazure.keyvault.Keyresource.
- SourceVault stringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- keyUrl String
- The URL to the Key Vault Key used as the Key Encryption Key. This can be found as idon theazure.keyvault.Keyresource.
- sourceVault StringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- keyUrl string
- The URL to the Key Vault Key used as the Key Encryption Key. This can be found as idon theazure.keyvault.Keyresource.
- sourceVault stringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- key_url str
- The URL to the Key Vault Key used as the Key Encryption Key. This can be found as idon theazure.keyvault.Keyresource.
- source_vault_ strid 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
- keyUrl String
- The URL to the Key Vault Key used as the Key Encryption Key. This can be found as idon theazure.keyvault.Keyresource.
- sourceVault StringId 
- The ID of the source Key Vault. This can be found as idon theazure.keyvault.KeyVaultresource.
Import
Managed Disks can be imported using the resource id, e.g.
$ pulumi import azure:compute/managedDisk:ManagedDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/disks/manageddisk1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.