1. Packages
  2. Azure Classic
  3. API Docs
  4. compute
  5. ManagedDisk

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a managed disk.

    Example Usage

    With Create Empty

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleManagedDisk = new Azure.Compute.ManagedDisk("exampleManagedDisk", new Azure.Compute.ManagedDiskArgs
            {
                Location = "West US 2",
                ResourceGroupName = exampleResourceGroup.Name,
                StorageAccountType = "Standard_LRS",
                CreateOption = "Empty",
                DiskSizeGb = 1,
                Tags = 
                {
                    { "environment", "staging" },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/compute"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewManagedDisk(ctx, "exampleManagedDisk", &compute.ManagedDiskArgs{
    			Location:           pulumi.String("West US 2"),
    			ResourceGroupName:  exampleResourceGroup.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
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleManagedDisk = new azure.compute.ManagedDisk("exampleManagedDisk", {
        location: "West US 2",
        resourceGroupName: exampleResourceGroup.name,
        storageAccountType: "Standard_LRS",
        createOption: "Empty",
        diskSizeGb: "1",
        tags: {
            environment: "staging",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_managed_disk = azure.compute.ManagedDisk("exampleManagedDisk",
        location="West US 2",
        resource_group_name=example_resource_group.name,
        storage_account_type="Standard_LRS",
        create_option="Empty",
        disk_size_gb=1,
        tags={
            "environment": "staging",
        })
    

    Example coming soon!

    With Create Copy

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var example = new Azure.Core.ResourceGroup("example", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var source = new Azure.Compute.ManagedDisk("source", new Azure.Compute.ManagedDiskArgs
            {
                Location = "West US 2",
                ResourceGroupName = example.Name,
                StorageAccountType = "Standard_LRS",
                CreateOption = "Empty",
                DiskSizeGb = 1,
                Tags = 
                {
                    { "environment", "staging" },
                },
            });
            var copy = new Azure.Compute.ManagedDisk("copy", new Azure.Compute.ManagedDiskArgs
            {
                Location = "West US 2",
                ResourceGroupName = example.Name,
                StorageAccountType = "Standard_LRS",
                CreateOption = "Copy",
                SourceResourceId = source.Id,
                DiskSizeGb = 1,
                Tags = 
                {
                    { "environment", "staging" },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/compute"
    	"github.com/pulumi/pulumi-azure/sdk/v4/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{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		source, err := compute.NewManagedDisk(ctx, "source", &compute.ManagedDiskArgs{
    			Location:           pulumi.String("West US 2"),
    			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{
    			Location:           pulumi.String("West US 2"),
    			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
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {location: "West Europe"});
    const source = new azure.compute.ManagedDisk("source", {
        location: "West US 2",
        resourceGroupName: example.name,
        storageAccountType: "Standard_LRS",
        createOption: "Empty",
        diskSizeGb: "1",
        tags: {
            environment: "staging",
        },
    });
    const copy = new azure.compute.ManagedDisk("copy", {
        location: "West US 2",
        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", location="West Europe")
    source = azure.compute.ManagedDisk("source",
        location="West US 2",
        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",
        location="West US 2",
        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",
        })
    

    Example coming soon!

    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,
                    max_shares: Optional[int] = None,
                    network_access_policy: Optional[str] = None,
                    disk_mbps_read_only: Optional[int] = None,
                    disk_mbps_read_write: Optional[int] = None,
                    disk_size_gb: Optional[int] = 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,
                    disk_iops_read_only: Optional[int] = None,
                    name: Optional[str] = None,
                    disk_iops_read_write: Optional[int] = None,
                    on_demand_bursting_enabled: Optional[bool] = None,
                    os_type: Optional[str] = None,
                    public_network_access_enabled: Optional[bool] = None,
                    disk_encryption_set_id: 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,
                    trusted_launch_enabled: Optional[bool] = None,
                    zones: 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",
        MaxShares = 0,
        NetworkAccessPolicy = "string",
        DiskMbpsReadOnly = 0,
        DiskMbpsReadWrite = 0,
        DiskSizeGb = 0,
        EncryptionSettings = new Azure.Compute.Inputs.ManagedDiskEncryptionSettingsArgs
        {
            Enabled = false,
            DiskEncryptionKey = new Azure.Compute.Inputs.ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs
            {
                SecretUrl = "string",
                SourceVaultId = "string",
            },
            KeyEncryptionKey = new Azure.Compute.Inputs.ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs
            {
                KeyUrl = "string",
                SourceVaultId = "string",
            },
        },
        GalleryImageReferenceId = "string",
        HyperVGeneration = "string",
        ImageReferenceId = "string",
        Location = "string",
        LogicalSectorSize = 0,
        DiskIopsReadOnly = 0,
        Name = "string",
        DiskIopsReadWrite = 0,
        OnDemandBurstingEnabled = false,
        OsType = "string",
        PublicNetworkAccessEnabled = false,
        DiskEncryptionSetId = "string",
        SourceResourceId = "string",
        SourceUri = "string",
        StorageAccountId = "string",
        DiskAccessId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Tier = "string",
        TrustedLaunchEnabled = false,
        Zones = "string",
    });
    
    example, err := compute.NewManagedDisk(ctx, "managedDiskResource", &compute.ManagedDiskArgs{
    	CreateOption:        pulumi.String("string"),
    	StorageAccountType:  pulumi.String("string"),
    	ResourceGroupName:   pulumi.String("string"),
    	MaxShares:           pulumi.Int(0),
    	NetworkAccessPolicy: pulumi.String("string"),
    	DiskMbpsReadOnly:    pulumi.Int(0),
    	DiskMbpsReadWrite:   pulumi.Int(0),
    	DiskSizeGb:          pulumi.Int(0),
    	EncryptionSettings: &compute.ManagedDiskEncryptionSettingsArgs{
    		Enabled: pulumi.Bool(false),
    		DiskEncryptionKey: &compute.ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs{
    			SecretUrl:     pulumi.String("string"),
    			SourceVaultId: pulumi.String("string"),
    		},
    		KeyEncryptionKey: &compute.ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs{
    			KeyUrl:        pulumi.String("string"),
    			SourceVaultId: pulumi.String("string"),
    		},
    	},
    	GalleryImageReferenceId:    pulumi.String("string"),
    	HyperVGeneration:           pulumi.String("string"),
    	ImageReferenceId:           pulumi.String("string"),
    	Location:                   pulumi.String("string"),
    	LogicalSectorSize:          pulumi.Int(0),
    	DiskIopsReadOnly:           pulumi.Int(0),
    	Name:                       pulumi.String("string"),
    	DiskIopsReadWrite:          pulumi.Int(0),
    	OnDemandBurstingEnabled:    pulumi.Bool(false),
    	OsType:                     pulumi.String("string"),
    	PublicNetworkAccessEnabled: pulumi.Bool(false),
    	DiskEncryptionSetId:        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"),
    	TrustedLaunchEnabled: pulumi.Bool(false),
    	Zones:                pulumi.String("string"),
    })
    
    var managedDiskResource = new ManagedDisk("managedDiskResource", ManagedDiskArgs.builder()
        .createOption("string")
        .storageAccountType("string")
        .resourceGroupName("string")
        .maxShares(0)
        .networkAccessPolicy("string")
        .diskMbpsReadOnly(0)
        .diskMbpsReadWrite(0)
        .diskSizeGb(0)
        .encryptionSettings(ManagedDiskEncryptionSettingsArgs.builder()
            .enabled(false)
            .diskEncryptionKey(ManagedDiskEncryptionSettingsDiskEncryptionKeyArgs.builder()
                .secretUrl("string")
                .sourceVaultId("string")
                .build())
            .keyEncryptionKey(ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs.builder()
                .keyUrl("string")
                .sourceVaultId("string")
                .build())
            .build())
        .galleryImageReferenceId("string")
        .hyperVGeneration("string")
        .imageReferenceId("string")
        .location("string")
        .logicalSectorSize(0)
        .diskIopsReadOnly(0)
        .name("string")
        .diskIopsReadWrite(0)
        .onDemandBurstingEnabled(false)
        .osType("string")
        .publicNetworkAccessEnabled(false)
        .diskEncryptionSetId("string")
        .sourceResourceId("string")
        .sourceUri("string")
        .storageAccountId("string")
        .diskAccessId("string")
        .tags(Map.of("string", "string"))
        .tier("string")
        .trustedLaunchEnabled(false)
        .zones("string")
        .build());
    
    managed_disk_resource = azure.compute.ManagedDisk("managedDiskResource",
        create_option="string",
        storage_account_type="string",
        resource_group_name="string",
        max_shares=0,
        network_access_policy="string",
        disk_mbps_read_only=0,
        disk_mbps_read_write=0,
        disk_size_gb=0,
        encryption_settings={
            "enabled": False,
            "disk_encryption_key": {
                "secret_url": "string",
                "source_vault_id": "string",
            },
            "key_encryption_key": {
                "key_url": "string",
                "source_vault_id": "string",
            },
        },
        gallery_image_reference_id="string",
        hyper_v_generation="string",
        image_reference_id="string",
        location="string",
        logical_sector_size=0,
        disk_iops_read_only=0,
        name="string",
        disk_iops_read_write=0,
        on_demand_bursting_enabled=False,
        os_type="string",
        public_network_access_enabled=False,
        disk_encryption_set_id="string",
        source_resource_id="string",
        source_uri="string",
        storage_account_id="string",
        disk_access_id="string",
        tags={
            "string": "string",
        },
        tier="string",
        trusted_launch_enabled=False,
        zones="string")
    
    const managedDiskResource = new azure.compute.ManagedDisk("managedDiskResource", {
        createOption: "string",
        storageAccountType: "string",
        resourceGroupName: "string",
        maxShares: 0,
        networkAccessPolicy: "string",
        diskMbpsReadOnly: 0,
        diskMbpsReadWrite: 0,
        diskSizeGb: 0,
        encryptionSettings: {
            enabled: false,
            diskEncryptionKey: {
                secretUrl: "string",
                sourceVaultId: "string",
            },
            keyEncryptionKey: {
                keyUrl: "string",
                sourceVaultId: "string",
            },
        },
        galleryImageReferenceId: "string",
        hyperVGeneration: "string",
        imageReferenceId: "string",
        location: "string",
        logicalSectorSize: 0,
        diskIopsReadOnly: 0,
        name: "string",
        diskIopsReadWrite: 0,
        onDemandBurstingEnabled: false,
        osType: "string",
        publicNetworkAccessEnabled: false,
        diskEncryptionSetId: "string",
        sourceResourceId: "string",
        sourceUri: "string",
        storageAccountId: "string",
        diskAccessId: "string",
        tags: {
            string: "string",
        },
        tier: "string",
        trustedLaunchEnabled: false,
        zones: "string",
    });
    
    type: azure:compute:ManagedDisk
    properties:
        createOption: string
        diskAccessId: string
        diskEncryptionSetId: string
        diskIopsReadOnly: 0
        diskIopsReadWrite: 0
        diskMbpsReadOnly: 0
        diskMbpsReadWrite: 0
        diskSizeGb: 0
        encryptionSettings:
            diskEncryptionKey:
                secretUrl: string
                sourceVaultId: string
            enabled: false
            keyEncryptionKey:
                keyUrl: string
                sourceVaultId: string
        galleryImageReferenceId: string
        hyperVGeneration: string
        imageReferenceId: string
        location: string
        logicalSectorSize: 0
        maxShares: 0
        name: string
        networkAccessPolicy: string
        onDemandBurstingEnabled: false
        osType: string
        publicNetworkAccessEnabled: false
        resourceGroupName: string
        sourceResourceId: string
        sourceUri: string
        storageAccountId: string
        storageAccountType: string
        tags:
            string: string
        tier: string
        trustedLaunchEnabled: false
        zones: 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), 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).
    ResourceGroupName string
    The name of the Resource Group where the Managed Disk should exist.
    StorageAccountType string
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    DiskAccessId string
    The ID of the disk access resource for using private endpoints on disks.
    DiskEncryptionSetId string
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    DiskIopsReadOnly int
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    DiskIopsReadWrite int
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    DiskMbpsReadOnly int
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    DiskMbpsReadWrite int
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    DiskSizeGb int
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    EncryptionSettings ManagedDiskEncryptionSettings
    A encryption_settings block as defined below.
    GalleryImageReferenceId string
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    HyperVGeneration string
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    ImageReferenceId string
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    Location string
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    LogicalSectorSize int
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    MaxShares 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.
    Name string
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    NetworkAccessPolicy string
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    OnDemandBurstingEnabled bool
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    OsType string
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    PublicNetworkAccessEnabled bool
    Whether it is allowed to access the disk via public network. Defaults to true.
    SourceResourceId string
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    SourceUri string
    URI to a valid VHD file to be used when create_option is Import.
    StorageAccountId string
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Tier string
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    TrustedLaunchEnabled bool
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    Zones string
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    ResourceGroupName string
    The name of the Resource Group where the Managed Disk should exist.
    StorageAccountType string
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    DiskAccessId string
    The ID of the disk access resource for using private endpoints on disks.
    DiskEncryptionSetId string
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    DiskIopsReadOnly int
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    DiskIopsReadWrite int
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    DiskMbpsReadOnly int
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    DiskMbpsReadWrite int
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    DiskSizeGb int
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    EncryptionSettings ManagedDiskEncryptionSettingsArgs
    A encryption_settings block as defined below.
    GalleryImageReferenceId string
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    HyperVGeneration string
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    ImageReferenceId string
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    Location string
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    LogicalSectorSize int
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    MaxShares 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.
    Name string
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    NetworkAccessPolicy string
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    OnDemandBurstingEnabled bool
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    OsType string
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    PublicNetworkAccessEnabled bool
    Whether it is allowed to access the disk via public network. Defaults to true.
    SourceResourceId string
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    SourceUri string
    URI to a valid VHD file to be used when create_option is Import.
    StorageAccountId string
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Tier string
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    TrustedLaunchEnabled bool
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    Zones string
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    resourceGroupName String
    The name of the Resource Group where the Managed Disk should exist.
    storageAccountType String
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    diskAccessId String
    The ID of the disk access resource for using private endpoints on disks.
    diskEncryptionSetId String
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    diskIopsReadOnly Integer
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    diskIopsReadWrite Integer
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    diskMbpsReadOnly Integer
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    diskMbpsReadWrite Integer
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    diskSizeGb Integer
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryptionSettings ManagedDiskEncryptionSettings
    A encryption_settings block as defined below.
    galleryImageReferenceId String
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyperVGeneration String
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    imageReferenceId String
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location String
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logicalSectorSize Integer
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    maxShares 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.
    name String
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    networkAccessPolicy String
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    onDemandBurstingEnabled Boolean
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    osType String
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    publicNetworkAccessEnabled Boolean
    Whether it is allowed to access the disk via public network. Defaults to true.
    sourceResourceId String
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    sourceUri String
    URI to a valid VHD file to be used when create_option is Import.
    storageAccountId String
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    tier String
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trustedLaunchEnabled Boolean
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones String
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    resourceGroupName string
    The name of the Resource Group where the Managed Disk should exist.
    storageAccountType string
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    diskAccessId string
    The ID of the disk access resource for using private endpoints on disks.
    diskEncryptionSetId string
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    diskIopsReadOnly number
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    diskIopsReadWrite number
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    diskMbpsReadOnly number
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    diskMbpsReadWrite number
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    diskSizeGb number
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryptionSettings ManagedDiskEncryptionSettings
    A encryption_settings block as defined below.
    galleryImageReferenceId string
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyperVGeneration string
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    imageReferenceId string
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location string
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logicalSectorSize number
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    maxShares 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.
    name string
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    networkAccessPolicy string
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    onDemandBurstingEnabled boolean
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    osType string
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    publicNetworkAccessEnabled boolean
    Whether it is allowed to access the disk via public network. Defaults to true.
    sourceResourceId string
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    sourceUri string
    URI to a valid VHD file to be used when create_option is Import.
    storageAccountId string
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    tier string
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trustedLaunchEnabled boolean
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones string
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    resource_group_name str
    The name of the Resource Group where the Managed Disk should exist.
    storage_account_type str
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    disk_access_id str
    The ID of the disk access resource for using private endpoints on disks.
    disk_encryption_set_id str
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    disk_iops_read_only int
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    disk_iops_read_write int
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    disk_mbps_read_only int
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    disk_mbps_read_write int
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    disk_size_gb int
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryption_settings ManagedDiskEncryptionSettingsArgs
    A encryption_settings block as defined below.
    gallery_image_reference_id str
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyper_v_generation str
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    image_reference_id str
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location str
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logical_sector_size int
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    max_shares 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.
    name str
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    network_access_policy str
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    on_demand_bursting_enabled bool
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    os_type str
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    public_network_access_enabled bool
    Whether it is allowed to access the disk via public network. Defaults to true.
    source_resource_id str
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    source_uri str
    URI to a valid VHD file to be used when create_option is Import.
    storage_account_id str
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    tier str
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trusted_launch_enabled bool
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones str
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    resourceGroupName String
    The name of the Resource Group where the Managed Disk should exist.
    storageAccountType String
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    diskAccessId String
    The ID of the disk access resource for using private endpoints on disks.
    diskEncryptionSetId String
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    diskIopsReadOnly Number
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    diskIopsReadWrite Number
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    diskMbpsReadOnly Number
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    diskMbpsReadWrite Number
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    diskSizeGb Number
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryptionSettings Property Map
    A encryption_settings block as defined below.
    galleryImageReferenceId String
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyperVGeneration String
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    imageReferenceId String
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location String
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logicalSectorSize Number
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    maxShares 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.
    name String
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    networkAccessPolicy String
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    onDemandBurstingEnabled Boolean
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    osType String
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    publicNetworkAccessEnabled Boolean
    Whether it is allowed to access the disk via public network. Defaults to true.
    sourceResourceId String
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    sourceUri String
    URI to a valid VHD file to be used when create_option is Import.
    storageAccountId String
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.
    tier String
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trustedLaunchEnabled Boolean
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones String
    A collection containing the availability zone to allocate the Managed Disk in.

    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,
            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,
            os_type: Optional[str] = None,
            public_network_access_enabled: Optional[bool] = None,
            resource_group_name: 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,
            zones: Optional[str] = None) -> ManagedDisk
    func 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.
    The following state arguments are supported:
    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), 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).
    DiskAccessId string
    The ID of the disk access resource for using private endpoints on disks.
    DiskEncryptionSetId string
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    DiskIopsReadOnly int
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    DiskIopsReadWrite int
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    DiskMbpsReadOnly int
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    DiskMbpsReadWrite int
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    DiskSizeGb int
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    EncryptionSettings ManagedDiskEncryptionSettings
    A encryption_settings block as defined below.
    GalleryImageReferenceId string
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    HyperVGeneration string
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    ImageReferenceId string
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    Location string
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    LogicalSectorSize int
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    MaxShares 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.
    Name string
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    NetworkAccessPolicy string
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    OnDemandBurstingEnabled bool
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    OsType string
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    PublicNetworkAccessEnabled bool
    Whether it is allowed to access the disk via public network. Defaults to true.
    ResourceGroupName string
    The name of the Resource Group where the Managed Disk should exist.
    SourceResourceId string
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    SourceUri string
    URI to a valid VHD file to be used when create_option is Import.
    StorageAccountId string
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    StorageAccountType string
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Tier string
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    TrustedLaunchEnabled bool
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    Zones string
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    DiskAccessId string
    The ID of the disk access resource for using private endpoints on disks.
    DiskEncryptionSetId string
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    DiskIopsReadOnly int
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    DiskIopsReadWrite int
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    DiskMbpsReadOnly int
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    DiskMbpsReadWrite int
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    DiskSizeGb int
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    EncryptionSettings ManagedDiskEncryptionSettingsArgs
    A encryption_settings block as defined below.
    GalleryImageReferenceId string
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    HyperVGeneration string
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    ImageReferenceId string
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    Location string
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    LogicalSectorSize int
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    MaxShares 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.
    Name string
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    NetworkAccessPolicy string
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    OnDemandBurstingEnabled bool
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    OsType string
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    PublicNetworkAccessEnabled bool
    Whether it is allowed to access the disk via public network. Defaults to true.
    ResourceGroupName string
    The name of the Resource Group where the Managed Disk should exist.
    SourceResourceId string
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    SourceUri string
    URI to a valid VHD file to be used when create_option is Import.
    StorageAccountId string
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    StorageAccountType string
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Tier string
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    TrustedLaunchEnabled bool
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    Zones string
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    diskAccessId String
    The ID of the disk access resource for using private endpoints on disks.
    diskEncryptionSetId String
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    diskIopsReadOnly Integer
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    diskIopsReadWrite Integer
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    diskMbpsReadOnly Integer
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    diskMbpsReadWrite Integer
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    diskSizeGb Integer
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryptionSettings ManagedDiskEncryptionSettings
    A encryption_settings block as defined below.
    galleryImageReferenceId String
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyperVGeneration String
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    imageReferenceId String
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location String
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logicalSectorSize Integer
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    maxShares 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.
    name String
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    networkAccessPolicy String
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    onDemandBurstingEnabled Boolean
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    osType String
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    publicNetworkAccessEnabled Boolean
    Whether it is allowed to access the disk via public network. Defaults to true.
    resourceGroupName String
    The name of the Resource Group where the Managed Disk should exist.
    sourceResourceId String
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    sourceUri String
    URI to a valid VHD file to be used when create_option is Import.
    storageAccountId String
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    storageAccountType String
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    tier String
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trustedLaunchEnabled Boolean
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones String
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    diskAccessId string
    The ID of the disk access resource for using private endpoints on disks.
    diskEncryptionSetId string
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    diskIopsReadOnly number
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    diskIopsReadWrite number
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    diskMbpsReadOnly number
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    diskMbpsReadWrite number
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    diskSizeGb number
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryptionSettings ManagedDiskEncryptionSettings
    A encryption_settings block as defined below.
    galleryImageReferenceId string
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyperVGeneration string
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    imageReferenceId string
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location string
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logicalSectorSize number
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    maxShares 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.
    name string
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    networkAccessPolicy string
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    onDemandBurstingEnabled boolean
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    osType string
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    publicNetworkAccessEnabled boolean
    Whether it is allowed to access the disk via public network. Defaults to true.
    resourceGroupName string
    The name of the Resource Group where the Managed Disk should exist.
    sourceResourceId string
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    sourceUri string
    URI to a valid VHD file to be used when create_option is Import.
    storageAccountId string
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    storageAccountType string
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    tier string
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trustedLaunchEnabled boolean
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones string
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    disk_access_id str
    The ID of the disk access resource for using private endpoints on disks.
    disk_encryption_set_id str
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    disk_iops_read_only int
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    disk_iops_read_write int
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    disk_mbps_read_only int
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    disk_mbps_read_write int
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    disk_size_gb int
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryption_settings ManagedDiskEncryptionSettingsArgs
    A encryption_settings block as defined below.
    gallery_image_reference_id str
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyper_v_generation str
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    image_reference_id str
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location str
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logical_sector_size int
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    max_shares 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.
    name str
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    network_access_policy str
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    on_demand_bursting_enabled bool
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    os_type str
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    public_network_access_enabled bool
    Whether it is allowed to access the disk via public network. Defaults to true.
    resource_group_name str
    The name of the Resource Group where the Managed Disk should exist.
    source_resource_id str
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    source_uri str
    URI to a valid VHD file to be used when create_option is Import.
    storage_account_id str
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    storage_account_type str
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    tier str
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trusted_launch_enabled bool
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones str
    A collection containing the availability zone to allocate the Managed Disk in.
    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), 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).
    diskAccessId String
    The ID of the disk access resource for using private endpoints on disks.
    diskEncryptionSetId String
    The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk.
    diskIopsReadOnly Number
    The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
    diskIopsReadWrite Number
    The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
    diskMbpsReadOnly Number
    The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks with shared disk enabled. MBps means millions of bytes per second.
    diskMbpsReadWrite Number
    The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second.
    diskSizeGb Number
    Specifies the size of the managed disk to create in gigabytes. If create_option is Copy or FromImage, then the value must be equal to or greater than the source's size. The size can only be increased.
    encryptionSettings Property Map
    A encryption_settings block as defined below.
    galleryImageReferenceId String
    ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified.
    hyperVGeneration String
    The HyperV Generation of the Disk when the source of an Import or Copy operation targets a source that contains an operating system. Possible values are V1 and V2. Changing this forces a new resource to be created.
    imageReferenceId String
    ID of an existing platform/marketplace disk image to copy when create_option is FromImage. This field cannot be specified if gallery_image_reference_id is specified.
    location String
    Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    logicalSectorSize Number
    Logical Sector Size. Possible values are: 512 and 4096. Defaults to 4096. Changing this forces a new resource to be created.
    maxShares 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.
    name String
    Specifies the name of the Managed Disk. Changing this forces a new resource to be created.
    networkAccessPolicy String
    Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.
    onDemandBurstingEnabled Boolean
    Specifies if On-Demand Bursting is enabled for the Managed Disk. Defaults to false.
    osType String
    Specify a value when the source of an Import or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.
    publicNetworkAccessEnabled Boolean
    Whether it is allowed to access the disk via public network. Defaults to true.
    resourceGroupName String
    The name of the Resource Group where the Managed Disk should exist.
    sourceResourceId String
    The ID of an existing Managed Disk to copy create_option is Copy or the recovery point to restore when create_option is Restore
    sourceUri String
    URI to a valid VHD file to be used when create_option is Import.
    storageAccountId String
    The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import. Changing this forces a new resource to be created.
    storageAccountType String
    The type of storage to use for the managed disk. Possible values are Standard_LRS, StandardSSD_ZRS, Premium_LRS, Premium_ZRS, StandardSSD_LRS or UltraSSD_LRS.
    tags Map<String>
    A mapping of tags to assign to the resource.
    tier String
    The disk performance tier to use. Possible values are documented here. This feature is currently supported only for premium SSDs.
    trustedLaunchEnabled Boolean
    Specifies if Trusted Launch is enabled for the Managed Disk. Defaults to false.
    zones String
    A collection containing the availability zone to allocate the Managed Disk in.

    Supporting Types

    ManagedDiskEncryptionSettings, ManagedDiskEncryptionSettingsArgs

    Enabled bool
    Is Encryption enabled on this Managed Disk? Changing this forces a new resource to be created.
    DiskEncryptionKey ManagedDiskEncryptionSettingsDiskEncryptionKey
    A disk_encryption_key block as defined above.
    KeyEncryptionKey ManagedDiskEncryptionSettingsKeyEncryptionKey
    A key_encryption_key block as defined below.
    Enabled bool
    Is Encryption enabled on this Managed Disk? Changing this forces a new resource to be created.
    DiskEncryptionKey ManagedDiskEncryptionSettingsDiskEncryptionKey
    A disk_encryption_key block as defined above.
    KeyEncryptionKey ManagedDiskEncryptionSettingsKeyEncryptionKey
    A key_encryption_key block as defined below.
    enabled Boolean
    Is Encryption enabled on this Managed Disk? Changing this forces a new resource to be created.
    diskEncryptionKey ManagedDiskEncryptionSettingsDiskEncryptionKey
    A disk_encryption_key block as defined above.
    keyEncryptionKey ManagedDiskEncryptionSettingsKeyEncryptionKey
    A key_encryption_key block as defined below.
    enabled boolean
    Is Encryption enabled on this Managed Disk? Changing this forces a new resource to be created.
    diskEncryptionKey ManagedDiskEncryptionSettingsDiskEncryptionKey
    A disk_encryption_key block as defined above.
    keyEncryptionKey ManagedDiskEncryptionSettingsKeyEncryptionKey
    A key_encryption_key block as defined below.
    enabled bool
    Is Encryption enabled on this Managed Disk? Changing this forces a new resource to be created.
    disk_encryption_key ManagedDiskEncryptionSettingsDiskEncryptionKey
    A disk_encryption_key block as defined above.
    key_encryption_key ManagedDiskEncryptionSettingsKeyEncryptionKey
    A key_encryption_key block as defined below.
    enabled Boolean
    Is Encryption enabled on this Managed Disk? Changing this forces a new resource to be created.
    diskEncryptionKey Property Map
    A disk_encryption_key block as defined above.
    keyEncryptionKey Property Map
    A key_encryption_key block 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 id on the azure.keyvault.Secret resource.
    SourceVaultId string
    The ID of the source Key Vault.
    SecretUrl string
    The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as id on the azure.keyvault.Secret resource.
    SourceVaultId string
    The ID of the source Key Vault.
    secretUrl String
    The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as id on the azure.keyvault.Secret resource.
    sourceVaultId String
    The ID of the source Key Vault.
    secretUrl string
    The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as id on the azure.keyvault.Secret resource.
    sourceVaultId string
    The ID of the source Key Vault.
    secret_url str
    The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as id on the azure.keyvault.Secret resource.
    source_vault_id str
    The ID of the source Key Vault.
    secretUrl String
    The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as id on the azure.keyvault.Secret resource.
    sourceVaultId String
    The ID of the source Key Vault.

    ManagedDiskEncryptionSettingsKeyEncryptionKey, ManagedDiskEncryptionSettingsKeyEncryptionKeyArgs

    KeyUrl string
    The URL to the Key Vault Key used as the Key Encryption Key. This can be found as id on the azure.keyvault.Key resource.
    SourceVaultId string
    The ID of the source Key Vault.
    KeyUrl string
    The URL to the Key Vault Key used as the Key Encryption Key. This can be found as id on the azure.keyvault.Key resource.
    SourceVaultId string
    The ID of the source Key Vault.
    keyUrl String
    The URL to the Key Vault Key used as the Key Encryption Key. This can be found as id on the azure.keyvault.Key resource.
    sourceVaultId String
    The ID of the source Key Vault.
    keyUrl string
    The URL to the Key Vault Key used as the Key Encryption Key. This can be found as id on the azure.keyvault.Key resource.
    sourceVaultId string
    The ID of the source Key Vault.
    key_url str
    The URL to the Key Vault Key used as the Key Encryption Key. This can be found as id on the azure.keyvault.Key resource.
    source_vault_id str
    The ID of the source Key Vault.
    keyUrl String
    The URL to the Key Vault Key used as the Key Encryption Key. This can be found as id on the azure.keyvault.Key resource.
    sourceVaultId String
    The ID of the source Key Vault.

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.