Disk resource.
Uses Azure REST API version 2024-03-02. In version 2.x of the Azure Native provider, it used API version 2022-07-02.
Other available API versions: 2022-07-02, 2023-01-02, 2023-04-02, 2023-10-02, 2025-01-02, 2026-03-02. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]. See the version guide for details.
Example Usage
create a confidential VM supported disk encrypted with customer managed key
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.FromImage,
ImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
Id = "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0",
},
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
SecurityProfile = new AzureNative.Compute.Inputs.DiskSecurityProfileArgs
{
SecureVMDiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}",
SecurityType = AzureNative.Compute.DiskSecurityTypes.ConfidentialVM_DiskEncryptedWithCustomerKey,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionFromImage),
ImageReference: &compute.ImageDiskReferenceArgs{
Id: pulumi.String("/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0"),
},
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
SecurityProfile: &compute.DiskSecurityProfileArgs{
SecureVMDiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"),
SecurityType: pulumi.String(compute.DiskSecurityTypes_ConfidentialVM_DiskEncryptedWithCustomerKey),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "FromImage"
image_reference = {
id = "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0"
}
}
disk_name = "myDisk"
location = "West US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
security_profile = {
secure_vm_disk_encryption_set_id = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"
security_type = "ConfidentialVM_DiskEncryptedWithCustomerKey"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.ImageDiskReferenceArgs;
import com.pulumi.azurenative.compute.inputs.DiskSecurityProfileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("FromImage")
.imageReference(ImageDiskReferenceArgs.builder()
.id("/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0")
.build())
.build())
.diskName("myDisk")
.location("West US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.securityProfile(DiskSecurityProfileArgs.builder()
.secureVMDiskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")
.securityType("ConfidentialVM_DiskEncryptedWithCustomerKey")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.FromImage,
imageReference: {
id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0",
},
},
diskName: "myDisk",
location: "West US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
securityProfile: {
secureVMDiskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}",
securityType: azure_native.compute.DiskSecurityTypes.ConfidentialVM_DiskEncryptedWithCustomerKey,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.FROM_IMAGE,
"image_reference": {
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0",
},
},
disk_name="myDisk",
location="West US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup",
security_profile={
"secure_vm_disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}",
"security_type": azure_native.compute.DiskSecurityTypes.CONFIDENTIAL_V_M_DISK_ENCRYPTED_WITH_CUSTOMER_KEY,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: FromImage
imageReference:
id: /Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0
diskName: myDisk
location: West US
osType: Windows
resourceGroupName: myResourceGroup
securityProfile:
secureVMDiskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
securityType: ConfidentialVM_DiskEncryptedWithCustomerKey
create a managed disk and associate with disk access resource.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DiskAccessId = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}",
DiskName = "myDisk",
DiskSizeGB = 200,
Location = "West US",
NetworkAccessPolicy = AzureNative.Compute.NetworkAccessPolicy.AllowPrivate,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DiskAccessId: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}"),
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
Location: pulumi.String("West US"),
NetworkAccessPolicy: pulumi.String(compute.NetworkAccessPolicyAllowPrivate),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
disk_access_id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}"
disk_name = "myDisk"
disk_size_gb = 200
location = "West US"
network_access_policy = "AllowPrivate"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.diskAccessId("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}")
.diskName("myDisk")
.diskSizeGB(200)
.location("West US")
.networkAccessPolicy("AllowPrivate")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
diskAccessId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}",
diskName: "myDisk",
diskSizeGB: 200,
location: "West US",
networkAccessPolicy: azure_native.compute.NetworkAccessPolicy.AllowPrivate,
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
disk_access_id="/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}",
disk_name="myDisk",
disk_size_gb=200,
location="West US",
network_access_policy=azure_native.compute.NetworkAccessPolicy.ALLOW_PRIVATE,
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
diskAccessId: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}
diskName: myDisk
diskSizeGB: 200
location: West US
networkAccessPolicy: AllowPrivate
resourceGroupName: myResourceGroup
create a managed disk and associate with disk encryption set.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DiskName = "myDisk",
DiskSizeGB = 200,
Encryption = new AzureNative.Compute.Inputs.EncryptionArgs
{
DiskEncryptionSetId = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
},
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
Encryption: &compute.EncryptionArgs{
DiskEncryptionSetId: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"),
},
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
disk_name = "myDisk"
disk_size_gb = 200
encryption = {
disk_encryption_set_id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
}
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.EncryptionArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.diskName("myDisk")
.diskSizeGB(200)
.encryption(EncryptionArgs.builder()
.diskEncryptionSetId("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}")
.build())
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
diskName: "myDisk",
diskSizeGB: 200,
encryption: {
diskEncryptionSetId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
},
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
disk_name="myDisk",
disk_size_gb=200,
encryption={
"disk_encryption_set_id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
},
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
diskName: myDisk
diskSizeGB: 200
encryption:
diskEncryptionSetId: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}
location: West US
resourceGroupName: myResourceGroup
create a managed disk by copying a snapshot.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Copy,
SourceResourceId = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionCopy),
SourceResourceId: pulumi.String("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Copy"
source_resource_id = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
}
disk_name = "myDisk"
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Copy")
.sourceResourceId("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot")
.build())
.diskName("myDisk")
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Copy,
sourceResourceId: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
},
diskName: "myDisk",
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.COPY,
"source_resource_id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
},
disk_name="myDisk",
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Copy
sourceResourceId: subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot
diskName: myDisk
location: West US
resourceGroupName: myResourceGroup
create a managed disk by importing an unmanaged blob from a different subscription.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Import,
SourceUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
StorageAccountId = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionImport),
SourceUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"),
StorageAccountId: pulumi.String("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Import"
source_uri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
storage_account_id = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
}
disk_name = "myDisk"
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Import")
.sourceUri("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd")
.storageAccountId("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount")
.build())
.diskName("myDisk")
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Import,
sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
storageAccountId: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
},
diskName: "myDisk",
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.IMPORT_,
"source_uri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
"storage_account_id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
},
disk_name="myDisk",
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Import
sourceUri: https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd
storageAccountId: subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount
diskName: myDisk
location: West US
resourceGroupName: myResourceGroup
create a managed disk by importing an unmanaged blob from the same subscription.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Import,
SourceUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionImport),
SourceUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Import"
source_uri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
}
disk_name = "myDisk"
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Import")
.sourceUri("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd")
.build())
.diskName("myDisk")
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Import,
sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
},
diskName: "myDisk",
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.IMPORT_,
"source_uri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
},
disk_name="myDisk",
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Import
sourceUri: https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd
diskName: myDisk
location: West US
resourceGroupName: myResourceGroup
create a managed disk from ImportSecure create option
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.ImportSecure,
SecurityDataUri = "https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd",
SourceUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
StorageAccountId = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
SecurityProfile = new AzureNative.Compute.Inputs.DiskSecurityProfileArgs
{
SecurityType = AzureNative.Compute.DiskSecurityTypes.ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionImportSecure),
SecurityDataUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd"),
SourceUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"),
StorageAccountId: pulumi.String("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
SecurityProfile: &compute.DiskSecurityProfileArgs{
SecurityType: pulumi.String(compute.DiskSecurityTypes_ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "ImportSecure"
security_data_uri = "https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd"
source_uri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
storage_account_id = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
}
disk_name = "myDisk"
location = "West US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
security_profile = {
security_type = "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.DiskSecurityProfileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("ImportSecure")
.securityDataUri("https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd")
.sourceUri("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd")
.storageAccountId("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount")
.build())
.diskName("myDisk")
.location("West US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.securityProfile(DiskSecurityProfileArgs.builder()
.securityType("ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.ImportSecure,
securityDataUri: "https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd",
sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
storageAccountId: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
},
diskName: "myDisk",
location: "West US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
securityProfile: {
securityType: azure_native.compute.DiskSecurityTypes.ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.IMPORT_SECURE,
"security_data_uri": "https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd",
"source_uri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
"storage_account_id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
},
disk_name="myDisk",
location="West US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup",
security_profile={
"security_type": azure_native.compute.DiskSecurityTypes.CONFIDENTIAL_V_M_VM_GUEST_STATE_ONLY_ENCRYPTED_WITH_PLATFORM_KEY,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: ImportSecure
securityDataUri: https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd
sourceUri: https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd
storageAccountId: subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount
diskName: myDisk
location: West US
osType: Windows
resourceGroupName: myResourceGroup
securityProfile:
securityType: ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
create a managed disk from UploadPreparedSecure create option
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.UploadPreparedSecure,
UploadSizeBytes = 10737418752,
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
SecurityProfile = new AzureNative.Compute.Inputs.DiskSecurityProfileArgs
{
SecurityType = AzureNative.Compute.DiskSecurityTypes.TrustedLaunch,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionUploadPreparedSecure),
UploadSizeBytes: pulumi.Float64(10737418752),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
SecurityProfile: &compute.DiskSecurityProfileArgs{
SecurityType: pulumi.String(compute.DiskSecurityTypesTrustedLaunch),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "UploadPreparedSecure"
upload_size_bytes = 10737418752
}
disk_name = "myDisk"
location = "West US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
security_profile = {
security_type = "TrustedLaunch"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.DiskSecurityProfileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("UploadPreparedSecure")
.uploadSizeBytes(10737418752.0)
.build())
.diskName("myDisk")
.location("West US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.securityProfile(DiskSecurityProfileArgs.builder()
.securityType("TrustedLaunch")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.UploadPreparedSecure,
uploadSizeBytes: 10737418752,
},
diskName: "myDisk",
location: "West US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
securityProfile: {
securityType: azure_native.compute.DiskSecurityTypes.TrustedLaunch,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.UPLOAD_PREPARED_SECURE,
"upload_size_bytes": 10737418752,
},
disk_name="myDisk",
location="West US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup",
security_profile={
"security_type": azure_native.compute.DiskSecurityTypes.TRUSTED_LAUNCH,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: UploadPreparedSecure
uploadSizeBytes: 1.0737418752e+10
diskName: myDisk
location: West US
osType: Windows
resourceGroupName: myResourceGroup
securityProfile:
securityType: TrustedLaunch
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.FromImage,
ImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
Id = "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0",
},
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionFromImage),
ImageReference: &compute.ImageDiskReferenceArgs{
Id: pulumi.String("/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0"),
},
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "FromImage"
image_reference = {
id = "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0"
}
}
disk_name = "myDisk"
location = "West US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.ImageDiskReferenceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("FromImage")
.imageReference(ImageDiskReferenceArgs.builder()
.id("/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0")
.build())
.build())
.diskName("myDisk")
.location("West US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.FromImage,
imageReference: {
id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0",
},
},
diskName: "myDisk",
location: "West US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.FROM_IMAGE,
"image_reference": {
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0",
},
},
disk_name="myDisk",
location="West US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: FromImage
imageReference:
id: /Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0
diskName: myDisk
location: West US
osType: Windows
resourceGroupName: myResourceGroup
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.FromImage,
GalleryImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
CommunityGalleryImageId = "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0",
},
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionFromImage),
GalleryImageReference: &compute.ImageDiskReferenceArgs{
CommunityGalleryImageId: pulumi.String("/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0"),
},
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "FromImage"
gallery_image_reference = {
community_gallery_image_id = "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0"
}
}
disk_name = "myDisk"
location = "West US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.ImageDiskReferenceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("FromImage")
.galleryImageReference(ImageDiskReferenceArgs.builder()
.communityGalleryImageId("/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0")
.build())
.build())
.diskName("myDisk")
.location("West US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.FromImage,
galleryImageReference: {
communityGalleryImageId: "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0",
},
},
diskName: "myDisk",
location: "West US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.FROM_IMAGE,
"gallery_image_reference": {
"community_gallery_image_id": "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0",
},
},
disk_name="myDisk",
location="West US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: FromImage
galleryImageReference:
communityGalleryImageId: /CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0
diskName: myDisk
location: West US
osType: Windows
resourceGroupName: myResourceGroup
create a managed disk from an Azure Compute Gallery direct shared image.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.FromImage,
GalleryImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
SharedGalleryImageId = "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0",
},
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionFromImage),
GalleryImageReference: &compute.ImageDiskReferenceArgs{
SharedGalleryImageId: pulumi.String("/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0"),
},
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "FromImage"
gallery_image_reference = {
shared_gallery_image_id = "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0"
}
}
disk_name = "myDisk"
location = "West US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.ImageDiskReferenceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("FromImage")
.galleryImageReference(ImageDiskReferenceArgs.builder()
.sharedGalleryImageId("/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0")
.build())
.build())
.diskName("myDisk")
.location("West US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.FromImage,
galleryImageReference: {
sharedGalleryImageId: "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0",
},
},
diskName: "myDisk",
location: "West US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.FROM_IMAGE,
"gallery_image_reference": {
"shared_gallery_image_id": "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0",
},
},
disk_name="myDisk",
location="West US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: FromImage
galleryImageReference:
sharedGalleryImageId: /SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0
diskName: myDisk
location: West US
osType: Windows
resourceGroupName: myResourceGroup
create a managed disk from an Azure Compute Gallery image.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.FromImage,
GalleryImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
Id = "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0",
},
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionFromImage),
GalleryImageReference: &compute.ImageDiskReferenceArgs{
Id: pulumi.String("/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0"),
},
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "FromImage"
gallery_image_reference = {
id = "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0"
}
}
disk_name = "myDisk"
location = "West US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.ImageDiskReferenceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("FromImage")
.galleryImageReference(ImageDiskReferenceArgs.builder()
.id("/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0")
.build())
.build())
.diskName("myDisk")
.location("West US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.FromImage,
galleryImageReference: {
id: "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0",
},
},
diskName: "myDisk",
location: "West US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.FROM_IMAGE,
"gallery_image_reference": {
"id": "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0",
},
},
disk_name="myDisk",
location="West US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: FromImage
galleryImageReference:
id: /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0
diskName: myDisk
location: West US
osType: Windows
resourceGroupName: myResourceGroup
create a managed disk from an existing managed disk in the same or different subscription.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Copy,
SourceResourceId = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1",
},
DiskName = "myDisk2",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionCopy),
SourceResourceId: pulumi.String("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1"),
},
DiskName: pulumi.String("myDisk2"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Copy"
source_resource_id = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1"
}
disk_name = "myDisk2"
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Copy")
.sourceResourceId("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1")
.build())
.diskName("myDisk2")
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Copy,
sourceResourceId: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1",
},
diskName: "myDisk2",
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.COPY,
"source_resource_id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1",
},
disk_name="myDisk2",
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Copy
sourceResourceId: subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1
diskName: myDisk2
location: West US
resourceGroupName: myResourceGroup
create a managed disk from elastic san volume snapshot.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.CopyFromSanSnapshot,
ElasticSanResourceId = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot",
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionCopyFromSanSnapshot),
ElasticSanResourceId: pulumi.String("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot"),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "CopyFromSanSnapshot"
elastic_san_resource_id = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot"
}
disk_name = "myDisk"
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("CopyFromSanSnapshot")
.elasticSanResourceId("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot")
.build())
.diskName("myDisk")
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.CopyFromSanSnapshot,
elasticSanResourceId: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot",
},
diskName: "myDisk",
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.COPY_FROM_SAN_SNAPSHOT,
"elastic_san_resource_id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot",
},
disk_name="myDisk",
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: CopyFromSanSnapshot
elasticSanResourceId: subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot
diskName: myDisk
location: West US
resourceGroupName: myResourceGroup
create a managed disk with dataAccessAuthMode
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DataAccessAuthMode = AzureNative.Compute.DataAccessAuthMode.AzureActiveDirectory,
DiskName = "myDisk",
DiskSizeGB = 200,
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DataAccessAuthMode: pulumi.String(compute.DataAccessAuthModeAzureActiveDirectory),
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
data_access_auth_mode = "AzureActiveDirectory"
disk_name = "myDisk"
disk_size_gb = 200
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.dataAccessAuthMode("AzureActiveDirectory")
.diskName("myDisk")
.diskSizeGB(200)
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
dataAccessAuthMode: azure_native.compute.DataAccessAuthMode.AzureActiveDirectory,
diskName: "myDisk",
diskSizeGB: 200,
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
data_access_auth_mode=azure_native.compute.DataAccessAuthMode.AZURE_ACTIVE_DIRECTORY,
disk_name="myDisk",
disk_size_gb=200,
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
dataAccessAuthMode: AzureActiveDirectory
diskName: myDisk
diskSizeGB: 200
location: West US
resourceGroupName: myResourceGroup
create a managed disk with optimizedForFrequentAttach.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DiskName = "myDisk",
DiskSizeGB = 200,
Location = "West US",
OptimizedForFrequentAttach = true,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
Location: pulumi.String("West US"),
OptimizedForFrequentAttach: pulumi.Bool(true),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
disk_name = "myDisk"
disk_size_gb = 200
location = "West US"
optimized_for_frequent_attach = true
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.diskName("myDisk")
.diskSizeGB(200)
.location("West US")
.optimizedForFrequentAttach(true)
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
diskName: "myDisk",
diskSizeGB: 200,
location: "West US",
optimizedForFrequentAttach: true,
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
disk_name="myDisk",
disk_size_gb=200,
location="West US",
optimized_for_frequent_attach=True,
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
diskName: myDisk
diskSizeGB: 200
location: West US
optimizedForFrequentAttach: true
resourceGroupName: myResourceGroup
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Upload,
PerformancePlus = true,
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionUpload),
PerformancePlus: pulumi.Bool(true),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Upload"
performance_plus = true
}
disk_name = "myDisk"
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Upload")
.performancePlus(true)
.build())
.diskName("myDisk")
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Upload,
performancePlus: true,
},
diskName: "myDisk",
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.UPLOAD,
"performance_plus": True,
},
disk_name="myDisk",
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Upload
performancePlus: true
diskName: myDisk
location: West US
resourceGroupName: myResourceGroup
create a managed disk with premium v2 account type.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DiskIOPSReadWrite = 125.0,
DiskMBpsReadWrite = 3000.0,
DiskName = "myPremiumV2Disk",
DiskSizeGB = 200,
Location = "West US",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.Compute.Inputs.DiskSkuArgs
{
Name = AzureNative.Compute.DiskStorageAccountTypes.PremiumV2_LRS,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DiskIOPSReadWrite: pulumi.Float64(125),
DiskMBpsReadWrite: pulumi.Float64(3000),
DiskName: pulumi.String("myPremiumV2Disk"),
DiskSizeGB: pulumi.Int(200),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &compute.DiskSkuArgs{
Name: pulumi.String(compute.DiskStorageAccountTypes_PremiumV2_LRS),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
disk_iops_read_write = 125
disk_m_bps_read_write = 3000
disk_name = "myPremiumV2Disk"
disk_size_gb = 200
location = "West US"
resource_group_name = "myResourceGroup"
sku = {
name = "PremiumV2_LRS"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.DiskSkuArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.diskIOPSReadWrite(125.0)
.diskMBpsReadWrite(3000.0)
.diskName("myPremiumV2Disk")
.diskSizeGB(200)
.location("West US")
.resourceGroupName("myResourceGroup")
.sku(DiskSkuArgs.builder()
.name("PremiumV2_LRS")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
diskIOPSReadWrite: 125,
diskMBpsReadWrite: 3000,
diskName: "myPremiumV2Disk",
diskSizeGB: 200,
location: "West US",
resourceGroupName: "myResourceGroup",
sku: {
name: azure_native.compute.DiskStorageAccountTypes.PremiumV2_LRS,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
disk_iops_read_write=float(125),
disk_m_bps_read_write=float(3000),
disk_name="myPremiumV2Disk",
disk_size_gb=200,
location="West US",
resource_group_name="myResourceGroup",
sku={
"name": azure_native.compute.DiskStorageAccountTypes.PREMIUM_V2_LRS,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
diskIOPSReadWrite: 125
diskMBpsReadWrite: 3000
diskName: myPremiumV2Disk
diskSizeGB: 200
location: West US
resourceGroupName: myResourceGroup
sku:
name: PremiumV2_LRS
create a managed disk with security profile
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.FromImage,
ImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
Id = "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}",
},
},
DiskName = "myDisk",
Location = "North Central US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
SecurityProfile = new AzureNative.Compute.Inputs.DiskSecurityProfileArgs
{
SecurityType = AzureNative.Compute.DiskSecurityTypes.TrustedLaunch,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionFromImage),
ImageReference: &compute.ImageDiskReferenceArgs{
Id: pulumi.String("/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"),
},
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("North Central US"),
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
SecurityProfile: &compute.DiskSecurityProfileArgs{
SecurityType: pulumi.String(compute.DiskSecurityTypesTrustedLaunch),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "FromImage"
image_reference = {
id = "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
}
}
disk_name = "myDisk"
location = "North Central US"
os_type = "Windows"
resource_group_name = "myResourceGroup"
security_profile = {
security_type = "TrustedLaunch"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.ImageDiskReferenceArgs;
import com.pulumi.azurenative.compute.inputs.DiskSecurityProfileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("FromImage")
.imageReference(ImageDiskReferenceArgs.builder()
.id("/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}")
.build())
.build())
.diskName("myDisk")
.location("North Central US")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.securityProfile(DiskSecurityProfileArgs.builder()
.securityType("TrustedLaunch")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.FromImage,
imageReference: {
id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}",
},
},
diskName: "myDisk",
location: "North Central US",
osType: azure_native.compute.OperatingSystemTypes.Windows,
resourceGroupName: "myResourceGroup",
securityProfile: {
securityType: azure_native.compute.DiskSecurityTypes.TrustedLaunch,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.FROM_IMAGE,
"image_reference": {
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}",
},
},
disk_name="myDisk",
location="North Central US",
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
resource_group_name="myResourceGroup",
security_profile={
"security_type": azure_native.compute.DiskSecurityTypes.TRUSTED_LAUNCH,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: FromImage
imageReference:
id: /Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}
diskName: myDisk
location: North Central US
osType: Windows
resourceGroupName: myResourceGroup
securityProfile:
securityType: TrustedLaunch
create a managed disk with ssd zrs account type.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DiskName = "myDisk",
DiskSizeGB = 200,
Location = "West US",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.Compute.Inputs.DiskSkuArgs
{
Name = AzureNative.Compute.DiskStorageAccountTypes.Premium_ZRS,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &compute.DiskSkuArgs{
Name: pulumi.String(compute.DiskStorageAccountTypes_Premium_ZRS),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
disk_name = "myDisk"
disk_size_gb = 200
location = "West US"
resource_group_name = "myResourceGroup"
sku = {
name = "Premium_ZRS"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.DiskSkuArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.diskName("myDisk")
.diskSizeGB(200)
.location("West US")
.resourceGroupName("myResourceGroup")
.sku(DiskSkuArgs.builder()
.name("Premium_ZRS")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
diskName: "myDisk",
diskSizeGB: 200,
location: "West US",
resourceGroupName: "myResourceGroup",
sku: {
name: azure_native.compute.DiskStorageAccountTypes.Premium_ZRS,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
disk_name="myDisk",
disk_size_gb=200,
location="West US",
resource_group_name="myResourceGroup",
sku={
"name": azure_native.compute.DiskStorageAccountTypes.PREMIUM_ZRS,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
diskName: myDisk
diskSizeGB: 200
location: West US
resourceGroupName: myResourceGroup
sku:
name: Premium_ZRS
create a managed disk with ultra account type with readOnly property set.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
LogicalSectorSize = 4096,
},
DiskIOPSReadWrite = 125.0,
DiskMBpsReadWrite = 3000.0,
DiskName = "myUltraReadOnlyDisk",
DiskSizeGB = 200,
Encryption = new AzureNative.Compute.Inputs.EncryptionArgs
{
Type = AzureNative.Compute.EncryptionType.EncryptionAtRestWithPlatformKey,
},
Location = "West US",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.Compute.Inputs.DiskSkuArgs
{
Name = AzureNative.Compute.DiskStorageAccountTypes.UltraSSD_LRS,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
LogicalSectorSize: pulumi.Int(4096),
},
DiskIOPSReadWrite: pulumi.Float64(125),
DiskMBpsReadWrite: pulumi.Float64(3000),
DiskName: pulumi.String("myUltraReadOnlyDisk"),
DiskSizeGB: pulumi.Int(200),
Encryption: &compute.EncryptionArgs{
Type: pulumi.String(compute.EncryptionTypeEncryptionAtRestWithPlatformKey),
},
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &compute.DiskSkuArgs{
Name: pulumi.String(compute.DiskStorageAccountTypes_UltraSSD_LRS),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
logical_sector_size = 4096
}
disk_iops_read_write = 125
disk_m_bps_read_write = 3000
disk_name = "myUltraReadOnlyDisk"
disk_size_gb = 200
encryption = {
type = "EncryptionAtRestWithPlatformKey"
}
location = "West US"
resource_group_name = "myResourceGroup"
sku = {
name = "UltraSSD_LRS"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.EncryptionArgs;
import com.pulumi.azurenative.compute.inputs.DiskSkuArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.logicalSectorSize(4096)
.build())
.diskIOPSReadWrite(125.0)
.diskMBpsReadWrite(3000.0)
.diskName("myUltraReadOnlyDisk")
.diskSizeGB(200)
.encryption(EncryptionArgs.builder()
.type("EncryptionAtRestWithPlatformKey")
.build())
.location("West US")
.resourceGroupName("myResourceGroup")
.sku(DiskSkuArgs.builder()
.name("UltraSSD_LRS")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
logicalSectorSize: 4096,
},
diskIOPSReadWrite: 125,
diskMBpsReadWrite: 3000,
diskName: "myUltraReadOnlyDisk",
diskSizeGB: 200,
encryption: {
type: azure_native.compute.EncryptionType.EncryptionAtRestWithPlatformKey,
},
location: "West US",
resourceGroupName: "myResourceGroup",
sku: {
name: azure_native.compute.DiskStorageAccountTypes.UltraSSD_LRS,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
"logical_sector_size": 4096,
},
disk_iops_read_write=float(125),
disk_m_bps_read_write=float(3000),
disk_name="myUltraReadOnlyDisk",
disk_size_gb=200,
encryption={
"type": azure_native.compute.EncryptionType.ENCRYPTION_AT_REST_WITH_PLATFORM_KEY,
},
location="West US",
resource_group_name="myResourceGroup",
sku={
"name": azure_native.compute.DiskStorageAccountTypes.ULTRA_SS_D_LRS,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
logicalSectorSize: 4096
diskIOPSReadWrite: 125
diskMBpsReadWrite: 3000
diskName: myUltraReadOnlyDisk
diskSizeGB: 200
encryption:
type: EncryptionAtRestWithPlatformKey
location: West US
resourceGroupName: myResourceGroup
sku:
name: UltraSSD_LRS
create a managed upload disk.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Upload,
UploadSizeBytes = 10737418752,
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionUpload),
UploadSizeBytes: pulumi.Float64(10737418752),
},
DiskName: pulumi.String("myDisk"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Upload"
upload_size_bytes = 10737418752
}
disk_name = "myDisk"
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Upload")
.uploadSizeBytes(10737418752.0)
.build())
.diskName("myDisk")
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Upload,
uploadSizeBytes: 10737418752,
},
diskName: "myDisk",
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.UPLOAD,
"upload_size_bytes": 10737418752,
},
disk_name="myDisk",
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Upload
uploadSizeBytes: 1.0737418752e+10
diskName: myDisk
location: West US
resourceGroupName: myResourceGroup
create an empty managed disk in extended location.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DiskName = "myDisk",
DiskSizeGB = 200,
ExtendedLocation = new AzureNative.Compute.Inputs.ExtendedLocationArgs
{
Name = "{edge-zone-id}",
Type = AzureNative.Compute.ExtendedLocationTypes.EdgeZone,
},
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
ExtendedLocation: &compute.ExtendedLocationArgs{
Name: pulumi.String("{edge-zone-id}"),
Type: pulumi.String(compute.ExtendedLocationTypesEdgeZone),
},
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
disk_name = "myDisk"
disk_size_gb = 200
extended_location = {
name = "{edge-zone-id}"
type = "EdgeZone"
}
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.ExtendedLocationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.diskName("myDisk")
.diskSizeGB(200)
.extendedLocation(ExtendedLocationArgs.builder()
.name("{edge-zone-id}")
.type("EdgeZone")
.build())
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
diskName: "myDisk",
diskSizeGB: 200,
extendedLocation: {
name: "{edge-zone-id}",
type: azure_native.compute.ExtendedLocationTypes.EdgeZone,
},
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
disk_name="myDisk",
disk_size_gb=200,
extended_location={
"name": "{edge-zone-id}",
"type": azure_native.compute.ExtendedLocationTypes.EDGE_ZONE,
},
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
diskName: myDisk
diskSizeGB: 200
extendedLocation:
name: '{edge-zone-id}'
type: EdgeZone
location: West US
resourceGroupName: myResourceGroup
create an empty managed disk.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
},
DiskName = "myDisk",
DiskSizeGB = 200,
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
},
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
}
disk_name = "myDisk"
disk_size_gb = 200
location = "West US"
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.build())
.diskName("myDisk")
.diskSizeGB(200)
.location("West US")
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
},
diskName: "myDisk",
diskSizeGB: 200,
location: "West US",
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
},
disk_name="myDisk",
disk_size_gb=200,
location="West US",
resource_group_name="myResourceGroup")
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
diskName: myDisk
diskSizeGB: 200
location: West US
resourceGroupName: myResourceGroup
create an ultra managed disk with logicalSectorSize 512E
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = AzureNative.Compute.DiskCreateOption.Empty,
LogicalSectorSize = 512,
},
DiskName = "myDisk",
DiskSizeGB = 200,
Location = "West US",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.Compute.Inputs.DiskSkuArgs
{
Name = AzureNative.Compute.DiskStorageAccountTypes.UltraSSD_LRS,
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String(compute.DiskCreateOptionEmpty),
LogicalSectorSize: pulumi.Int(512),
},
DiskName: pulumi.String("myDisk"),
DiskSizeGB: pulumi.Int(200),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &compute.DiskSkuArgs{
Name: pulumi.String(compute.DiskStorageAccountTypes_UltraSSD_LRS),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_compute_disk" "disk" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "Empty"
logical_sector_size = 512
}
disk_name = "myDisk"
disk_size_gb = 200
location = "West US"
resource_group_name = "myResourceGroup"
sku = {
name = "UltraSSD_LRS"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import com.pulumi.azurenative.compute.inputs.CreationDataArgs;
import com.pulumi.azurenative.compute.inputs.DiskSkuArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 disk = new Disk("disk", DiskArgs.builder()
.creationData(CreationDataArgs.builder()
.createOption("Empty")
.logicalSectorSize(512)
.build())
.diskName("myDisk")
.diskSizeGB(200)
.location("West US")
.resourceGroupName("myResourceGroup")
.sku(DiskSkuArgs.builder()
.name("UltraSSD_LRS")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const disk = new azure_native.compute.Disk("disk", {
creationData: {
createOption: azure_native.compute.DiskCreateOption.Empty,
logicalSectorSize: 512,
},
diskName: "myDisk",
diskSizeGB: 200,
location: "West US",
resourceGroupName: "myResourceGroup",
sku: {
name: azure_native.compute.DiskStorageAccountTypes.UltraSSD_LRS,
},
});
import pulumi
import pulumi_azure_native as azure_native
disk = azure_native.compute.Disk("disk",
creation_data={
"create_option": azure_native.compute.DiskCreateOption.EMPTY,
"logical_sector_size": 512,
},
disk_name="myDisk",
disk_size_gb=200,
location="West US",
resource_group_name="myResourceGroup",
sku={
"name": azure_native.compute.DiskStorageAccountTypes.ULTRA_SS_D_LRS,
})
resources:
disk:
type: azure-native:compute:Disk
properties:
creationData:
createOption: Empty
logicalSectorSize: 512
diskName: myDisk
diskSizeGB: 200
location: West US
resourceGroupName: myResourceGroup
sku:
name: UltraSSD_LRS
Create Disk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Disk(resource_name: str,
args: DiskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Disk(resource_name: str,
opts: Optional[ResourceOptions] = None,
creation_data: Optional[CreationDataArgs] = None,
resource_group_name: Optional[str] = None,
hyper_v_generation: Optional[Union[str, HyperVGeneration]] = None,
supported_capabilities: Optional[SupportedCapabilitiesArgs] = None,
disk_access_id: Optional[str] = None,
disk_iops_read_only: Optional[float] = None,
max_shares: Optional[int] = None,
disk_m_bps_read_only: Optional[float] = None,
disk_m_bps_read_write: Optional[float] = None,
disk_name: Optional[str] = None,
disk_size_gb: Optional[int] = None,
encryption: Optional[EncryptionArgs] = None,
encryption_settings_collection: Optional[EncryptionSettingsCollectionArgs] = None,
extended_location: Optional[ExtendedLocationArgs] = None,
data_access_auth_mode: Optional[Union[str, DataAccessAuthMode]] = None,
bursting_enabled: Optional[bool] = None,
disk_iops_read_write: Optional[float] = None,
network_access_policy: Optional[Union[str, NetworkAccessPolicy]] = None,
optimized_for_frequent_attach: Optional[bool] = None,
os_type: Optional[OperatingSystemTypes] = None,
public_network_access: Optional[Union[str, PublicNetworkAccess]] = None,
purchase_plan: Optional[DiskPurchasePlanArgs] = None,
completion_percent: Optional[float] = None,
security_profile: Optional[DiskSecurityProfileArgs] = None,
sku: Optional[DiskSkuArgs] = None,
location: Optional[str] = None,
supports_hibernation: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
tier: Optional[str] = None,
zones: Optional[Sequence[str]] = None)
public Disk(String name, DiskArgs args)
public Disk(String name, DiskArgs args, CustomResourceOptions options)
type: azure-native:compute:Disk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_compute_disk" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
DiskArgs
- 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
DiskArgs
- 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
DiskArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
DiskArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
DiskArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var diskResource = new AzureNative.Compute.Disk("diskResource", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "string",
ElasticSanResourceId = "string",
GalleryImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
CommunityGalleryImageId = "string",
Id = "string",
Lun = 0,
SharedGalleryImageId = "string",
},
ImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
CommunityGalleryImageId = "string",
Id = "string",
Lun = 0,
SharedGalleryImageId = "string",
},
LogicalSectorSize = 0,
PerformancePlus = false,
ProvisionedBandwidthCopySpeed = "string",
SecurityDataUri = "string",
SourceResourceId = "string",
SourceUri = "string",
StorageAccountId = "string",
UploadSizeBytes = 0.0,
},
ResourceGroupName = "string",
HyperVGeneration = "string",
SupportedCapabilities = new AzureNative.Compute.Inputs.SupportedCapabilitiesArgs
{
AcceleratedNetwork = false,
Architecture = "string",
DiskControllerTypes = "string",
},
DiskAccessId = "string",
DiskIOPSReadOnly = 0.0,
MaxShares = 0,
DiskMBpsReadOnly = 0.0,
DiskMBpsReadWrite = 0.0,
DiskName = "string",
DiskSizeGB = 0,
Encryption = new AzureNative.Compute.Inputs.EncryptionArgs
{
DiskEncryptionSetId = "string",
Type = "string",
},
EncryptionSettingsCollection = new AzureNative.Compute.Inputs.EncryptionSettingsCollectionArgs
{
Enabled = false,
EncryptionSettings = new[]
{
new AzureNative.Compute.Inputs.EncryptionSettingsElementArgs
{
DiskEncryptionKey = new AzureNative.Compute.Inputs.KeyVaultAndSecretReferenceArgs
{
SecretUrl = "string",
SourceVault = new AzureNative.Compute.Inputs.SourceVaultArgs
{
Id = "string",
},
},
KeyEncryptionKey = new AzureNative.Compute.Inputs.KeyVaultAndKeyReferenceArgs
{
KeyUrl = "string",
SourceVault = new AzureNative.Compute.Inputs.SourceVaultArgs
{
Id = "string",
},
},
},
},
EncryptionSettingsVersion = "string",
},
ExtendedLocation = new AzureNative.Compute.Inputs.ExtendedLocationArgs
{
Name = "string",
Type = "string",
},
DataAccessAuthMode = "string",
BurstingEnabled = false,
DiskIOPSReadWrite = 0.0,
NetworkAccessPolicy = "string",
OptimizedForFrequentAttach = false,
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
PublicNetworkAccess = "string",
PurchasePlan = new AzureNative.Compute.Inputs.DiskPurchasePlanArgs
{
Name = "string",
Product = "string",
Publisher = "string",
PromotionCode = "string",
},
CompletionPercent = 0.0,
SecurityProfile = new AzureNative.Compute.Inputs.DiskSecurityProfileArgs
{
SecureVMDiskEncryptionSetId = "string",
SecurityType = "string",
},
Sku = new AzureNative.Compute.Inputs.DiskSkuArgs
{
Name = "string",
},
Location = "string",
SupportsHibernation = false,
Tags =
{
{ "string", "string" },
},
Tier = "string",
Zones = new[]
{
"string",
},
});
example, err := compute.NewDisk(ctx, "diskResource", &compute.DiskArgs{
CreationData: &compute.CreationDataArgs{
CreateOption: pulumi.String("string"),
ElasticSanResourceId: pulumi.String("string"),
GalleryImageReference: &compute.ImageDiskReferenceArgs{
CommunityGalleryImageId: pulumi.String("string"),
Id: pulumi.String("string"),
Lun: pulumi.Int(0),
SharedGalleryImageId: pulumi.String("string"),
},
ImageReference: &compute.ImageDiskReferenceArgs{
CommunityGalleryImageId: pulumi.String("string"),
Id: pulumi.String("string"),
Lun: pulumi.Int(0),
SharedGalleryImageId: pulumi.String("string"),
},
LogicalSectorSize: pulumi.Int(0),
PerformancePlus: pulumi.Bool(false),
ProvisionedBandwidthCopySpeed: pulumi.String("string"),
SecurityDataUri: pulumi.String("string"),
SourceResourceId: pulumi.String("string"),
SourceUri: pulumi.String("string"),
StorageAccountId: pulumi.String("string"),
UploadSizeBytes: pulumi.Float64(0),
},
ResourceGroupName: pulumi.String("string"),
HyperVGeneration: pulumi.String("string"),
SupportedCapabilities: &compute.SupportedCapabilitiesArgs{
AcceleratedNetwork: pulumi.Bool(false),
Architecture: pulumi.String("string"),
DiskControllerTypes: pulumi.String("string"),
},
DiskAccessId: pulumi.String("string"),
DiskIOPSReadOnly: pulumi.Float64(0),
MaxShares: pulumi.Int(0),
DiskMBpsReadOnly: pulumi.Float64(0),
DiskMBpsReadWrite: pulumi.Float64(0),
DiskName: pulumi.String("string"),
DiskSizeGB: pulumi.Int(0),
Encryption: &compute.EncryptionArgs{
DiskEncryptionSetId: pulumi.String("string"),
Type: pulumi.String("string"),
},
EncryptionSettingsCollection: &compute.EncryptionSettingsCollectionArgs{
Enabled: pulumi.Bool(false),
EncryptionSettings: compute.EncryptionSettingsElementArray{
&compute.EncryptionSettingsElementArgs{
DiskEncryptionKey: &compute.KeyVaultAndSecretReferenceArgs{
SecretUrl: pulumi.String("string"),
SourceVault: &compute.SourceVaultArgs{
Id: pulumi.String("string"),
},
},
KeyEncryptionKey: &compute.KeyVaultAndKeyReferenceArgs{
KeyUrl: pulumi.String("string"),
SourceVault: &compute.SourceVaultArgs{
Id: pulumi.String("string"),
},
},
},
},
EncryptionSettingsVersion: pulumi.String("string"),
},
ExtendedLocation: &compute.ExtendedLocationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
DataAccessAuthMode: pulumi.String("string"),
BurstingEnabled: pulumi.Bool(false),
DiskIOPSReadWrite: pulumi.Float64(0),
NetworkAccessPolicy: pulumi.String("string"),
OptimizedForFrequentAttach: pulumi.Bool(false),
OsType: compute.OperatingSystemTypesWindows,
PublicNetworkAccess: pulumi.String("string"),
PurchasePlan: &compute.DiskPurchasePlanArgs{
Name: pulumi.String("string"),
Product: pulumi.String("string"),
Publisher: pulumi.String("string"),
PromotionCode: pulumi.String("string"),
},
CompletionPercent: pulumi.Float64(0),
SecurityProfile: &compute.DiskSecurityProfileArgs{
SecureVMDiskEncryptionSetId: pulumi.String("string"),
SecurityType: pulumi.String("string"),
},
Sku: &compute.DiskSkuArgs{
Name: pulumi.String("string"),
},
Location: pulumi.String("string"),
SupportsHibernation: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Tier: pulumi.String("string"),
Zones: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "azure-native_compute_disk" "diskResource" {
lifecycle {
create_before_destroy = true
}
creation_data = {
create_option = "string"
elastic_san_resource_id = "string"
gallery_image_reference = {
community_gallery_image_id = "string"
id = "string"
lun = 0
shared_gallery_image_id = "string"
}
image_reference = {
community_gallery_image_id = "string"
id = "string"
lun = 0
shared_gallery_image_id = "string"
}
logical_sector_size = 0
performance_plus = false
provisioned_bandwidth_copy_speed = "string"
security_data_uri = "string"
source_resource_id = "string"
source_uri = "string"
storage_account_id = "string"
upload_size_bytes = 0
}
resource_group_name = "string"
hyper_v_generation = "string"
supported_capabilities = {
accelerated_network = false
architecture = "string"
disk_controller_types = "string"
}
disk_access_id = "string"
disk_iops_read_only = 0
max_shares = 0
disk_m_bps_read_only = 0
disk_m_bps_read_write = 0
disk_name = "string"
disk_size_gb = 0
encryption = {
disk_encryption_set_id = "string"
type = "string"
}
encryption_settings_collection = {
enabled = false
encryption_settings = [{
disk_encryption_key = {
secret_url = "string"
source_vault = {
id = "string"
}
}
key_encryption_key = {
key_url = "string"
source_vault = {
id = "string"
}
}
}]
encryption_settings_version = "string"
}
extended_location = {
name = "string"
type = "string"
}
data_access_auth_mode = "string"
bursting_enabled = false
disk_iops_read_write = 0
network_access_policy = "string"
optimized_for_frequent_attach = false
os_type = "Windows"
public_network_access = "string"
purchase_plan = {
name = "string"
product = "string"
publisher = "string"
promotion_code = "string"
}
completion_percent = 0
security_profile = {
secure_vm_disk_encryption_set_id = "string"
security_type = "string"
}
sku = {
name = "string"
}
location = "string"
supports_hibernation = false
tags = {
"string" = "string"
}
tier = "string"
zones = ["string"]
}
var diskResource = new com.pulumi.azurenative.compute.Disk("diskResource", com.pulumi.azurenative.compute.DiskArgs.builder()
.creationData(com.pulumi.azurenative.compute.inputs.CreationDataArgs.builder()
.createOption("string")
.elasticSanResourceId("string")
.galleryImageReference(ImageDiskReferenceArgs.builder()
.communityGalleryImageId("string")
.id("string")
.lun(0)
.sharedGalleryImageId("string")
.build())
.imageReference(ImageDiskReferenceArgs.builder()
.communityGalleryImageId("string")
.id("string")
.lun(0)
.sharedGalleryImageId("string")
.build())
.logicalSectorSize(0)
.performancePlus(false)
.provisionedBandwidthCopySpeed("string")
.securityDataUri("string")
.sourceResourceId("string")
.sourceUri("string")
.storageAccountId("string")
.uploadSizeBytes(0.0)
.build())
.resourceGroupName("string")
.hyperVGeneration("string")
.supportedCapabilities(SupportedCapabilitiesArgs.builder()
.acceleratedNetwork(false)
.architecture("string")
.diskControllerTypes("string")
.build())
.diskAccessId("string")
.diskIOPSReadOnly(0.0)
.maxShares(0)
.diskMBpsReadOnly(0.0)
.diskMBpsReadWrite(0.0)
.diskName("string")
.diskSizeGB(0)
.encryption(com.pulumi.azurenative.compute.inputs.EncryptionArgs.builder()
.diskEncryptionSetId("string")
.type("string")
.build())
.encryptionSettingsCollection(EncryptionSettingsCollectionArgs.builder()
.enabled(false)
.encryptionSettings(EncryptionSettingsElementArgs.builder()
.diskEncryptionKey(KeyVaultAndSecretReferenceArgs.builder()
.secretUrl("string")
.sourceVault(SourceVaultArgs.builder()
.id("string")
.build())
.build())
.keyEncryptionKey(KeyVaultAndKeyReferenceArgs.builder()
.keyUrl("string")
.sourceVault(SourceVaultArgs.builder()
.id("string")
.build())
.build())
.build())
.encryptionSettingsVersion("string")
.build())
.extendedLocation(com.pulumi.azurenative.compute.inputs.ExtendedLocationArgs.builder()
.name("string")
.type("string")
.build())
.dataAccessAuthMode("string")
.burstingEnabled(false)
.diskIOPSReadWrite(0.0)
.networkAccessPolicy("string")
.optimizedForFrequentAttach(false)
.osType(com.pulumi.azurenative.compute.enums.OperatingSystemTypes.Windows)
.publicNetworkAccess("string")
.purchasePlan(DiskPurchasePlanArgs.builder()
.name("string")
.product("string")
.publisher("string")
.promotionCode("string")
.build())
.completionPercent(0.0)
.securityProfile(DiskSecurityProfileArgs.builder()
.secureVMDiskEncryptionSetId("string")
.securityType("string")
.build())
.sku(com.pulumi.azurenative.compute.inputs.DiskSkuArgs.builder()
.name("string")
.build())
.location("string")
.supportsHibernation(false)
.tags(Map.of("string", "string"))
.tier("string")
.zones("string")
.build());
disk_resource = azure_native.compute.Disk("diskResource",
creation_data={
"create_option": "string",
"elastic_san_resource_id": "string",
"gallery_image_reference": {
"community_gallery_image_id": "string",
"id": "string",
"lun": 0,
"shared_gallery_image_id": "string",
},
"image_reference": {
"community_gallery_image_id": "string",
"id": "string",
"lun": 0,
"shared_gallery_image_id": "string",
},
"logical_sector_size": 0,
"performance_plus": False,
"provisioned_bandwidth_copy_speed": "string",
"security_data_uri": "string",
"source_resource_id": "string",
"source_uri": "string",
"storage_account_id": "string",
"upload_size_bytes": float(0),
},
resource_group_name="string",
hyper_v_generation="string",
supported_capabilities={
"accelerated_network": False,
"architecture": "string",
"disk_controller_types": "string",
},
disk_access_id="string",
disk_iops_read_only=float(0),
max_shares=0,
disk_m_bps_read_only=float(0),
disk_m_bps_read_write=float(0),
disk_name="string",
disk_size_gb=0,
encryption={
"disk_encryption_set_id": "string",
"type": "string",
},
encryption_settings_collection={
"enabled": False,
"encryption_settings": [{
"disk_encryption_key": {
"secret_url": "string",
"source_vault": {
"id": "string",
},
},
"key_encryption_key": {
"key_url": "string",
"source_vault": {
"id": "string",
},
},
}],
"encryption_settings_version": "string",
},
extended_location={
"name": "string",
"type": "string",
},
data_access_auth_mode="string",
bursting_enabled=False,
disk_iops_read_write=float(0),
network_access_policy="string",
optimized_for_frequent_attach=False,
os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
public_network_access="string",
purchase_plan={
"name": "string",
"product": "string",
"publisher": "string",
"promotion_code": "string",
},
completion_percent=float(0),
security_profile={
"secure_vm_disk_encryption_set_id": "string",
"security_type": "string",
},
sku={
"name": "string",
},
location="string",
supports_hibernation=False,
tags={
"string": "string",
},
tier="string",
zones=["string"])
const diskResource = new azure_native.compute.Disk("diskResource", {
creationData: {
createOption: "string",
elasticSanResourceId: "string",
galleryImageReference: {
communityGalleryImageId: "string",
id: "string",
lun: 0,
sharedGalleryImageId: "string",
},
imageReference: {
communityGalleryImageId: "string",
id: "string",
lun: 0,
sharedGalleryImageId: "string",
},
logicalSectorSize: 0,
performancePlus: false,
provisionedBandwidthCopySpeed: "string",
securityDataUri: "string",
sourceResourceId: "string",
sourceUri: "string",
storageAccountId: "string",
uploadSizeBytes: 0,
},
resourceGroupName: "string",
hyperVGeneration: "string",
supportedCapabilities: {
acceleratedNetwork: false,
architecture: "string",
diskControllerTypes: "string",
},
diskAccessId: "string",
diskIOPSReadOnly: 0,
maxShares: 0,
diskMBpsReadOnly: 0,
diskMBpsReadWrite: 0,
diskName: "string",
diskSizeGB: 0,
encryption: {
diskEncryptionSetId: "string",
type: "string",
},
encryptionSettingsCollection: {
enabled: false,
encryptionSettings: [{
diskEncryptionKey: {
secretUrl: "string",
sourceVault: {
id: "string",
},
},
keyEncryptionKey: {
keyUrl: "string",
sourceVault: {
id: "string",
},
},
}],
encryptionSettingsVersion: "string",
},
extendedLocation: {
name: "string",
type: "string",
},
dataAccessAuthMode: "string",
burstingEnabled: false,
diskIOPSReadWrite: 0,
networkAccessPolicy: "string",
optimizedForFrequentAttach: false,
osType: azure_native.compute.OperatingSystemTypes.Windows,
publicNetworkAccess: "string",
purchasePlan: {
name: "string",
product: "string",
publisher: "string",
promotionCode: "string",
},
completionPercent: 0,
securityProfile: {
secureVMDiskEncryptionSetId: "string",
securityType: "string",
},
sku: {
name: "string",
},
location: "string",
supportsHibernation: false,
tags: {
string: "string",
},
tier: "string",
zones: ["string"],
});
type: azure-native:compute:Disk
properties:
burstingEnabled: false
completionPercent: 0
creationData:
createOption: string
elasticSanResourceId: string
galleryImageReference:
communityGalleryImageId: string
id: string
lun: 0
sharedGalleryImageId: string
imageReference:
communityGalleryImageId: string
id: string
lun: 0
sharedGalleryImageId: string
logicalSectorSize: 0
performancePlus: false
provisionedBandwidthCopySpeed: string
securityDataUri: string
sourceResourceId: string
sourceUri: string
storageAccountId: string
uploadSizeBytes: 0
dataAccessAuthMode: string
diskAccessId: string
diskIOPSReadOnly: 0
diskIOPSReadWrite: 0
diskMBpsReadOnly: 0
diskMBpsReadWrite: 0
diskName: string
diskSizeGB: 0
encryption:
diskEncryptionSetId: string
type: string
encryptionSettingsCollection:
enabled: false
encryptionSettings:
- diskEncryptionKey:
secretUrl: string
sourceVault:
id: string
keyEncryptionKey:
keyUrl: string
sourceVault:
id: string
encryptionSettingsVersion: string
extendedLocation:
name: string
type: string
hyperVGeneration: string
location: string
maxShares: 0
networkAccessPolicy: string
optimizedForFrequentAttach: false
osType: Windows
publicNetworkAccess: string
purchasePlan:
name: string
product: string
promotionCode: string
publisher: string
resourceGroupName: string
securityProfile:
secureVMDiskEncryptionSetId: string
securityType: string
sku:
name: string
supportedCapabilities:
acceleratedNetwork: false
architecture: string
diskControllerTypes: string
supportsHibernation: false
tags:
string: string
tier: string
zones:
- string
Disk Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Disk resource accepts the following input properties:
- CreationData
Pulumi.AzureNative.Compute.Inputs.CreationData
- Disk source information. CreationData information cannot be changed after the disk has been created.
- ResourceGroupName
string
- The name of the resource group. The name is case insensitive.
- BurstingEnabled
bool
- Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
- CompletionPercent
double
- Percentage complete for the background copy when a resource is created via the CopyStart operation.
- DataAccessAuthMode
string | Pulumi.AzureNative.Compute.DataAccessAuthMode
- Additional authentication requirements when exporting or uploading to a disk or snapshot.
- DiskAccessId
string
- ARM id of the DiskAccess resource for using private endpoints on disks.
- DiskIOPSReadOnly
double
- The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
- DiskIOPSReadWrite
double
- The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- DiskMBpsReadOnly
double
- The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- DiskMBpsReadWrite
double
- The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- DiskName
string
- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
- DiskSizeGB
int
- If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- Encryption
Pulumi.AzureNative.Compute.Inputs.Encryption
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- EncryptionSettingsCollection
Pulumi.AzureNative.Compute.Inputs.EncryptionSettingsCollection
- Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- ExtendedLocation
Pulumi.AzureNative.Compute.Inputs.ExtendedLocation
- The extended location where the disk will be created. Extended location cannot be changed.
- HyperVGeneration
string | Pulumi.AzureNative.Compute.HyperVGeneration
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- Location
string
- The geo-location where the resource lives
- MaxShares
int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- NetworkAccessPolicy
string | Pulumi.AzureNative.Compute.NetworkAccessPolicy
- Policy for accessing the disk via network.
- OptimizedForFrequentAttach
bool
- Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
- OsType
Pulumi.AzureNative.Compute.OperatingSystemTypes
- The Operating System type.
- PublicNetworkAccess
string | Pulumi.AzureNative.Compute.PublicNetworkAccess
- Policy for controlling export on the disk.
- PurchasePlan
Pulumi.AzureNative.Compute.Inputs.DiskPurchasePlan
- Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}
- SecurityProfile
Pulumi.AzureNative.Compute.Inputs.DiskSecurityProfile
- Contains the security related information for the resource.
- Sku
Pulumi.AzureNative.Compute.Inputs.DiskSku
- The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- SupportedCapabilities
Pulumi.AzureNative.Compute.Inputs.SupportedCapabilities
- List of supported capabilities for the image from which the OS disk was created.
- SupportsHibernation
bool
- Indicates the OS on a disk supports hibernation.
- Tags
Dictionary<string, string>
- Resource tags.
- Tier
string
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- Zones
List<string>
- The Logical zone list for Disk.
- CreationData
CreationDataArgs
- Disk source information. CreationData information cannot be changed after the disk has been created.
- ResourceGroupName
string
- The name of the resource group. The name is case insensitive.
- BurstingEnabled
bool
- Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
- CompletionPercent
float64
- Percentage complete for the background copy when a resource is created via the CopyStart operation.
- DataAccessAuthMode
string | DataAccessAuthMode
- Additional authentication requirements when exporting or uploading to a disk or snapshot.
- DiskAccessId
string
- ARM id of the DiskAccess resource for using private endpoints on disks.
- DiskIOPSReadOnly
float64
- The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
- DiskIOPSReadWrite
float64
- The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- DiskMBpsReadOnly
float64
- The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- DiskMBpsReadWrite
float64
- The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- DiskName
string
- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
- DiskSizeGB
int
- If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- Encryption
EncryptionArgs
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- EncryptionSettingsCollection
EncryptionSettingsCollectionArgs
- Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- ExtendedLocation
ExtendedLocationArgs
- The extended location where the disk will be created. Extended location cannot be changed.
- HyperVGeneration
string | HyperVGeneration
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- Location
string
- The geo-location where the resource lives
- MaxShares
int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- NetworkAccessPolicy
string | NetworkAccessPolicy
- Policy for accessing the disk via network.
- OptimizedForFrequentAttach
bool
- Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
- OsType
OperatingSystemTypes
- The Operating System type.
- PublicNetworkAccess
string | PublicNetworkAccess
- Policy for controlling export on the disk.
- PurchasePlan
DiskPurchasePlanArgs
- Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}
- SecurityProfile
DiskSecurityProfileArgs
- Contains the security related information for the resource.
- Sku
DiskSkuArgs
- The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- SupportedCapabilities
SupportedCapabilitiesArgs
- List of supported capabilities for the image from which the OS disk was created.
- SupportsHibernation
bool
- Indicates the OS on a disk supports hibernation.
- Tags
map[string]string
- Resource tags.
- Tier
string
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- Zones
[]string
- The Logical zone list for Disk.
- creation_data
object
- Disk source information. CreationData information cannot be changed after the disk has been created.
- resource_group_name
string
- The name of the resource group. The name is case insensitive.
- bursting_enabled
bool
- Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
- completion_percent
number
- Percentage complete for the background copy when a resource is created via the CopyStart operation.
- data_access_auth_mode
string | "AzureActiveDirectory" | "None"
- Additional authentication requirements when exporting or uploading to a disk or snapshot.
- disk_access_id
string
- ARM id of the DiskAccess resource for using private endpoints on disks.
- disk_iops_read_only
number
- The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
- disk_iops_read_write
number
- The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- disk_m_bps_read_only
number
- The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- disk_m_bps_read_write
number
- The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- disk_name
string
- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
- disk_size_gb
number
- If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption
object
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryption_settings_collection
object
- Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extended_location
object
- The extended location where the disk will be created. Extended location cannot be changed.
- hyper_v_generation
string | "V1" | "V2"
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location
string
- The geo-location where the resource lives
- max_shares
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.
- network_access_policy
string | "AllowAll" | "AllowPrivate" | "DenyAll"
- Policy for accessing the disk via network.
- optimized_for_frequent_attach
bool
- Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
- os_type
"Windows" | "Linux"
- The Operating System type.
- public_network_access
string | "Enabled" | "Disabled"
- Policy for controlling export on the disk.
- purchase_plan
object
- Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}
- security_profile
object
- Contains the security related information for the resource.
- sku
object
- The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- supported_capabilities
object
- List of supported capabilities for the image from which the OS disk was created.
- supports_hibernation
bool
- Indicates the OS on a disk supports hibernation.
- tags
map(string)
- Resource tags.
- tier
string
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- zones
list(string)
- The Logical zone list for Disk.
- creationData
CreationData
- Disk source information. CreationData information cannot be changed after the disk has been created.
- resourceGroupName
String
- The name of the resource group. The name is case insensitive.
- burstingEnabled
Boolean
- Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
- completionPercent
Double
- Percentage complete for the background copy when a resource is created via the CopyStart operation.
- dataAccessAuthMode
String | DataAccessAuthMode
- Additional authentication requirements when exporting or uploading to a disk or snapshot.
- diskAccessId
String
- ARM id of the DiskAccess resource for using private endpoints on disks.
- diskIOPSReadOnly
Double
- The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
- diskIOPSReadWrite
Double
- The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- diskMBpsReadOnly
Double
- The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- diskMBpsReadWrite
Double
- The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- diskName
String
- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
- diskSizeGB
Integer
- If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption
Encryption
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryptionSettingsCollection
EncryptionSettingsCollection
- Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extendedLocation
ExtendedLocation
- The extended location where the disk will be created. Extended location cannot be changed.
- hyperVGeneration
String | HyperVGeneration
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location
String
- The geo-location where the resource lives
- maxShares
Integer
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- networkAccessPolicy
String | NetworkAccessPolicy
- Policy for accessing the disk via network.
- optimizedForFrequentAttach
Boolean
- Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
- osType
OperatingSystemTypes
- The Operating System type.
- publicNetworkAccess
String | PublicNetworkAccess
- Policy for controlling export on the disk.
- purchasePlan
DiskPurchasePlan
- Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}
- securityProfile
DiskSecurityProfile
- Contains the security related information for the resource.
- sku
DiskSku
- The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- supportedCapabilities
SupportedCapabilities
- List of supported capabilities for the image from which the OS disk was created.
- supportsHibernation
Boolean
- Indicates the OS on a disk supports hibernation.
- tags
Map<String,String>
- Resource tags.
- tier
String
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- zones
List<String>
- The Logical zone list for Disk.
- creationData
CreationData
- Disk source information. CreationData information cannot be changed after the disk has been created.
- resourceGroupName
string
- The name of the resource group. The name is case insensitive.
- burstingEnabled
boolean
- Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
- completionPercent
number
- Percentage complete for the background copy when a resource is created via the CopyStart operation.
- dataAccessAuthMode
string | DataAccessAuthMode
- Additional authentication requirements when exporting or uploading to a disk or snapshot.
- diskAccessId
string
- ARM id of the DiskAccess resource for using private endpoints on disks.
- diskIOPSReadOnly
number
- The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
- diskIOPSReadWrite
number
- The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- diskMBpsReadOnly
number
- The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- diskMBpsReadWrite
number
- The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- diskName
string
- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
- diskSizeGB
number
- If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption
Encryption
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryptionSettingsCollection
EncryptionSettingsCollection
- Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extendedLocation
ExtendedLocation
- The extended location where the disk will be created. Extended location cannot be changed.
- hyperVGeneration
string | HyperVGeneration
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location
string
- The geo-location where the resource lives
- maxShares
number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- networkAccessPolicy
string | NetworkAccessPolicy
- Policy for accessing the disk via network.
- optimizedForFrequentAttach
boolean
- Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
- osType
OperatingSystemTypes
- The Operating System type.
- publicNetworkAccess
string | PublicNetworkAccess
- Policy for controlling export on the disk.
- purchasePlan
DiskPurchasePlan
- Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}
- securityProfile
DiskSecurityProfile
- Contains the security related information for the resource.
- sku
DiskSku
- The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- supportedCapabilities
SupportedCapabilities
- List of supported capabilities for the image from which the OS disk was created.
- supportsHibernation
boolean
- Indicates the OS on a disk supports hibernation.
- tags
{[key: string]: string}
- Resource tags.
- tier
string
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- zones
string[]
- The Logical zone list for Disk.
- creation_data
CreationDataArgs
- Disk source information. CreationData information cannot be changed after the disk has been created.
- resource_group_name
str
- The name of the resource group. The name is case insensitive.
- bursting_enabled
bool
- Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
- completion_percent
float
- Percentage complete for the background copy when a resource is created via the CopyStart operation.
- data_access_auth_mode
str | DataAccessAuthMode
- Additional authentication requirements when exporting or uploading to a disk or snapshot.
- disk_access_id
str
- ARM id of the DiskAccess resource for using private endpoints on disks.
- disk_iops_read_only
float
- The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
- disk_iops_read_write
float
- The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- disk_m_bps_read_only
float
- The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- disk_m_bps_read_write
float
- The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- disk_name
str
- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
- disk_size_gb
int
- If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption
EncryptionArgs
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryption_settings_collection
EncryptionSettingsCollectionArgs
- Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extended_location
ExtendedLocationArgs
- The extended location where the disk will be created. Extended location cannot be changed.
- hyper_v_generation
str | HyperVGeneration
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location
str
- The geo-location where the resource lives
- max_shares
int
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- network_access_policy
str | NetworkAccessPolicy
- Policy for accessing the disk via network.
- optimized_for_frequent_attach
bool
- Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
- os_type
OperatingSystemTypes
- The Operating System type.
- public_network_access
str | PublicNetworkAccess
- Policy for controlling export on the disk.
- purchase_plan
DiskPurchasePlanArgs
- Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}
- security_profile
DiskSecurityProfileArgs
- Contains the security related information for the resource.
- sku
DiskSkuArgs
- The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- supported_capabilities
SupportedCapabilitiesArgs
- List of supported capabilities for the image from which the OS disk was created.
- supports_hibernation
bool
- Indicates the OS on a disk supports hibernation.
- tags
Mapping[str, str]
- Resource tags.
- tier
str
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- zones
Sequence[str]
- The Logical zone list for Disk.
- creationData
Property Map
- Disk source information. CreationData information cannot be changed after the disk has been created.
- resourceGroupName
String
- The name of the resource group. The name is case insensitive.
- burstingEnabled
Boolean
- Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
- completionPercent
Number
- Percentage complete for the background copy when a resource is created via the CopyStart operation.
- dataAccessAuthMode
String | "AzureActiveDirectory" | "None"
- Additional authentication requirements when exporting or uploading to a disk or snapshot.
- diskAccessId
String
- ARM id of the DiskAccess resource for using private endpoints on disks.
- diskIOPSReadOnly
Number
- The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
- diskIOPSReadWrite
Number
- The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- diskMBpsReadOnly
Number
- The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- diskMBpsReadWrite
Number
- The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- diskName
String
- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
- diskSizeGB
Number
- If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption
Property Map
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryptionSettingsCollection
Property Map
- Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extendedLocation
Property Map
- The extended location where the disk will be created. Extended location cannot be changed.
- hyperVGeneration
String | "V1" | "V2"
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location
String
- The geo-location where the resource lives
- maxShares
Number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- networkAccessPolicy
String | "AllowAll" | "AllowPrivate" | "DenyAll"
- Policy for accessing the disk via network.
- optimizedForFrequentAttach
Boolean
- Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
- osType
"Windows" | "Linux"
- The Operating System type.
- publicNetworkAccess
String | "Enabled" | "Disabled"
- Policy for controlling export on the disk.
- purchasePlan
Property Map
- Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}
- securityProfile
Property Map
- Contains the security related information for the resource.
- sku
Property Map
- The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- supportedCapabilities
Property Map
- List of supported capabilities for the image from which the OS disk was created.
- supportsHibernation
Boolean
- Indicates the OS on a disk supports hibernation.
- tags
Map<String>
- Resource tags.
- tier
String
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- zones
List<String>
- The Logical zone list for Disk.
Outputs
All input properties are implicitly available as output properties. Additionally, the Disk resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- BurstingEnabledTime
string
- Latest time when bursting was last enabled on a disk.
- DiskSizeBytes
float64
- The size of the disk in bytes. This field is read only.
- DiskState
string
- The state of the disk.
- Id
string
- The provider-assigned unique ID for this managed resource.
- LastOwnershipUpdateTime
string
- The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.
- ManagedBy
string
- A relative URI containing the ID of the VM that has the disk attached.
- ManagedByExtended
[]string
- List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- Name
string
- The name of the resource
- PropertyUpdatesInProgress
PropertyUpdatesInProgressResponse
- Properties of the disk for which update is pending.
- ProvisioningState
string
- The disk provisioning state.
- ShareInfo
[]ShareInfoElementResponse
- Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- SystemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TimeCreated
string
- The time when the disk was created.
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- UniqueId
string
- Unique Guid identifying the resource.
- azure_api_version
string
- The Azure API version of the resource.
- bursting_enabled_time
string
- Latest time when bursting was last enabled on a disk.
- disk_size_bytes
number
- The size of the disk in bytes. This field is read only.
- disk_state
string
- The state of the disk.
- id
string
- The provider-assigned unique ID for this managed resource.
- last_ownership_update_time
string
- The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.
- managed_by
string
- A relative URI containing the ID of the VM that has the disk attached.
- managed_by_extended
list(string)
- List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- name
string
- The name of the resource
- property_updates_in_progress
object
- Properties of the disk for which update is pending.
- provisioning_state
string
- The disk provisioning state.
- share_info
list(object)
- Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- system_data
object
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- time_created
string
- The time when the disk was created.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique_id
string
- Unique Guid identifying the resource.
- azureApiVersion
String
- The Azure API version of the resource.
- burstingEnabledTime
String
- Latest time when bursting was last enabled on a disk.
- diskSizeBytes
Double
- The size of the disk in bytes. This field is read only.
- diskState
String
- The state of the disk.
- id
String
- The provider-assigned unique ID for this managed resource.
- lastOwnershipUpdateTime
String
- The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.
- managedBy
String
- A relative URI containing the ID of the VM that has the disk attached.
- managedByExtended
List<String>
- List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- name
String
- The name of the resource
- propertyUpdatesInProgress
PropertyUpdatesInProgressResponse
- Properties of the disk for which update is pending.
- provisioningState
String
- The disk provisioning state.
- shareInfo
List<ShareInfoElementResponse>
- Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- timeCreated
String
- The time when the disk was created.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uniqueId
String
- Unique Guid identifying the resource.
- azureApiVersion
string
- The Azure API version of the resource.
- burstingEnabledTime
string
- Latest time when bursting was last enabled on a disk.
- diskSizeBytes
number
- The size of the disk in bytes. This field is read only.
- diskState
string
- The state of the disk.
- id
string
- The provider-assigned unique ID for this managed resource.
- lastOwnershipUpdateTime
string
- The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.
- managedBy
string
- A relative URI containing the ID of the VM that has the disk attached.
- managedByExtended
string[]
- List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- name
string
- The name of the resource
- propertyUpdatesInProgress
PropertyUpdatesInProgressResponse
- Properties of the disk for which update is pending.
- provisioningState
string
- The disk provisioning state.
- shareInfo
ShareInfoElementResponse[]
- Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- timeCreated
string
- The time when the disk was created.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uniqueId
string
- Unique Guid identifying the resource.
- azure_api_version
str
- The Azure API version of the resource.
- bursting_enabled_time
str
- Latest time when bursting was last enabled on a disk.
- disk_size_bytes
float
- The size of the disk in bytes. This field is read only.
- disk_state
str
- The state of the disk.
- id
str
- The provider-assigned unique ID for this managed resource.
- last_ownership_update_time
str
- The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.
- managed_by
str
- A relative URI containing the ID of the VM that has the disk attached.
- managed_by_extended
Sequence[str]
- List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- name
str
- The name of the resource
- property_updates_in_progress
PropertyUpdatesInProgressResponse
- Properties of the disk for which update is pending.
- provisioning_state
str
- The disk provisioning state.
- share_info
Sequence[ShareInfoElementResponse]
- Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- system_data
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- time_created
str
- The time when the disk was created.
- type
str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique_id
str
- Unique Guid identifying the resource.
- azureApiVersion
String
- The Azure API version of the resource.
- burstingEnabledTime
String
- Latest time when bursting was last enabled on a disk.
- diskSizeBytes
Number
- The size of the disk in bytes. This field is read only.
- diskState
String
- The state of the disk.
- id
String
- The provider-assigned unique ID for this managed resource.
- lastOwnershipUpdateTime
String
- The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.
- managedBy
String
- A relative URI containing the ID of the VM that has the disk attached.
- managedByExtended
List<String>
- List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- name
String
- The name of the resource
- propertyUpdatesInProgress
Property Map
- Properties of the disk for which update is pending.
- provisioningState
String
- The disk provisioning state.
- shareInfo
List<Property Map>
- Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
- systemData
Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- timeCreated
String
- The time when the disk was created.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uniqueId
String
- Unique Guid identifying the resource.
Look up Existing Disk Resource
Get an existing Disk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static Disk get(String name, Output<String> id, CustomResourceOptions options)
resources: existingDisk: type: azure-native:compute:Disk get: id: ${id}
import {
to = azure-native_compute_disk.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
DiskState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
Architecture
CPU architecture supported by an OS disk.
| Name | Value |
|---|
| X64 | x64 |
| Arm64 | Arm64 |
| Name | Value |
|---|
| ArchitectureX64 | x64 |
| ArchitectureArm64 | Arm64 |
| Name | Value |
|---|
| X64 | x64 |
| Arm64 | Arm64 |
| Name | Value |
|---|
| X64 | x64 |
| Arm64 | Arm64 |
| Name | Value |
|---|
| X64 | x64 |
| ARM64 | Arm64 |
CreationData, CreationDataArgs
Data used when creating a disk.
- CreateOption
string | DiskCreateOption
- This enumerates the possible sources of a disk's creation.
- ElasticSanResourceId
string
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- GalleryImageReference
ImageDiskReference
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- ImageReference
ImageDiskReference
- Disk source information for PIR or user images.
- LogicalSectorSize
int
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- PerformancePlus
bool
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- ProvisionedBandwidthCopySpeed
string | ProvisionedBandwidthCopyOption
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- SecurityDataUri
string
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- SourceResourceId
string
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- SourceUri
string
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- StorageAccountId
string
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- UploadSizeBytes
float64
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- createOption
String | DiskCreateOption
- This enumerates the possible sources of a disk's creation.
- elasticSanResourceId
String
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- galleryImageReference
ImageDiskReference
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- imageReference
ImageDiskReference
- Disk source information for PIR or user images.
- logicalSectorSize
Integer
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performancePlus
Boolean
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisionedBandwidthCopySpeed
String | ProvisionedBandwidthCopyOption
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- securityDataUri
String
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- sourceResourceId
String
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- sourceUri
String
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storageAccountId
String
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- uploadSizeBytes
Double
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- createOption
string | DiskCreateOption
- This enumerates the possible sources of a disk's creation.
- elasticSanResourceId
string
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- galleryImageReference
ImageDiskReference
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- imageReference
ImageDiskReference
- Disk source information for PIR or user images.
- logicalSectorSize
number
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performancePlus
boolean
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisionedBandwidthCopySpeed
string | ProvisionedBandwidthCopyOption
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- securityDataUri
string
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- sourceResourceId
string
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- sourceUri
string
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storageAccountId
string
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- uploadSizeBytes
number
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create_option
str | DiskCreateOption
- This enumerates the possible sources of a disk's creation.
- elastic_san_resource_id
str
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- gallery_image_reference
ImageDiskReference
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- image_reference
ImageDiskReference
- Disk source information for PIR or user images.
- logical_sector_size
int
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performance_plus
bool
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisioned_bandwidth_copy_speed
str | ProvisionedBandwidthCopyOption
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- security_data_uri
str
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- source_resource_id
str
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source_uri
str
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage_account_id
str
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload_size_bytes
float
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
CreationDataResponse
Data used when creating a disk.
- CreateOption
string
- This enumerates the possible sources of a disk's creation.
- SourceUniqueId
string
- If this field is set, this is the unique id identifying the source of this resource.
- ElasticSanResourceId
string
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- GalleryImageReference
Pulumi.AzureNative.Compute.Inputs.ImageDiskReferenceResponse
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- ImageReference
Pulumi.AzureNative.Compute.Inputs.ImageDiskReferenceResponse
- Disk source information for PIR or user images.
- LogicalSectorSize
int
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- PerformancePlus
bool
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- ProvisionedBandwidthCopySpeed
string
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- SecurityDataUri
string
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- SourceResourceId
string
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- SourceUri
string
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- StorageAccountId
string
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- UploadSizeBytes
double
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- CreateOption
string
- This enumerates the possible sources of a disk's creation.
- SourceUniqueId
string
- If this field is set, this is the unique id identifying the source of this resource.
- ElasticSanResourceId
string
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- GalleryImageReference
ImageDiskReferenceResponse
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- ImageReference
ImageDiskReferenceResponse
- Disk source information for PIR or user images.
- LogicalSectorSize
int
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- PerformancePlus
bool
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- ProvisionedBandwidthCopySpeed
string
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- SecurityDataUri
string
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- SourceResourceId
string
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- SourceUri
string
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- StorageAccountId
string
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- UploadSizeBytes
float64
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create_option
string
- This enumerates the possible sources of a disk's creation.
- source_unique_id
string
- If this field is set, this is the unique id identifying the source of this resource.
- elastic_san_resource_id
string
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- gallery_image_reference
object
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- image_reference
object
- Disk source information for PIR or user images.
- logical_sector_size
number
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performance_plus
bool
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisioned_bandwidth_copy_speed
string
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- security_data_uri
string
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- source_resource_id
string
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source_uri
string
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage_account_id
string
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload_size_bytes
number
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- createOption
String
- This enumerates the possible sources of a disk's creation.
- sourceUniqueId
String
- If this field is set, this is the unique id identifying the source of this resource.
- elasticSanResourceId
String
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- galleryImageReference
ImageDiskReferenceResponse
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- imageReference
ImageDiskReferenceResponse
- Disk source information for PIR or user images.
- logicalSectorSize
Integer
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performancePlus
Boolean
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisionedBandwidthCopySpeed
String
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- securityDataUri
String
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- sourceResourceId
String
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- sourceUri
String
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storageAccountId
String
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- uploadSizeBytes
Double
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- createOption
string
- This enumerates the possible sources of a disk's creation.
- sourceUniqueId
string
- If this field is set, this is the unique id identifying the source of this resource.
- elasticSanResourceId
string
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- galleryImageReference
ImageDiskReferenceResponse
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- imageReference
ImageDiskReferenceResponse
- Disk source information for PIR or user images.
- logicalSectorSize
number
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performancePlus
boolean
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisionedBandwidthCopySpeed
string
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- securityDataUri
string
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- sourceResourceId
string
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- sourceUri
string
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storageAccountId
string
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- uploadSizeBytes
number
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create_option
str
- This enumerates the possible sources of a disk's creation.
- source_unique_id
str
- If this field is set, this is the unique id identifying the source of this resource.
- elastic_san_resource_id
str
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- gallery_image_reference
ImageDiskReferenceResponse
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- image_reference
ImageDiskReferenceResponse
- Disk source information for PIR or user images.
- logical_sector_size
int
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performance_plus
bool
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisioned_bandwidth_copy_speed
str
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- security_data_uri
str
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- source_resource_id
str
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source_uri
str
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage_account_id
str
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload_size_bytes
float
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- createOption
String
- This enumerates the possible sources of a disk's creation.
- sourceUniqueId
String
- If this field is set, this is the unique id identifying the source of this resource.
- elasticSanResourceId
String
- Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
- galleryImageReference
Property Map
- Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- imageReference
Property Map
- Disk source information for PIR or user images.
- logicalSectorSize
Number
- Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- performancePlus
Boolean
- Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
- provisionedBandwidthCopySpeed
String
- If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
- securityDataUri
String
- If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
- sourceResourceId
String
- If createOption is Copy, this is the ARM id of the source snapshot or disk.
- sourceUri
String
- If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storageAccountId
String
- Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- uploadSizeBytes
Number
- If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
DataAccessAuthMode
Additional authentication requirements when exporting or uploading to a disk or snapshot.
| Name | Value | Description |
|---|
| AzureActiveDirectory | AzureActiveDirectory | When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. |
| None | None | No additional authentication would be performed when accessing export/upload URL. |
| Name | Value | Description |
|---|
| DataAccessAuthModeAzureActiveDirectory | AzureActiveDirectory | When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. |
| DataAccessAuthModeNone | None | No additional authentication would be performed when accessing export/upload URL. |
| Value | Description |
|---|
AzureActiveDirectory | When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. |
None | No additional authentication would be performed when accessing export/upload URL. |
| Name | Value | Description |
|---|
| AzureActiveDirectory | AzureActiveDirectory | When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. |
| None | None | No additional authentication would be performed when accessing export/upload URL. |
| Name | Value | Description |
|---|
| AzureActiveDirectory | AzureActiveDirectory | When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. |
| None | None | No additional authentication would be performed when accessing export/upload URL. |
| Name | Value | Description |
|---|
| AZURE_ACTIVE_DIRECTORY | AzureActiveDirectory | When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. |
| NONE | None | No additional authentication would be performed when accessing export/upload URL. |
| Value | Description |
|---|
AzureActiveDirectory | When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. |
None | No additional authentication would be performed when accessing export/upload URL. |
DiskCreateOption
This enumerates the possible sources of a disk's creation.
| Name | Value | Description |
|---|
| Empty | Empty | Create an empty data disk of a size given by diskSizeGB. |
| Attach | Attach | Disk will be attached to a VM. |
| FromImage | FromImage | Create a new disk from a platform image specified by the given imageReference or galleryImageReference. |
| Import | Import | Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. |
| Copy | Copy | Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. |
| Restore | Restore | Create a new disk by copying from a backup recovery point. |
| Upload | Upload | Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. |
| CopyStart | CopyStart | Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. |
| ImportSecure | ImportSecure | Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| UploadPreparedSecure | UploadPreparedSecure | Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| CopyFromSanSnapshot | CopyFromSanSnapshot | Create a new disk by exporting from elastic san volume snapshot |
| Name | Value | Description |
|---|
| DiskCreateOptionEmpty | Empty | Create an empty data disk of a size given by diskSizeGB. |
| DiskCreateOptionAttach | Attach | Disk will be attached to a VM. |
| DiskCreateOptionFromImage | FromImage | Create a new disk from a platform image specified by the given imageReference or galleryImageReference. |
| DiskCreateOptionImport | Import | Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. |
| DiskCreateOptionCopy | Copy | Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. |
| DiskCreateOptionRestore | Restore | Create a new disk by copying from a backup recovery point. |
| DiskCreateOptionUpload | Upload | Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. |
| DiskCreateOptionCopyStart | CopyStart | Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. |
| DiskCreateOptionImportSecure | ImportSecure | Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| DiskCreateOptionUploadPreparedSecure | UploadPreparedSecure | Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| DiskCreateOptionCopyFromSanSnapshot | CopyFromSanSnapshot | Create a new disk by exporting from elastic san volume snapshot |
| Value | Description |
|---|
Empty | Create an empty data disk of a size given by diskSizeGB. |
Attach | Disk will be attached to a VM. |
FromImage | Create a new disk from a platform image specified by the given imageReference or galleryImageReference. |
Import | Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. |
Copy | Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. |
Restore | Create a new disk by copying from a backup recovery point. |
Upload | Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. |
CopyStart | Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. |
ImportSecure | Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
UploadPreparedSecure | Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
CopyFromSanSnapshot | Create a new disk by exporting from elastic san volume snapshot |
| Name | Value | Description |
|---|
| Empty | Empty | Create an empty data disk of a size given by diskSizeGB. |
| Attach | Attach | Disk will be attached to a VM. |
| FromImage | FromImage | Create a new disk from a platform image specified by the given imageReference or galleryImageReference. |
| Import | Import | Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. |
| Copy | Copy | Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. |
| Restore | Restore | Create a new disk by copying from a backup recovery point. |
| Upload | Upload | Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. |
| CopyStart | CopyStart | Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. |
| ImportSecure | ImportSecure | Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| UploadPreparedSecure | UploadPreparedSecure | Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| CopyFromSanSnapshot | CopyFromSanSnapshot | Create a new disk by exporting from elastic san volume snapshot |
| Name | Value | Description |
|---|
| Empty | Empty | Create an empty data disk of a size given by diskSizeGB. |
| Attach | Attach | Disk will be attached to a VM. |
| FromImage | FromImage | Create a new disk from a platform image specified by the given imageReference or galleryImageReference. |
| Import | Import | Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. |
| Copy | Copy | Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. |
| Restore | Restore | Create a new disk by copying from a backup recovery point. |
| Upload | Upload | Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. |
| CopyStart | CopyStart | Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. |
| ImportSecure | ImportSecure | Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| UploadPreparedSecure | UploadPreparedSecure | Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| CopyFromSanSnapshot | CopyFromSanSnapshot | Create a new disk by exporting from elastic san volume snapshot |
| Name | Value | Description |
|---|
| EMPTY | Empty | Create an empty data disk of a size given by diskSizeGB. |
| ATTACH | Attach | Disk will be attached to a VM. |
| FROM_IMAGE | FromImage | Create a new disk from a platform image specified by the given imageReference or galleryImageReference. |
| IMPORT_ | Import | Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. |
| COPY | Copy | Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. |
| RESTORE | Restore | Create a new disk by copying from a backup recovery point. |
| UPLOAD | Upload | Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. |
| COPY_START | CopyStart | Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. |
| IMPORT_SECURE | ImportSecure | Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| UPLOAD_PREPARED_SECURE | UploadPreparedSecure | Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
| COPY_FROM_SAN_SNAPSHOT | CopyFromSanSnapshot | Create a new disk by exporting from elastic san volume snapshot |
| Value | Description |
|---|
Empty | Create an empty data disk of a size given by diskSizeGB. |
Attach | Disk will be attached to a VM. |
FromImage | Create a new disk from a platform image specified by the given imageReference or galleryImageReference. |
Import | Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. |
Copy | Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. |
Restore | Create a new disk by copying from a backup recovery point. |
Upload | Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. |
CopyStart | Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. |
ImportSecure | Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
UploadPreparedSecure | Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. |
CopyFromSanSnapshot | Create a new disk by exporting from elastic san volume snapshot |
DiskPurchasePlan, DiskPurchasePlanArgs
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
- Name
string
- The plan ID.
- Product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher
string
- The publisher ID.
- PromotionCode
string
- The Offer Promotion Code.
- Name
string
- The plan ID.
- Product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher
string
- The publisher ID.
- PromotionCode
string
- The Offer Promotion Code.
- name
string
- The plan ID.
- product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
string
- The publisher ID.
- promotion_code
string
- The Offer Promotion Code.
- name
String
- The plan ID.
- product
String
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
String
- The publisher ID.
- promotionCode
String
- The Offer Promotion Code.
- name
string
- The plan ID.
- product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
string
- The publisher ID.
- promotionCode
string
- The Offer Promotion Code.
- name
str
- The plan ID.
- product
str
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
str
- The publisher ID.
- promotion_code
str
- The Offer Promotion Code.
- name
String
- The plan ID.
- product
String
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
String
- The publisher ID.
- promotionCode
String
- The Offer Promotion Code.
DiskPurchasePlanResponse
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
- Name
string
- The plan ID.
- Product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher
string
- The publisher ID.
- PromotionCode
string
- The Offer Promotion Code.
- Name
string
- The plan ID.
- Product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher
string
- The publisher ID.
- PromotionCode
string
- The Offer Promotion Code.
- name
string
- The plan ID.
- product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
string
- The publisher ID.
- promotion_code
string
- The Offer Promotion Code.
- name
String
- The plan ID.
- product
String
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
String
- The publisher ID.
- promotionCode
String
- The Offer Promotion Code.
- name
string
- The plan ID.
- product
string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
string
- The publisher ID.
- promotionCode
string
- The Offer Promotion Code.
- name
str
- The plan ID.
- product
str
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
str
- The publisher ID.
- promotion_code
str
- The Offer Promotion Code.
- name
String
- The plan ID.
- product
String
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher
String
- The publisher ID.
- promotionCode
String
- The Offer Promotion Code.
DiskSecurityProfile, DiskSecurityProfileArgs
Contains the security related information for the resource.
DiskSecurityProfileResponse
Contains the security related information for the resource.
- SecureVMDiskEncryptionSetId
string
- ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
- SecurityType
string
- Specifies the SecurityType of the VM. Applicable for OS disks only.
- SecureVMDiskEncryptionSetId
string
- ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
- SecurityType
string
- Specifies the SecurityType of the VM. Applicable for OS disks only.
- secure_vm_disk_encryption_set_id
string
- ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
- security_type
string
- Specifies the SecurityType of the VM. Applicable for OS disks only.
- secureVMDiskEncryptionSetId
String
- ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
- securityType
String
- Specifies the SecurityType of the VM. Applicable for OS disks only.
- secureVMDiskEncryptionSetId
string
- ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
- securityType
string
- Specifies the SecurityType of the VM. Applicable for OS disks only.
- secure_vm_disk_encryption_set_id
str
- ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
- security_type
str
- Specifies the SecurityType of the VM. Applicable for OS disks only.
- secureVMDiskEncryptionSetId
String
- ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
- securityType
String
- Specifies the SecurityType of the VM. Applicable for OS disks only.
DiskSecurityTypes
Specifies the SecurityType of the VM. Applicable for OS disks only.
| Name | Value | Description |
|---|
| TrustedLaunch | TrustedLaunch | Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) |
| ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | Indicates Confidential VM disk with only VM guest state encrypted |
| ConfidentialVM_DiskEncryptedWithPlatformKey | ConfidentialVM_DiskEncryptedWithPlatformKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key |
| ConfidentialVM_DiskEncryptedWithCustomerKey | ConfidentialVM_DiskEncryptedWithCustomerKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key |
| ConfidentialVM_NonPersistedTPM | ConfidentialVM_NonPersistedTPM | Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. |
| Name | Value | Description |
|---|
| DiskSecurityTypesTrustedLaunch | TrustedLaunch | Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) |
| DiskSecurityTypes_ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | Indicates Confidential VM disk with only VM guest state encrypted |
| DiskSecurityTypes_ConfidentialVM_DiskEncryptedWithPlatformKey | ConfidentialVM_DiskEncryptedWithPlatformKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key |
| DiskSecurityTypes_ConfidentialVM_DiskEncryptedWithCustomerKey | ConfidentialVM_DiskEncryptedWithCustomerKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key |
| DiskSecurityTypes_ConfidentialVM_NonPersistedTPM | ConfidentialVM_NonPersistedTPM | Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. |
| Value | Description |
|---|
TrustedLaunch | Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) |
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | Indicates Confidential VM disk with only VM guest state encrypted |
ConfidentialVM_DiskEncryptedWithPlatformKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key |
ConfidentialVM_DiskEncryptedWithCustomerKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key |
ConfidentialVM_NonPersistedTPM | Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. |
| Name | Value | Description |
|---|
| TrustedLaunch | TrustedLaunch | Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) |
| ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | Indicates Confidential VM disk with only VM guest state encrypted |
| ConfidentialVM_DiskEncryptedWithPlatformKey | ConfidentialVM_DiskEncryptedWithPlatformKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key |
| ConfidentialVM_DiskEncryptedWithCustomerKey | ConfidentialVM_DiskEncryptedWithCustomerKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key |
| ConfidentialVM_NonPersistedTPM | ConfidentialVM_NonPersistedTPM | Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. |
| Name | Value | Description |
|---|
| TrustedLaunch | TrustedLaunch | Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) |
| ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | Indicates Confidential VM disk with only VM guest state encrypted |
| ConfidentialVM_DiskEncryptedWithPlatformKey | ConfidentialVM_DiskEncryptedWithPlatformKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key |
| ConfidentialVM_DiskEncryptedWithCustomerKey | ConfidentialVM_DiskEncryptedWithCustomerKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key |
| ConfidentialVM_NonPersistedTPM | ConfidentialVM_NonPersistedTPM | Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. |
| Name | Value | Description |
|---|
| TRUSTED_LAUNCH | TrustedLaunch | Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) |
| CONFIDENTIAL_V_M_VM_GUEST_STATE_ONLY_ENCRYPTED_WITH_PLATFORM_KEY | ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | Indicates Confidential VM disk with only VM guest state encrypted |
| CONFIDENTIAL_V_M_DISK_ENCRYPTED_WITH_PLATFORM_KEY | ConfidentialVM_DiskEncryptedWithPlatformKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key |
| CONFIDENTIAL_V_M_DISK_ENCRYPTED_WITH_CUSTOMER_KEY | ConfidentialVM_DiskEncryptedWithCustomerKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key |
| CONFIDENTIAL_V_M_NON_PERSISTED_TPM | ConfidentialVM_NonPersistedTPM | Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. |
| Value | Description |
|---|
TrustedLaunch | Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) |
ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey | Indicates Confidential VM disk with only VM guest state encrypted |
ConfidentialVM_DiskEncryptedWithPlatformKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key |
ConfidentialVM_DiskEncryptedWithCustomerKey | Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key |
ConfidentialVM_NonPersistedTPM | Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. |
DiskSku, DiskSkuArgs
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
DiskSkuResponse
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
- Tier
string
- The sku tier.
- Name
string
- The sku name.
- Tier
string
- The sku tier.
- Name
string
- The sku name.
- tier
string
- The sku tier.
- name
string
- The sku name.
- tier
String
- The sku tier.
- name
String
- The sku name.
- tier
string
- The sku tier.
- name
string
- The sku name.
- tier
str
- The sku tier.
- name
str
- The sku name.
- tier
String
- The sku tier.
- name
String
- The sku name.
DiskStorageAccountTypes
The sku name.
| Name | Value | Description |
|---|
| Standard_LRS | Standard_LRS | Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. |
| Premium_LRS | Premium_LRS | Premium SSD locally redundant storage. Best for production and performance sensitive workloads. |
| StandardSSD_LRS | StandardSSD_LRS | Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. |
| UltraSSD_LRS | UltraSSD_LRS | Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. |
| Premium_ZRS | Premium_ZRS | Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. |
| StandardSSD_ZRS | StandardSSD_ZRS | Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. |
| PremiumV2_LRS | PremiumV2_LRS | Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. |
| Name | Value | Description |
|---|
| DiskStorageAccountTypes_Standard_LRS | Standard_LRS | Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. |
| DiskStorageAccountTypes_Premium_LRS | Premium_LRS | Premium SSD locally redundant storage. Best for production and performance sensitive workloads. |
| DiskStorageAccountTypes_StandardSSD_LRS | StandardSSD_LRS | Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. |
| DiskStorageAccountTypes_UltraSSD_LRS | UltraSSD_LRS | Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. |
| DiskStorageAccountTypes_Premium_ZRS | Premium_ZRS | Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. |
| DiskStorageAccountTypes_StandardSSD_ZRS | StandardSSD_ZRS | Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. |
| DiskStorageAccountTypes_PremiumV2_LRS | PremiumV2_LRS | Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. |
| Value | Description |
|---|
Standard_LRS | Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. |
Premium_LRS | Premium SSD locally redundant storage. Best for production and performance sensitive workloads. |
StandardSSD_LRS | Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. |
UltraSSD_LRS | Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. |
Premium_ZRS | Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. |
StandardSSD_ZRS | Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. |
PremiumV2_LRS | Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. |
| Name | Value | Description |
|---|
| Standard_LRS | Standard_LRS | Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. |
| Premium_LRS | Premium_LRS | Premium SSD locally redundant storage. Best for production and performance sensitive workloads. |
| StandardSSD_LRS | StandardSSD_LRS | Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. |
| UltraSSD_LRS | UltraSSD_LRS | Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. |
| Premium_ZRS | Premium_ZRS | Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. |
| StandardSSD_ZRS | StandardSSD_ZRS | Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. |
| PremiumV2_LRS | PremiumV2_LRS | Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. |
| Name | Value | Description |
|---|
| Standard_LRS | Standard_LRS | Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. |
| Premium_LRS | Premium_LRS | Premium SSD locally redundant storage. Best for production and performance sensitive workloads. |
| StandardSSD_LRS | StandardSSD_LRS | Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. |
| UltraSSD_LRS | UltraSSD_LRS | Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. |
| Premium_ZRS | Premium_ZRS | Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. |
| StandardSSD_ZRS | StandardSSD_ZRS | Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. |
| PremiumV2_LRS | PremiumV2_LRS | Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. |
| Name | Value | Description |
|---|
| STANDARD_LRS | Standard_LRS | Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. |
| PREMIUM_LRS | Premium_LRS | Premium SSD locally redundant storage. Best for production and performance sensitive workloads. |
| STANDARD_SS_D_LRS | StandardSSD_LRS | Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. |
| ULTRA_SS_D_LRS | UltraSSD_LRS | Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. |
| PREMIUM_ZRS | Premium_ZRS | Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. |
| STANDARD_SS_D_ZRS | StandardSSD_ZRS | Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. |
| PREMIUM_V2_LRS | PremiumV2_LRS | Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. |
| Value | Description |
|---|
Standard_LRS | Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. |
Premium_LRS | Premium SSD locally redundant storage. Best for production and performance sensitive workloads. |
StandardSSD_LRS | Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. |
UltraSSD_LRS | Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. |
Premium_ZRS | Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. |
StandardSSD_ZRS | Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. |
PremiumV2_LRS | Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. |
Encryption, EncryptionArgs
Encryption at rest settings for disk or snapshot
EncryptionResponse
Encryption at rest settings for disk or snapshot
- DiskEncryptionSetId
string
- ResourceId of the disk encryption set to use for enabling encryption at rest.
- Type
string
- The type of key used to encrypt the data of the disk.
- DiskEncryptionSetId
string
- ResourceId of the disk encryption set to use for enabling encryption at rest.
- Type
string
- The type of key used to encrypt the data of the disk.
- disk_encryption_set_id
string
- ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
string
- The type of key used to encrypt the data of the disk.
- diskEncryptionSetId
String
- ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
String
- The type of key used to encrypt the data of the disk.
- diskEncryptionSetId
string
- ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
string
- The type of key used to encrypt the data of the disk.
- disk_encryption_set_id
str
- ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
str
- The type of key used to encrypt the data of the disk.
- diskEncryptionSetId
String
- ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
String
- The type of key used to encrypt the data of the disk.
EncryptionSettingsCollection, EncryptionSettingsCollectionArgs
Encryption settings for disk or snapshot
- Enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- EncryptionSettings
List<Pulumi.AzureNative.Compute.Inputs.EncryptionSettingsElement>
- A collection of encryption settings, one for each disk volume.
- EncryptionSettingsVersion
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- Enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- EncryptionSettings
[]EncryptionSettingsElement
- A collection of encryption settings, one for each disk volume.
- EncryptionSettingsVersion
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryption_settings
list(object)
- A collection of encryption settings, one for each disk volume.
- encryption_settings_version
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
Boolean
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryptionSettings
List<EncryptionSettingsElement>
- A collection of encryption settings, one for each disk volume.
- encryptionSettingsVersion
String
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
boolean
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryptionSettings
EncryptionSettingsElement[]
- A collection of encryption settings, one for each disk volume.
- encryptionSettingsVersion
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryption_settings
Sequence[EncryptionSettingsElement]
- A collection of encryption settings, one for each disk volume.
- encryption_settings_version
str
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
Boolean
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryptionSettings
List<Property Map>
- A collection of encryption settings, one for each disk volume.
- encryptionSettingsVersion
String
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
EncryptionSettingsCollectionResponse
Encryption settings for disk or snapshot
- Enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- EncryptionSettings
List<Pulumi.AzureNative.Compute.Inputs.EncryptionSettingsElementResponse>
- A collection of encryption settings, one for each disk volume.
- EncryptionSettingsVersion
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- Enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- EncryptionSettings
[]EncryptionSettingsElementResponse
- A collection of encryption settings, one for each disk volume.
- EncryptionSettingsVersion
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryption_settings
list(object)
- A collection of encryption settings, one for each disk volume.
- encryption_settings_version
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
Boolean
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryptionSettings
List<EncryptionSettingsElementResponse>
- A collection of encryption settings, one for each disk volume.
- encryptionSettingsVersion
String
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
boolean
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryptionSettings
EncryptionSettingsElementResponse[]
- A collection of encryption settings, one for each disk volume.
- encryptionSettingsVersion
string
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryption_settings
Sequence[EncryptionSettingsElementResponse]
- A collection of encryption settings, one for each disk volume.
- encryption_settings_version
str
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
- enabled
Boolean
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- encryptionSettings
List<Property Map>
- A collection of encryption settings, one for each disk volume.
- encryptionSettingsVersion
String
- Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
EncryptionSettingsElement, EncryptionSettingsElementArgs
Encryption settings for one disk volume.
- disk_encryption_key
object
- Key Vault Secret Url and vault id of the disk encryption key
- key_encryption_key
object
- Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.
EncryptionSettingsElementResponse
Encryption settings for one disk volume.
- disk_encryption_key
object
- Key Vault Secret Url and vault id of the disk encryption key
- key_encryption_key
object
- Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.
EncryptionType
The type of key used to encrypt the data of the disk.
| Name | Value | Description |
|---|
| EncryptionAtRestWithPlatformKey | EncryptionAtRestWithPlatformKey | Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets. |
| EncryptionAtRestWithCustomerKey | EncryptionAtRestWithCustomerKey | Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. |
| EncryptionAtRestWithPlatformAndCustomerKeys | EncryptionAtRestWithPlatformAndCustomerKeys | Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. |
| Name | Value | Description |
|---|
| EncryptionTypeEncryptionAtRestWithPlatformKey | EncryptionAtRestWithPlatformKey | Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets. |
| EncryptionTypeEncryptionAtRestWithCustomerKey | EncryptionAtRestWithCustomerKey | Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. |
| EncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys | EncryptionAtRestWithPlatformAndCustomerKeys | Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. |
| Value | Description |
|---|
EncryptionAtRestWithPlatformKey | Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets. |
EncryptionAtRestWithCustomerKey | Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. |
EncryptionAtRestWithPlatformAndCustomerKeys | Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. |
| Name | Value | Description |
|---|
| EncryptionAtRestWithPlatformKey | EncryptionAtRestWithPlatformKey | Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets. |
| EncryptionAtRestWithCustomerKey | EncryptionAtRestWithCustomerKey | Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. |
| EncryptionAtRestWithPlatformAndCustomerKeys | EncryptionAtRestWithPlatformAndCustomerKeys | Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. |
| Name | Value | Description |
|---|
| EncryptionAtRestWithPlatformKey | EncryptionAtRestWithPlatformKey | Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets. |
| EncryptionAtRestWithCustomerKey | EncryptionAtRestWithCustomerKey | Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. |
| EncryptionAtRestWithPlatformAndCustomerKeys | EncryptionAtRestWithPlatformAndCustomerKeys | Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. |
| Name | Value | Description |
|---|
| ENCRYPTION_AT_REST_WITH_PLATFORM_KEY | EncryptionAtRestWithPlatformKey | Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets. |
| ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY | EncryptionAtRestWithCustomerKey | Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. |
| ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS | EncryptionAtRestWithPlatformAndCustomerKeys | Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. |
| Value | Description |
|---|
EncryptionAtRestWithPlatformKey | Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets. |
EncryptionAtRestWithCustomerKey | Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. |
EncryptionAtRestWithPlatformAndCustomerKeys | Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. |
ExtendedLocation, ExtendedLocationArgs
The complex type of the extended location.
- name
string
- The name of the extended location.
- type
string | "EdgeZone"
- The type of the extended location.
- name
String
- The name of the extended location.
- type
String | "EdgeZone"
- The type of the extended location.
ExtendedLocationResponse
The complex type of the extended location.
- Name
string
- The name of the extended location.
- Type
string
- The type of the extended location.
- Name
string
- The name of the extended location.
- Type
string
- The type of the extended location.
- name
string
- The name of the extended location.
- type
string
- The type of the extended location.
- name
String
- The name of the extended location.
- type
String
- The type of the extended location.
- name
string
- The name of the extended location.
- type
string
- The type of the extended location.
- name
str
- The name of the extended location.
- type
str
- The type of the extended location.
- name
String
- The name of the extended location.
- type
String
- The type of the extended location.
ExtendedLocationTypes
The type of the extended location.
| Name | Value |
|---|
| EdgeZone | EdgeZone |
| Name | Value |
|---|
| ExtendedLocationTypesEdgeZone | EdgeZone |
| Name | Value |
|---|
| EdgeZone | EdgeZone |
| Name | Value |
|---|
| EdgeZone | EdgeZone |
| Name | Value |
|---|
| EDGE_ZONE | EdgeZone |
HyperVGeneration
The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
| Name | Value |
|---|
| HyperVGenerationV1 | V1 |
| HyperVGenerationV2 | V2 |
ImageDiskReference, ImageDiskReferenceArgs
The source image used for creating the disk.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- Id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- Lun
int
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- SharedGalleryImageId
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- Id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- Lun
int
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- SharedGalleryImageId
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
number
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- shared_gallery_image_id
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
String
- A relative uri containing a community Azure Compute Gallery image reference.
- id
String
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
Integer
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- sharedGalleryImageId
String
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
number
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- sharedGalleryImageId
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
str
- A relative uri containing a community Azure Compute Gallery image reference.
- id
str
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
int
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- shared_gallery_image_id
str
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
String
- A relative uri containing a community Azure Compute Gallery image reference.
- id
String
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
Number
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- sharedGalleryImageId
String
- A relative uri containing a direct shared Azure Compute Gallery image reference.
ImageDiskReferenceResponse
The source image used for creating the disk.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- Id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- Lun
int
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- SharedGalleryImageId
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- Id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- Lun
int
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- SharedGalleryImageId
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
number
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- shared_gallery_image_id
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
String
- A relative uri containing a community Azure Compute Gallery image reference.
- id
String
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
Integer
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- sharedGalleryImageId
String
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
string
- A relative uri containing a community Azure Compute Gallery image reference.
- id
string
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
number
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- sharedGalleryImageId
string
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
str
- A relative uri containing a community Azure Compute Gallery image reference.
- id
str
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
int
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- shared_gallery_image_id
str
- A relative uri containing a direct shared Azure Compute Gallery image reference.
-
String
- A relative uri containing a community Azure Compute Gallery image reference.
- id
String
- A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
- lun
Number
- If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
- sharedGalleryImageId
String
- A relative uri containing a direct shared Azure Compute Gallery image reference.
KeyVaultAndKeyReference, KeyVaultAndKeyReferenceArgs
Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey
- key_url
string
- Url pointing to a key or secret in KeyVault
- source_vault
object
- Resource id of the KeyVault containing the key or secret
KeyVaultAndKeyReferenceResponse
Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey
- key_url
string
- Url pointing to a key or secret in KeyVault
- source_vault
object
- Resource id of the KeyVault containing the key or secret
KeyVaultAndSecretReference, KeyVaultAndSecretReferenceArgs
Key Vault Secret Url and vault id of the encryption key
KeyVaultAndSecretReferenceResponse
Key Vault Secret Url and vault id of the encryption key
NetworkAccessPolicy
Policy for accessing the disk via network.
| Name | Value | Description |
|---|
| AllowAll | AllowAll | The disk can be exported or uploaded to from any network. |
| AllowPrivate | AllowPrivate | The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. |
| DenyAll | DenyAll | The disk cannot be exported. |
| Name | Value | Description |
|---|
| NetworkAccessPolicyAllowAll | AllowAll | The disk can be exported or uploaded to from any network. |
| NetworkAccessPolicyAllowPrivate | AllowPrivate | The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. |
| NetworkAccessPolicyDenyAll | DenyAll | The disk cannot be exported. |
| Value | Description |
|---|
AllowAll | The disk can be exported or uploaded to from any network. |
AllowPrivate | The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. |
DenyAll | The disk cannot be exported. |
| Name | Value | Description |
|---|
| AllowAll | AllowAll | The disk can be exported or uploaded to from any network. |
| AllowPrivate | AllowPrivate | The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. |
| DenyAll | DenyAll | The disk cannot be exported. |
| Name | Value | Description |
|---|
| AllowAll | AllowAll | The disk can be exported or uploaded to from any network. |
| AllowPrivate | AllowPrivate | The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. |
| DenyAll | DenyAll | The disk cannot be exported. |
| Name | Value | Description |
|---|
| ALLOW_ALL | AllowAll | The disk can be exported or uploaded to from any network. |
| ALLOW_PRIVATE | AllowPrivate | The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. |
| DENY_ALL | DenyAll | The disk cannot be exported. |
| Value | Description |
|---|
AllowAll | The disk can be exported or uploaded to from any network. |
AllowPrivate | The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. |
DenyAll | The disk cannot be exported. |
OperatingSystemTypes
This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: Windows, Linux.
| Name | Value |
|---|
| Windows | Windows |
| Linux | Linux |
| Name | Value |
|---|
| OperatingSystemTypesWindows | Windows |
| OperatingSystemTypesLinux | Linux |
| Name | Value |
|---|
| Windows | Windows |
| Linux | Linux |
| Name | Value |
|---|
| Windows | Windows |
| Linux | Linux |
| Name | Value |
|---|
| WINDOWS | Windows |
| LINUX | Linux |
PropertyUpdatesInProgressResponse
Properties of the disk for which update is pending.
- TargetTier
string
- The target performance tier of the disk if a tier change operation is in progress.
- TargetTier
string
- The target performance tier of the disk if a tier change operation is in progress.
- target_tier
string
- The target performance tier of the disk if a tier change operation is in progress.
- targetTier
String
- The target performance tier of the disk if a tier change operation is in progress.
- targetTier
string
- The target performance tier of the disk if a tier change operation is in progress.
- target_tier
str
- The target performance tier of the disk if a tier change operation is in progress.
- targetTier
String
- The target performance tier of the disk if a tier change operation is in progress.
ProvisionedBandwidthCopyOption
If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
| Name | Value |
|---|
| None | None |
| Enhanced | Enhanced |
| Name | Value |
|---|
| ProvisionedBandwidthCopyOptionNone | None |
| ProvisionedBandwidthCopyOptionEnhanced | Enhanced |
| Name | Value |
|---|
| None | None |
| Enhanced | Enhanced |
| Name | Value |
|---|
| None | None |
| Enhanced | Enhanced |
| Name | Value |
|---|
| NONE | None |
| ENHANCED | Enhanced |
PublicNetworkAccess
Policy for controlling export on the disk.
| Name | Value | Description |
|---|
| Enabled | Enabled | You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Disabled | Disabled | You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Name | Value | Description |
|---|
| PublicNetworkAccessEnabled | Enabled | You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| PublicNetworkAccessDisabled | Disabled | You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Value | Description |
|---|
Enabled | You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
Disabled | You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Name | Value | Description |
|---|
| Enabled | Enabled | You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Disabled | Disabled | You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Name | Value | Description |
|---|
| Enabled | Enabled | You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Disabled | Disabled | You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Name | Value | Description |
|---|
| ENABLED | Enabled | You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| DISABLED | Disabled | You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
| Value | Description |
|---|
Enabled | You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
Disabled | You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. |
ShareInfoElementResponse
- VmUri
string
- A relative URI containing the ID of the VM that has the disk attached.
- VmUri
string
- A relative URI containing the ID of the VM that has the disk attached.
- vm_uri
string
- A relative URI containing the ID of the VM that has the disk attached.
- vmUri
String
- A relative URI containing the ID of the VM that has the disk attached.
- vmUri
string
- A relative URI containing the ID of the VM that has the disk attached.
- vm_uri
str
- A relative URI containing the ID of the VM that has the disk attached.
- vmUri
String
- A relative URI containing the ID of the VM that has the disk attached.
SourceVault, SourceVaultArgs
The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}
SourceVaultResponse
The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}
SupportedCapabilities, SupportedCapabilitiesArgs
List of supported capabilities persisted on the disk resource for VM use.
- AcceleratedNetwork
bool
- True if the image from which the OS disk is created supports accelerated networking.
- Architecture
string | Architecture
- CPU architecture supported by an OS disk.
- DiskControllerTypes
string
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- acceleratedNetwork
Boolean
- True if the image from which the OS disk is created supports accelerated networking.
- architecture
String | Architecture
- CPU architecture supported by an OS disk.
- diskControllerTypes
String
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- acceleratedNetwork
boolean
- True if the image from which the OS disk is created supports accelerated networking.
- architecture
string | Architecture
- CPU architecture supported by an OS disk.
- diskControllerTypes
string
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
SupportedCapabilitiesResponse
List of supported capabilities persisted on the disk resource for VM use.
- AcceleratedNetwork
bool
- True if the image from which the OS disk is created supports accelerated networking.
- Architecture
string
- CPU architecture supported by an OS disk.
- DiskControllerTypes
string
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- AcceleratedNetwork
bool
- True if the image from which the OS disk is created supports accelerated networking.
- Architecture
string
- CPU architecture supported by an OS disk.
- DiskControllerTypes
string
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- accelerated_network
bool
- True if the image from which the OS disk is created supports accelerated networking.
- architecture
string
- CPU architecture supported by an OS disk.
- disk_controller_types
string
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- acceleratedNetwork
Boolean
- True if the image from which the OS disk is created supports accelerated networking.
- architecture
String
- CPU architecture supported by an OS disk.
- diskControllerTypes
String
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- acceleratedNetwork
boolean
- True if the image from which the OS disk is created supports accelerated networking.
- architecture
string
- CPU architecture supported by an OS disk.
- diskControllerTypes
string
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- accelerated_network
bool
- True if the image from which the OS disk is created supports accelerated networking.
- architecture
str
- CPU architecture supported by an OS disk.
- disk_controller_types
str
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
- acceleratedNetwork
Boolean
- True if the image from which the OS disk is created supports accelerated networking.
- architecture
String
- CPU architecture supported by an OS disk.
- diskControllerTypes
String
- The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:compute:Disk myDisk /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0