Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

Disk

Disk resource. API Version: 2020-12-01.

Example Usage

Create a managed disk and associate with disk access resource.

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                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",
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("Empty"),
			},
			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("AllowPrivate"),
			ResourceGroupName:   pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.of("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")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        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")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    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",
});
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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "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/go/azure/compute"
	"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("Empty"),
			},
			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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.of("createOption", "Empty"))
            .diskName("myDisk")
            .diskSizeGB(200)
            .encryption(Map.of("diskEncryptionSetId", "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"))
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="Empty",
    ),
    disk_name="myDisk",
    disk_size_gb=200,
    encryption=azure_native.compute.EncryptionArgs(
        disk_encryption_set_id="/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
    ),
    location="West US",
    resource_group_name="myResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    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",
});
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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "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/go/azure/compute"
	"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("Copy"),
				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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "Copy"),
                Map.entry("sourceResourceId", "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot")
            ))
            .diskName("myDisk")
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        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")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Copy",
        sourceResourceId: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
    },
    diskName: "myDisk",
    location: "West US",
    resourceGroupName: "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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                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",
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("Import"),
				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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "Import"),
                Map.entry("sourceUri", "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"),
                Map.entry("storageAccountId", "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount")
            ))
            .diskName("myDisk")
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        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")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    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",
});
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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "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/go/azure/compute"
	"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("Import"),
				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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "Import"),
                Map.entry("sourceUri", "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd")
            ))
            .diskName("myDisk")
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="Import",
        source_uri="https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
    ),
    disk_name="myDisk",
    location="West US",
    resource_group_name="myResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Import",
        sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
    },
    diskName: "myDisk",
    location: "West US",
    resourceGroupName: "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 a platform image.

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "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/go/azure/compute"
	"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("FromImage"),
				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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "FromImage"),
                Map.entry("imageReference", Map.of("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")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="FromImage",
        image_reference=azure_native.compute.ImageDiskReferenceArgs(
            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")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    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: azure_native.compute.OperatingSystemTypes.Windows,
    resourceGroupName: "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

Create a managed disk from an existing managed disk in the same or different subscription.

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "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/go/azure/compute"
	"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("Copy"),
				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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "Copy"),
                Map.entry("sourceResourceId", "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1")
            ))
            .diskName("myDisk2")
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        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")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Copy",
        sourceResourceId: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1",
    },
    diskName: "myDisk2",
    location: "West US",
    resourceGroupName: "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 with security profile

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "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 = "TrustedLaunch",
            },
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("FromImage"),
				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("TrustedLaunch"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "FromImage"),
                Map.entry("imageReference", Map.of("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(Map.of("securityType", "TrustedLaunch"))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="FromImage",
        image_reference=azure_native.compute.ImageDiskReferenceArgs(
            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=azure_native.compute.DiskSecurityProfileArgs(
        security_type="TrustedLaunch",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    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: azure_native.compute.OperatingSystemTypes.Windows,
    resourceGroupName: "myResourceGroup",
    securityProfile: {
        securityType: "TrustedLaunch",
    },
});
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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "Empty",
            },
            DiskName = "myDisk",
            DiskSizeGB = 200,
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
            Sku = new AzureNative.Compute.Inputs.DiskSkuArgs
            {
                Name = "Premium_ZRS",
            },
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("Empty"),
			},
			DiskName:          pulumi.String("myDisk"),
			DiskSizeGB:        pulumi.Int(200),
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
			Sku: &compute.DiskSkuArgs{
				Name: pulumi.String("Premium_ZRS"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.of("createOption", "Empty"))
            .diskName("myDisk")
            .diskSizeGB(200)
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .sku(Map.of("name", "Premium_ZRS"))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="Empty",
    ),
    disk_name="myDisk",
    disk_size_gb=200,
    location="West US",
    resource_group_name="myResourceGroup",
    sku=azure_native.compute.DiskSkuArgs(
        name="Premium_ZRS",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Empty",
    },
    diskName: "myDisk",
    diskSizeGB: 200,
    location: "West US",
    resourceGroupName: "myResourceGroup",
    sku: {
        name: "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 upload disk.

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "Upload",
                UploadSizeBytes = 10737418752,
            },
            DiskName = "myDisk",
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("Upload"),
				UploadSizeBytes: pulumi.Float64(10737418752),
			},
			DiskName:          pulumi.String("myDisk"),
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "Upload"),
                Map.entry("uploadSizeBytes", 10737418752)
            ))
            .diskName("myDisk")
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="Upload",
        upload_size_bytes=10737418752,
    ),
    disk_name="myDisk",
    location="West US",
    resource_group_name="myResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Upload",
        uploadSizeBytes: 10737418752,
    },
    diskName: "myDisk",
    location: "West US",
    resourceGroupName: "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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "Empty",
            },
            DiskName = "myDisk",
            DiskSizeGB = 200,
            ExtendedLocation = new AzureNative.Compute.Inputs.ExtendedLocationArgs
            {
                Name = "{edge-zone-id}",
                Type = "EdgeZone",
            },
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("Empty"),
			},
			DiskName:   pulumi.String("myDisk"),
			DiskSizeGB: pulumi.Int(200),
			ExtendedLocation: &compute.ExtendedLocationArgs{
				Name: pulumi.String("{edge-zone-id}"),
				Type: pulumi.String("EdgeZone"),
			},
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.of("createOption", "Empty"))
            .diskName("myDisk")
            .diskSizeGB(200)
            .extendedLocation(Map.ofEntries(
                Map.entry("name", "{edge-zone-id}"),
                Map.entry("type", "EdgeZone")
            ))
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="Empty",
    ),
    disk_name="myDisk",
    disk_size_gb=200,
    extended_location=azure_native.compute.ExtendedLocationArgs(
        name="{edge-zone-id}",
        type="EdgeZone",
    ),
    location="West US",
    resource_group_name="myResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Empty",
    },
    diskName: "myDisk",
    diskSizeGB: 200,
    extendedLocation: {
        name: "{edge-zone-id}",
        type: "EdgeZone",
    },
    location: "West US",
    resourceGroupName: "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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "Empty",
            },
            DiskName = "myDisk",
            DiskSizeGB = 200,
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("Empty"),
			},
			DiskName:          pulumi.String("myDisk"),
			DiskSizeGB:        pulumi.Int(200),
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.of("createOption", "Empty"))
            .diskName("myDisk")
            .diskSizeGB(200)
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="Empty",
    ),
    disk_name="myDisk",
    disk_size_gb=200,
    location="West US",
    resource_group_name="myResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Empty",
    },
    diskName: "myDisk",
    diskSizeGB: 200,
    location: "West US",
    resourceGroupName: "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 Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var disk = new AzureNative.Compute.Disk("disk", new AzureNative.Compute.DiskArgs
        {
            CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
            {
                CreateOption = "Empty",
                LogicalSectorSize = 512,
            },
            DiskName = "myDisk",
            DiskSizeGB = 200,
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
            Sku = new AzureNative.Compute.Inputs.DiskSkuArgs
            {
                Name = "UltraSSD_LRS",
            },
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"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("Empty"),
				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("UltraSSD_LRS"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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(Map.ofEntries(
                Map.entry("createOption", "Empty"),
                Map.entry("logicalSectorSize", 512)
            ))
            .diskName("myDisk")
            .diskSizeGB(200)
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .sku(Map.of("name", "UltraSSD_LRS"))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk = azure_native.compute.Disk("disk",
    creation_data=azure_native.compute.CreationDataArgs(
        create_option="Empty",
        logical_sector_size=512,
    ),
    disk_name="myDisk",
    disk_size_gb=200,
    location="West US",
    resource_group_name="myResourceGroup",
    sku=azure_native.compute.DiskSkuArgs(
        name="UltraSSD_LRS",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const disk = new azure_native.compute.Disk("disk", {
    creationData: {
        createOption: "Empty",
        logicalSectorSize: 512,
    },
    diskName: "myDisk",
    diskSizeGB: 200,
    location: "West US",
    resourceGroupName: "myResourceGroup",
    sku: {
        name: "UltraSSD_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 a Disk Resource

new Disk(name: string, args: DiskArgs, opts?: CustomResourceOptions);
@overload
def Disk(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         bursting_enabled: Optional[bool] = None,
         creation_data: Optional[CreationDataArgs] = None,
         disk_access_id: Optional[str] = None,
         disk_iops_read_only: Optional[float] = None,
         disk_iops_read_write: Optional[float] = 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,
         hyper_v_generation: Optional[Union[str, HyperVGeneration]] = None,
         location: Optional[str] = None,
         max_shares: Optional[int] = None,
         network_access_policy: Optional[Union[str, NetworkAccessPolicy]] = None,
         os_type: Optional[OperatingSystemTypes] = None,
         purchase_plan: Optional[PurchasePlanArgs] = None,
         resource_group_name: Optional[str] = None,
         security_profile: Optional[DiskSecurityProfileArgs] = None,
         sku: Optional[DiskSkuArgs] = None,
         supports_hibernation: Optional[bool] = None,
         tags: Optional[Mapping[str, str]] = None,
         tier: Optional[str] = None,
         zones: Optional[Sequence[str]] = None)
@overload
def Disk(resource_name: str,
         args: DiskArgs,
         opts: Optional[ResourceOptions] = None)
func NewDisk(ctx *Context, name string, args DiskArgs, opts ...ResourceOption) (*Disk, error)
public Disk(string name, DiskArgs args, CustomResourceOptions? opts = null)
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.

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.

Disk Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Disk resource accepts the following input properties:

CreationData Pulumi.AzureNative.Compute.Inputs.CreationDataArgs

Disk source information. CreationData information cannot be changed after the disk has been created.

ResourceGroupName string

The name of the resource group.

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.

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.EncryptionArgs

Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.

EncryptionSettingsCollection Pulumi.AzureNative.Compute.Inputs.EncryptionSettingsCollectionArgs

Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

ExtendedLocation Pulumi.AzureNative.Compute.Inputs.ExtendedLocationArgs

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

Resource location

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.

OsType Pulumi.AzureNative.Compute.OperatingSystemTypes

The Operating System type.

PurchasePlan Pulumi.AzureNative.Compute.Inputs.PurchasePlanArgs

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.DiskSecurityProfileArgs

Contains the security related information for the resource.

Sku Pulumi.AzureNative.Compute.Inputs.DiskSkuArgs

The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS.

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.

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.

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

Resource location

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.

OsType OperatingSystemTypes

The Operating System type.

PurchasePlan PurchasePlanArgs

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, or StandardSSD_ZRS.

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.

creationData CreationDataArgs

Disk source information. CreationData information cannot be changed after the disk has been created.

resourceGroupName String

The name of the resource group.

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.

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 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

Resource location

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.

osType OperatingSystemTypes

The Operating System type.

purchasePlan PurchasePlanArgs

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, or StandardSSD_ZRS.

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 CreationDataArgs

Disk source information. CreationData information cannot be changed after the disk has been created.

resourceGroupName string

The name of the resource group.

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.

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 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

Resource location

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.

osType OperatingSystemTypes

The Operating System type.

purchasePlan PurchasePlanArgs

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, or StandardSSD_ZRS.

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.

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.

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

Resource location

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.

os_type OperatingSystemTypes

The Operating System type.

purchase_plan PurchasePlanArgs

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, or StandardSSD_ZRS.

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.

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.

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

Resource location

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.

osType "Windows" | "Linux"

The Operating System type.

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, or StandardSSD_ZRS.

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:

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.

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

Resource name

PropertyUpdatesInProgress Pulumi.AzureNative.Compute.Outputs.PropertyUpdatesInProgressResponse

Properties of the disk for which update is pending.

ProvisioningState string

The disk provisioning state.

ShareInfo List<Pulumi.AzureNative.Compute.Outputs.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.

TimeCreated string

The time when the disk was created.

Type string

Resource type

UniqueId string

Unique Guid identifying the resource.

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.

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

Resource name

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.

TimeCreated string

The time when the disk was created.

Type string

Resource type

UniqueId string

Unique Guid identifying the resource.

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.

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

Resource name

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.

timeCreated String

The time when the disk was created.

type String

Resource type

uniqueId String

Unique Guid identifying the resource.

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.

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

Resource name

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.

timeCreated string

The time when the disk was created.

type string

Resource type

uniqueId string

Unique Guid identifying the resource.

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.

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

Resource name

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.

time_created str

The time when the disk was created.

type str

Resource type

unique_id str

Unique Guid identifying the resource.

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.

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

Resource name

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.

timeCreated String

The time when the disk was created.

type String

Resource type

uniqueId String

Unique Guid identifying the resource.

Supporting Types

CreationData

CreateOption string | Pulumi.AzureNative.Compute.DiskCreateOption

This enumerates the possible sources of a disk's creation.

GalleryImageReference Pulumi.AzureNative.Compute.Inputs.ImageDiskReference

Required if creating from a Gallery Image. The id 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.ImageDiskReference

Disk source information.

LogicalSectorSize int

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

GalleryImageReference ImageDiskReference

Required if creating from a Gallery Image. The id 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.

LogicalSectorSize int

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

galleryImageReference ImageDiskReference

Required if creating from a Gallery Image. The id 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.

logicalSectorSize Integer

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

galleryImageReference ImageDiskReference

Required if creating from a Gallery Image. The id 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.

logicalSectorSize number

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

gallery_image_reference ImageDiskReference

Required if creating from a Gallery Image. The id 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.

logical_sector_size int

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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 | "Empty" | "Attach" | "FromImage" | "Import" | "Copy" | "Restore" | "Upload"

This enumerates the possible sources of a disk's creation.

galleryImageReference Property Map

Required if creating from a Gallery Image. The id 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.

logicalSectorSize Number

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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).

CreationDataResponse

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.

GalleryImageReference Pulumi.AzureNative.Compute.Inputs.ImageDiskReferenceResponse

Required if creating from a Gallery Image. The id 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.

LogicalSectorSize int

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

GalleryImageReference ImageDiskReferenceResponse

Required if creating from a Gallery Image. The id 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.

LogicalSectorSize int

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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

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.

galleryImageReference ImageDiskReferenceResponse

Required if creating from a Gallery Image. The id 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.

logicalSectorSize Integer

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

galleryImageReference ImageDiskReferenceResponse

Required if creating from a Gallery Image. The id 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.

logicalSectorSize number

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

gallery_image_reference ImageDiskReferenceResponse

Required if creating from a Gallery Image. The id 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.

logical_sector_size int

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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.

galleryImageReference Property Map

Required if creating from a Gallery Image. The id 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.

logicalSectorSize Number

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

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).

DiskCreateOption

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.

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.

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.

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.

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.

"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.

DiskSecurityProfile

SecurityType string | Pulumi.AzureNative.Compute.DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

SecurityType string | DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

securityType String | DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

securityType string | DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

security_type str | DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

securityType String | "TrustedLaunch"

Specifies the SecurityType of the VM. Applicable for OS disks only.

DiskSecurityProfileResponse

SecurityType string

Specifies the SecurityType of the VM. Applicable for OS disks only.

SecurityType string

Specifies the SecurityType of the VM. Applicable for OS disks only.

securityType String

Specifies the SecurityType of the VM. Applicable for OS disks only.

securityType string

Specifies the SecurityType of the VM. Applicable for OS disks only.

security_type str

Specifies the SecurityType of the VM. Applicable for OS disks only.

securityType String

Specifies the SecurityType of the VM. Applicable for OS disks only.

DiskSecurityTypes

TrustedLaunch
TrustedLaunch

Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)

DiskSecurityTypesTrustedLaunch
TrustedLaunch

Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)

TrustedLaunch
TrustedLaunch

Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)

TrustedLaunch
TrustedLaunch

Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)

TRUSTED_LAUNCH
TrustedLaunch

Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)

