Azure Classic v5.43.0, May 6 23
Azure Classic v5.43.0, May 6 23
azure.compute.ManagedDisk
Explore with Pulumi AI
Manages a managed disk.
Example Usage
With Create Empty
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleManagedDisk = new Azure.Compute.ManagedDisk("exampleManagedDisk", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
StorageAccountType = "Standard_LRS",
CreateOption = "Empty",
DiskSizeGb = 1,
Tags =
{
{ "environment", "staging" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = compute.NewManagedDisk(ctx, "exampleManagedDisk", &compute.ManagedDiskArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
StorageAccountType: pulumi.String("Standard_LRS"),
CreateOption: pulumi.String("Empty"),
DiskSizeGb: pulumi.Int(1),
Tags: pulumi.StringMap{
"environment": pulumi.String("staging"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.compute.ManagedDisk;
import com.pulumi.azure.compute.ManagedDiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleManagedDisk = new ManagedDisk("exampleManagedDisk", ManagedDiskArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.storageAccountType("Standard_LRS")
.createOption("Empty")
.diskSizeGb("1")
.tags(Map.of("environment", "staging"))
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_managed_disk = azure.compute.ManagedDisk("exampleManagedDisk",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
storage_account_type="Standard_LRS",
create_option="Empty",
disk_size_gb=1,
tags={
"environment": "staging",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleManagedDisk = new azure.compute.ManagedDisk("exampleManagedDisk", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
storageAccountType: "Standard_LRS",
createOption: "Empty",
diskSizeGb: 1,
tags: {
environment: "staging",
},
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleManagedDisk:
type: azure:compute:ManagedDisk
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
storageAccountType: Standard_LRS
createOption: Empty
diskSizeGb: '1'
tags:
environment: staging
With Create Copy
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()
{
Location = "West Europe",
});
var source = new Azure.Compute.ManagedDisk("source", new()
{
Location = example.Location,
ResourceGroupName = example.Name,
StorageAccountType = "Standard_LRS",
CreateOption = "Empty",
DiskSizeGb = 1,
Tags =
{
{ "environment", "staging" },
},
});
var copy = new Azure.Compute.ManagedDisk("copy", new()
{
Location = example.Location,
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/v5/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
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: 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{
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
})
}
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()
.location("West Europe")
.build());
var source = new ManagedDisk("source", ManagedDiskArgs.builder()
.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()
.location(example.location())
.resourceGroupName(example.name())
.storageAccountType("Standard_LRS")
.createOption("Copy")
.sourceResourceId(source.id())
.diskSizeGb("1")
.tags(Map.of("environment", "staging"))
.build());
}
}
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example", location="West Europe")
source = azure.compute.ManagedDisk("source",
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",
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",
})
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: example.location,
resourceGroupName: example.name,
storageAccountType: "Standard_LRS",
createOption: "Empty",
diskSizeGb: 1,
tags: {
environment: "staging",
},
});
const copy = new azure.compute.ManagedDisk("copy", {
location: example.location,
resourceGroupName: example.name,
storageAccountType: "Standard_LRS",
createOption: "Copy",
sourceResourceId: source.id,
diskSizeGb: 1,
tags: {
environment: "staging",
},
});
resources:
example:
type: azure:core:ResourceGroup
properties:
location: West Europe
source:
type: azure:compute:ManagedDisk
properties:
location: ${example.location}
resourceGroupName: ${example.name}
storageAccountType: Standard_LRS
createOption: Empty
diskSizeGb: '1'
tags:
environment: staging
copy:
type: azure:compute:ManagedDisk
properties:
location: ${example.location}
resourceGroupName: ${example.name}
storageAccountType: Standard_LRS
createOption: Copy
sourceResourceId: ${source.id}
diskSizeGb: '1'
tags:
environment: staging
Create ManagedDisk Resource
new ManagedDisk(name: string, args: ManagedDiskArgs, opts?: CustomResourceOptions);
@overload
def ManagedDisk(resource_name: 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,
os_type: Optional[str] = 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)
@overload
def ManagedDisk(resource_name: str,
args: ManagedDiskArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The ManagedDisk resource accepts the following input properties:
- Create
Option string The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- Resource
Group stringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- Storage
Account 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_LRS
orUltraSSD_LRS
.- Disk
Access stringId The ID of the disk access resource for using private endpoints on disks.
- Disk
Encryption 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
.- 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 (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- Edge
Zone 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.
- Encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- Gallery
Image stringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- Hyper
VGeneration string The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- Image
Reference stringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- Logical
Sector intSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- Network
Access stringPolicy 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.
- Os
Type string Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- Public
Network boolAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- Secure
Vm 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.- Security
Type string Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- Source
Resource stringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- Source
Uri string URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- Storage
Account stringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- 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.
- Trusted
Launch boolEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- Upload
Size intBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- Create
Option string The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- Resource
Group stringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- Storage
Account 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_LRS
orUltraSSD_LRS
.- Disk
Access stringId The ID of the disk access resource for using private endpoints on disks.
- Disk
Encryption 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
.- 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 (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- Edge
Zone 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.
- Encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- Gallery
Image stringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- Hyper
VGeneration string The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- Image
Reference stringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- Logical
Sector intSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- Network
Access stringPolicy 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.
- Os
Type string Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- Public
Network boolAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- Secure
Vm 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.- Security
Type string Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- Source
Resource stringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- Source
Uri string URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- Storage
Account stringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- 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.
- Trusted
Launch boolEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- Upload
Size intBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create
Option String The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- resource
Group StringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- storage
Account 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_LRS
orUltraSSD_LRS
.- disk
Access StringId The ID of the disk access resource for using private endpoints on disks.
- disk
Encryption 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
.- disk
Iops 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.
- disk
Iops 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.
- disk
Mbps 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.
- disk
Mbps IntegerRead Write The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk
Size IntegerGb (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- edge
Zone 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.
- encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- gallery
Image StringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- hyper
VGeneration String The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- image
Reference StringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- logical
Sector IntegerSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- network
Access StringPolicy Policy for accessing the disk via network. Allowed values are
AllowAll
,AllowPrivate
, andDenyAll
.- on
Demand BooleanBursting Enabled Specifies if On-Demand Bursting is enabled for the Managed Disk.
- os
Type String Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public
Network BooleanAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- secure
Vm 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.- security
Type String Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source
Resource StringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source
Uri String URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account StringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- 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.
- trusted
Launch BooleanEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload
Size IntegerBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create
Option string The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- resource
Group stringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- storage
Account 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_LRS
orUltraSSD_LRS
.- disk
Access stringId The ID of the disk access resource for using private endpoints on disks.
- disk
Encryption 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
.- disk
Iops 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.
- disk
Iops 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.
- disk
Mbps 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.
- disk
Mbps numberRead Write The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk
Size numberGb (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- edge
Zone 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.
- encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- gallery
Image stringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- hyper
VGeneration string The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- image
Reference stringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- logical
Sector numberSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- network
Access stringPolicy Policy for accessing the disk via network. Allowed values are
AllowAll
,AllowPrivate
, andDenyAll
.- on
Demand booleanBursting Enabled Specifies if On-Demand Bursting is enabled for the Managed Disk.
- os
Type string Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public
Network booleanAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- secure
Vm 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.- security
Type string Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source
Resource stringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source
Uri string URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account stringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- {[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.
- trusted
Launch booleanEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload
Size numberBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create_
option str The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- 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_LRS
orUltraSSD_LRS
.- disk_
access_ strid The ID of the disk access resource for using private endpoints on disks.
- 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
.- 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 (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- 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_settings
block as defined below.- gallery_
image_ strreference_ id ID of a Gallery Image Version to copy when
create_option
isFromImage
. 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
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it 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_option
isFromImage
. 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:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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_ 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.
- os_
type str Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public_
network_ boolaccess_ enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- 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.- security_
type str Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source_
resource_ strid The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source_
uri str URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage_
account_ strid The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- 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_ boolenabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload_
size_ intbytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create
Option String The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- resource
Group StringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- storage
Account 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_LRS
orUltraSSD_LRS
.- disk
Access StringId The ID of the disk access resource for using private endpoints on disks.
- disk
Encryption 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
.- disk
Iops 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.
- disk
Iops 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.
- disk
Mbps 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.
- disk
Mbps NumberRead Write The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk
Size NumberGb (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- edge
Zone 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.
- encryption
Settings Property Map A
encryption_settings
block as defined below.- gallery
Image StringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- hyper
VGeneration String The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- image
Reference StringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- logical
Sector NumberSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- network
Access StringPolicy Policy for accessing the disk via network. Allowed values are
AllowAll
,AllowPrivate
, andDenyAll
.- on
Demand BooleanBursting Enabled Specifies if On-Demand Bursting is enabled for the Managed Disk.
- os
Type String Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public
Network BooleanAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- secure
Vm 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.- security
Type String Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source
Resource StringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source
Uri String URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account StringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- 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.
- trusted
Launch BooleanEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload
Size NumberBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
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,
os_type: Optional[str] = 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) -> 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Option string The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- Disk
Access stringId The ID of the disk access resource for using private endpoints on disks.
- Disk
Encryption 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
.- 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 (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- Edge
Zone 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.
- Encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- Gallery
Image stringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- Hyper
VGeneration string The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- Image
Reference stringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- Logical
Sector intSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- Network
Access stringPolicy 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.
- Os
Type string Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- Public
Network boolAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- Resource
Group stringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- Secure
Vm 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.- Security
Type string Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- Source
Resource stringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- Source
Uri string URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- Storage
Account stringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- Storage
Account 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_LRS
orUltraSSD_LRS
.- 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.
- Trusted
Launch boolEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- Upload
Size intBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- Create
Option string The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- Disk
Access stringId The ID of the disk access resource for using private endpoints on disks.
- Disk
Encryption 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
.- 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 (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- Edge
Zone 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.
- Encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- Gallery
Image stringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- Hyper
VGeneration string The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- Image
Reference stringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- Logical
Sector intSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- Network
Access stringPolicy 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.
- Os
Type string Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- Public
Network boolAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- Resource
Group stringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- Secure
Vm 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.- Security
Type string Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- Source
Resource stringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- Source
Uri string URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- Storage
Account stringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- Storage
Account 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_LRS
orUltraSSD_LRS
.- 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.
- Trusted
Launch boolEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- Upload
Size intBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create
Option String The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- disk
Access StringId The ID of the disk access resource for using private endpoints on disks.
- disk
Encryption 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
.- disk
Iops 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.
- disk
Iops 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.
- disk
Mbps 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.
- disk
Mbps IntegerRead Write The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk
Size IntegerGb (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- edge
Zone 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.
- encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- gallery
Image StringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- hyper
VGeneration String The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- image
Reference StringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- logical
Sector IntegerSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- network
Access StringPolicy Policy for accessing the disk via network. Allowed values are
AllowAll
,AllowPrivate
, andDenyAll
.- on
Demand BooleanBursting Enabled Specifies if On-Demand Bursting is enabled for the Managed Disk.
- os
Type String Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public
Network BooleanAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- resource
Group StringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- secure
Vm 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.- security
Type String Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source
Resource StringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source
Uri String URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account StringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account 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_LRS
orUltraSSD_LRS
.- 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.
- trusted
Launch BooleanEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload
Size IntegerBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create
Option string The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- disk
Access stringId The ID of the disk access resource for using private endpoints on disks.
- disk
Encryption 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
.- disk
Iops 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.
- disk
Iops 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.
- disk
Mbps 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.
- disk
Mbps numberRead Write The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk
Size numberGb (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- edge
Zone 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.
- encryption
Settings ManagedDisk Encryption Settings Args A
encryption_settings
block as defined below.- gallery
Image stringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- hyper
VGeneration string The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- image
Reference stringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- logical
Sector numberSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- network
Access stringPolicy Policy for accessing the disk via network. Allowed values are
AllowAll
,AllowPrivate
, andDenyAll
.- on
Demand booleanBursting Enabled Specifies if On-Demand Bursting is enabled for the Managed Disk.
- os
Type string Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public
Network booleanAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- resource
Group stringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- secure
Vm 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.- security
Type string Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source
Resource stringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source
Uri string URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account stringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account 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_LRS
orUltraSSD_LRS
.- {[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.
- trusted
Launch booleanEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload
Size numberBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create_
option str The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- disk_
access_ strid The ID of the disk access resource for using private endpoints on disks.
- 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
.- 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 (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- 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_settings
block as defined below.- gallery_
image_ strreference_ id ID of a Gallery Image Version to copy when
create_option
isFromImage
. 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
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it 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_option
isFromImage
. 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:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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_ 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.
- os_
type str Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public_
network_ boolaccess_ enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- 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.- security_
type str Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source_
resource_ strid The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source_
uri str URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage_
account_ strid The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. 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_LRS
orUltraSSD_LRS
.- 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_ boolenabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload_
size_ intbytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
- create
Option String The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
- disk
Access StringId The ID of the disk access resource for using private endpoints on disks.
- disk
Encryption 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
.- disk
Iops 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.
- disk
Iops 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.
- disk
Mbps 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.
- disk
Mbps NumberRead Write The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.
- disk
Size NumberGb (Optional, Required for a new managed disk) Specifies the size of the managed disk to create in gigabytes. If
create_option
isCopy
orFromImage
, then the value must be equal to or greater than the source's size. The size can only be increased.- edge
Zone 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.
- encryption
Settings Property Map A
encryption_settings
block as defined below.- gallery
Image StringReference Id ID of a Gallery Image Version to copy when
create_option
isFromImage
. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.- hyper
VGeneration String The HyperV Generation of the Disk when the source of an
Import
orCopy
operation targets a source that contains an operating system. Possible values areV1
andV2
. ForImportSecure
it must be set toV2
. Changing this forces a new resource to be created.- image
Reference StringId ID of an existing platform/marketplace disk image to copy when
create_option
isFromImage
. 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.
- logical
Sector NumberSize Logical Sector Size. Possible values are:
512
and4096
. Defaults to4096
. Changing this forces a new resource to be created.- 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.
- network
Access StringPolicy Policy for accessing the disk via network. Allowed values are
AllowAll
,AllowPrivate
, andDenyAll
.- on
Demand BooleanBursting Enabled Specifies if On-Demand Bursting is enabled for the Managed Disk.
- os
Type String Specify a value when the source of an
Import
,ImportSecure
orCopy
operation targets a source that contains an operating system. Valid values areLinux
orWindows
.- public
Network BooleanAccess Enabled Whether it is allowed to access the disk via public network. Defaults to
true
.- resource
Group StringName The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
- secure
Vm 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.- security
Type String Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
,ConfidentialVM_DiskEncryptedWithPlatformKey
andConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.- source
Resource StringId The ID of an existing Managed Disk or Snapshot to copy when
create_option
isCopy
or the recovery point to restore whencreate_option
isRestore
. Changing this forces a new resource to be created.- source
Uri String URI to a valid VHD file to be used when
create_option
isImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account StringId The ID of the Storage Account where the
source_uri
is located. Required whencreate_option
is set toImport
orImportSecure
. Changing this forces a new resource to be created.- storage
Account 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_LRS
orUltraSSD_LRS
.- 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.
- trusted
Launch BooleanEnabled Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
- upload
Size NumberBytes Specifies the size of the managed disk to create in bytes. Required when
create_option
isUpload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated withls -l
orwc -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.
Supporting Types
ManagedDiskEncryptionSettings
- Disk
Encryption ManagedKey Disk Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined above.- Enabled bool
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- Key
Encryption ManagedKey Disk Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- Disk
Encryption ManagedKey Disk Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined above.- Enabled bool
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- Key
Encryption ManagedKey Disk Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk
Encryption ManagedKey Disk Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined above.- enabled Boolean
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key
Encryption ManagedKey Disk Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk
Encryption ManagedKey Disk Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined above.- enabled boolean
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key
Encryption ManagedKey Disk Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk_
encryption_ Managedkey Disk Encryption Settings Disk Encryption Key A
disk_encryption_key
block as defined above.- enabled bool
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key_
encryption_ Managedkey Disk Encryption Settings Key Encryption Key A
key_encryption_key
block as defined below.
- disk
Encryption Property MapKey A
disk_encryption_key
block as defined above.- enabled Boolean
Deprecated, Azure Disk Encryption is now configured directly by
disk_encryption_key
andkey_encryption_key
. To disable Azure Disk Encryption, please removeencryption_settings
block. To enabled, specify aencryption_settings
block`- key
Encryption Property MapKey A
key_encryption_key
block as defined below.
ManagedDiskEncryptionSettingsDiskEncryptionKey
- Secret
Url string The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- Secret
Url string The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret
Url String The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret
Url string The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret_
url str The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source_
vault_ strid The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- secret
Url String The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as
id
on theazure.keyvault.Secret
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
ManagedDiskEncryptionSettingsKeyEncryptionKey
- Key
Url string The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- Key
Url string The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- Source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key
Url String The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key
Url string The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source
Vault stringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key_
url str The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source_
vault_ strid The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
- key
Url String The URL to the Key Vault Key used as the Key Encryption Key. This can be found as
id
on theazure.keyvault.Key
resource.- source
Vault StringId The ID of the source Key Vault. This can be found as
id
on theazure.keyvault.KeyVault
resource.
Import
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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.