"TrustedLaunch"
TrustedLaunch

Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)

DiskSku

Name string | DiskStorageAccountTypes

The sku name.

name String | DiskStorageAccountTypes

The sku name.

name string | DiskStorageAccountTypes

The sku name.

name str | DiskStorageAccountTypes

The sku name.

DiskSkuResponse

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

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.

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.

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.

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.

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.

"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.

Encryption

DiskEncryptionSetId string

ResourceId of the disk encryption set to use for enabling encryption at rest.

Type string | Pulumi.AzureNative.Compute.EncryptionType

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 | EncryptionType

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 | EncryptionType

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 | EncryptionType

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 | EncryptionType

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 | "EncryptionAtRestWithPlatformKey" | "EncryptionAtRestWithCustomerKey" | "EncryptionAtRestWithPlatformAndCustomerKeys"

The type of key used to encrypt the data of the disk.

EncryptionResponse

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.

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

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 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

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 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

DiskEncryptionKey Pulumi.AzureNative.Compute.Inputs.KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the disk encryption key

KeyEncryptionKey Pulumi.AzureNative.Compute.Inputs.KeyVaultAndKeyReference

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.

DiskEncryptionKey KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the disk encryption key

KeyEncryptionKey KeyVaultAndKeyReference

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.

diskEncryptionKey KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the disk encryption key

keyEncryptionKey KeyVaultAndKeyReference

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.

diskEncryptionKey KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the disk encryption key

keyEncryptionKey KeyVaultAndKeyReference

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.

disk_encryption_key KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the disk encryption key

key_encryption_key KeyVaultAndKeyReference

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.

diskEncryptionKey Property Map

Key Vault Secret Url and vault id of the disk encryption key

keyEncryptionKey Property Map

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

DiskEncryptionKey Pulumi.AzureNative.Compute.Inputs.KeyVaultAndSecretReferenceResponse

Key Vault Secret Url and vault id of the disk encryption key

KeyEncryptionKey Pulumi.AzureNative.Compute.Inputs.KeyVaultAndKeyReferenceResponse

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.

DiskEncryptionKey KeyVaultAndSecretReferenceResponse

Key Vault Secret Url and vault id of the disk encryption key

KeyEncryptionKey KeyVaultAndKeyReferenceResponse

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.

diskEncryptionKey KeyVaultAndSecretReferenceResponse

Key Vault Secret Url and vault id of the disk encryption key

keyEncryptionKey KeyVaultAndKeyReferenceResponse

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.

diskEncryptionKey KeyVaultAndSecretReferenceResponse

Key Vault Secret Url and vault id of the disk encryption key

keyEncryptionKey KeyVaultAndKeyReferenceResponse

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.

disk_encryption_key KeyVaultAndSecretReferenceResponse

Key Vault Secret Url and vault id of the disk encryption key

key_encryption_key KeyVaultAndKeyReferenceResponse

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.

diskEncryptionKey Property Map

Key Vault Secret Url and vault id of the disk encryption key

keyEncryptionKey Property Map

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

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.

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.

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.

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.

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.

"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.

ExtendedLocation

Name string

The name of the extended location.

Type string | Pulumi.AzureNative.Compute.ExtendedLocationTypes

The type of the extended location.

Name string

The name of the extended location.

Type string | ExtendedLocationTypes

The type of the extended location.

name String

The name of the extended location.

type String | ExtendedLocationTypes

The type of the extended location.

name string

The name of the extended location.

type string | ExtendedLocationTypes

The type of the extended location.

name str

The name of the extended location.

type str | ExtendedLocationTypes

The type of the extended location.

name String

The name of the extended location.

type String | "EdgeZone"

The type of the extended location.

ExtendedLocationResponse

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

EdgeZone
EdgeZone
ExtendedLocationTypesEdgeZone
EdgeZone
EdgeZone
EdgeZone
EdgeZone
EdgeZone
EDGE_ZONE
EdgeZone
"EdgeZone"
EdgeZone

HyperVGeneration

V1
V1
V2
V2
HyperVGenerationV1
V1
HyperVGenerationV2
V2
V1
V1
V2
V2
V1
V1
V2
V2
V1
V1
V2
V2
"V1"
V1
"V2"
V2

ImageDiskReference

Id string

A relative uri containing either a Platform Image Repository or user 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.

Id string

A relative uri containing either a Platform Image Repository or user 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.

id String

A relative uri containing either a Platform Image Repository or user 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.

id string

A relative uri containing either a Platform Image Repository or user 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.

id str

A relative uri containing either a Platform Image Repository or user 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.

id String

A relative uri containing either a Platform Image Repository or user 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.

ImageDiskReferenceResponse

Id string

A relative uri containing either a Platform Image Repository or user 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.

Id string

A relative uri containing either a Platform Image Repository or user 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.

id String

A relative uri containing either a Platform Image Repository or user 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.

id string

A relative uri containing either a Platform Image Repository or user 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.

id str

A relative uri containing either a Platform Image Repository or user 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.

id String

A relative uri containing either a Platform Image Repository or user 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.

KeyVaultAndKeyReference

KeyUrl string

Url pointing to a key or secret in KeyVault

SourceVault Pulumi.AzureNative.Compute.Inputs.SourceVault

Resource id of the KeyVault containing the key or secret

KeyUrl string

Url pointing to a key or secret in KeyVault

SourceVault SourceVault

Resource id of the KeyVault containing the key or secret

keyUrl String

Url pointing to a key or secret in KeyVault

sourceVault SourceVault

Resource id of the KeyVault containing the key or secret

keyUrl string

Url pointing to a key or secret in KeyVault

sourceVault SourceVault

Resource id of the KeyVault containing the key or secret

key_url str

Url pointing to a key or secret in KeyVault

source_vault SourceVault

Resource id of the KeyVault containing the key or secret

keyUrl String

Url pointing to a key or secret in KeyVault

sourceVault Property Map

Resource id of the KeyVault containing the key or secret

KeyVaultAndKeyReferenceResponse

KeyUrl string

Url pointing to a key or secret in KeyVault

SourceVault Pulumi.AzureNative.Compute.Inputs.SourceVaultResponse

Resource id of the KeyVault containing the key or secret

KeyUrl string

Url pointing to a key or secret in KeyVault

SourceVault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

keyUrl String

Url pointing to a key or secret in KeyVault

sourceVault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

keyUrl string

Url pointing to a key or secret in KeyVault

sourceVault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

key_url str

Url pointing to a key or secret in KeyVault

source_vault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

keyUrl String

Url pointing to a key or secret in KeyVault

sourceVault Property Map

Resource id of the KeyVault containing the key or secret

KeyVaultAndSecretReference

SecretUrl string

Url pointing to a key or secret in KeyVault

SourceVault Pulumi.AzureNative.Compute.Inputs.SourceVault

Resource id of the KeyVault containing the key or secret

SecretUrl string

Url pointing to a key or secret in KeyVault

SourceVault SourceVault

Resource id of the KeyVault containing the key or secret

secretUrl String

Url pointing to a key or secret in KeyVault

sourceVault SourceVault

Resource id of the KeyVault containing the key or secret

secretUrl string

Url pointing to a key or secret in KeyVault

sourceVault SourceVault

Resource id of the KeyVault containing the key or secret

secret_url str

Url pointing to a key or secret in KeyVault

source_vault SourceVault

Resource id of the KeyVault containing the key or secret

secretUrl String

Url pointing to a key or secret in KeyVault

sourceVault Property Map

Resource id of the KeyVault containing the key or secret

KeyVaultAndSecretReferenceResponse

SecretUrl string

Url pointing to a key or secret in KeyVault

SourceVault Pulumi.AzureNative.Compute.Inputs.SourceVaultResponse

Resource id of the KeyVault containing the key or secret

SecretUrl string

Url pointing to a key or secret in KeyVault

SourceVault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

secretUrl String

Url pointing to a key or secret in KeyVault

sourceVault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

secretUrl string

Url pointing to a key or secret in KeyVault

sourceVault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

secret_url str

Url pointing to a key or secret in KeyVault

source_vault SourceVaultResponse

Resource id of the KeyVault containing the key or secret

secretUrl String

Url pointing to a key or secret in KeyVault

sourceVault Property Map

Resource id of the KeyVault containing the key or secret

NetworkAccessPolicy

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.

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.

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.

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.

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.

"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.

OperatingSystemTypes

Windows
Windows
Linux
Linux
OperatingSystemTypesWindows
Windows
OperatingSystemTypesLinux
Linux
Windows
Windows
Linux
Linux
Windows
Windows
Linux
Linux
WINDOWS
Windows
LINUX
Linux
"Windows"
Windows
"Linux"
Linux

PropertyUpdatesInProgressResponse

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.

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.

PurchasePlan

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.

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.

PurchasePlanResponse

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.

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.

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.

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

Id string

Resource Id

Id string

Resource Id

id String

Resource Id

id string

Resource Id

id str

Resource Id

id String

Resource Id

SourceVaultResponse

Id string

Resource Id

Id string

Resource Id

id String

Resource Id

id string

Resource Id

id str

Resource Id

id String

Resource Id

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} 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0