azure-native.compute.Disk
Explore with Pulumi AI
Disk resource. API Version: 2020-12-01.
Example Usage
Create a managed disk and associate with disk access resource.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "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/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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Empty",
},
DiskName = "myDisk",
DiskSizeGB = 200,
Encryption = new AzureNative.Compute.Inputs.EncryptionArgs
{
DiskEncryptionSetId = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
},
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Copy",
SourceResourceId = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Import",
SourceUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
StorageAccountId = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Import",
SourceUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "FromImage",
ImageReference = new AzureNative.Compute.Inputs.ImageDiskReferenceArgs
{
Id = "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0",
},
},
DiskName = "myDisk",
Location = "West US",
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"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.CreationDataResponse{
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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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.CreationDataResponseArgs(
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Copy",
SourceResourceId = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1",
},
DiskName = "myDisk2",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "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/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.CreationDataResponse{
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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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.CreationDataResponseArgs(
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "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/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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Upload",
UploadSizeBytes = 10737418752,
},
DiskName = "myDisk",
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "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/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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Empty",
},
DiskName = "myDisk",
DiskSizeGB = 200,
Location = "West US",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disk = new AzureNative.Compute.Disk("disk", new()
{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "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/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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.Disk;
import com.pulumi.azurenative.compute.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var 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 Disk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Disk(name: string, args: DiskArgs, opts?: CustomResourceOptions);
@overload
def Disk(resource_name: str,
args: DiskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Disk(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
creation_data: Optional[CreationDataArgs] = None,
disk_m_bps_read_write: Optional[float] = None,
zones: Optional[Sequence[str]] = None,
hyper_v_generation: Optional[Union[str, HyperVGeneration]] = None,
disk_m_bps_read_only: Optional[float] = None,
bursting_enabled: Optional[bool] = None,
disk_name: Optional[str] = None,
disk_size_gb: Optional[int] = None,
encryption: Optional[EncryptionArgs] = None,
encryption_settings_collection: Optional[EncryptionSettingsCollectionArgs] = None,
max_shares: Optional[int] = None,
disk_iops_read_write: Optional[float] = None,
disk_iops_read_only: Optional[float] = None,
extended_location: Optional[ExtendedLocationArgs] = None,
network_access_policy: Optional[Union[str, NetworkAccessPolicy]] = None,
os_type: Optional[OperatingSystemTypes] = None,
purchase_plan: Optional[PurchasePlanArgs] = None,
disk_access_id: 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,
location: Optional[str] = None)
func NewDisk(ctx *Context, name string, args DiskArgs, opts ...ResourceOption) (*Disk, error)
public Disk(string name, DiskArgs args, CustomResourceOptions? opts = null)
type: azure-native:compute:Disk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DiskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DiskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var diskResource = new AzureNative.Compute.Disk("diskResource", new()
{
ResourceGroupName = "string",
CreationData =
{
{ "createOption", "string" },
{ "galleryImageReference",
{
{ "id", "string" },
{ "lun", 0 },
} },
{ "imageReference",
{
{ "id", "string" },
{ "lun", 0 },
} },
{ "logicalSectorSize", 0 },
{ "sourceResourceId", "string" },
{ "sourceUri", "string" },
{ "storageAccountId", "string" },
{ "uploadSizeBytes", 0 },
},
DiskMBpsReadWrite = 0,
Zones = new[]
{
"string",
},
HyperVGeneration = "string",
DiskMBpsReadOnly = 0,
BurstingEnabled = false,
DiskName = "string",
DiskSizeGB = 0,
Encryption =
{
{ "diskEncryptionSetId", "string" },
{ "type", "string" },
},
EncryptionSettingsCollection =
{
{ "enabled", false },
{ "encryptionSettings", new[]
{
{
{ "diskEncryptionKey",
{
{ "secretUrl", "string" },
{ "sourceVault",
{
{ "id", "string" },
} },
} },
{ "keyEncryptionKey",
{
{ "keyUrl", "string" },
{ "sourceVault",
{
{ "id", "string" },
} },
} },
},
} },
{ "encryptionSettingsVersion", "string" },
},
MaxShares = 0,
DiskIOPSReadWrite = 0,
DiskIOPSReadOnly = 0,
ExtendedLocation =
{
{ "name", "string" },
{ "type", "string" },
},
NetworkAccessPolicy = "string",
OsType = "Windows",
PurchasePlan =
{
{ "name", "string" },
{ "product", "string" },
{ "publisher", "string" },
{ "promotionCode", "string" },
},
DiskAccessId = "string",
SecurityProfile =
{
{ "securityType", "string" },
},
Sku =
{
{ "name", "string" },
},
SupportsHibernation = false,
Tags =
{
{ "string", "string" },
},
Tier = "string",
Location = "string",
});
example, err := compute.NewDisk(ctx, "diskResource", &compute.DiskArgs{
ResourceGroupName: "string",
CreationData: map[string]interface{}{
"createOption": "string",
"galleryImageReference": map[string]interface{}{
"id": "string",
"lun": 0,
},
"imageReference": map[string]interface{}{
"id": "string",
"lun": 0,
},
"logicalSectorSize": 0,
"sourceResourceId": "string",
"sourceUri": "string",
"storageAccountId": "string",
"uploadSizeBytes": 0,
},
DiskMBpsReadWrite: 0,
Zones: []string{
"string",
},
HyperVGeneration: "string",
DiskMBpsReadOnly: 0,
BurstingEnabled: false,
DiskName: "string",
DiskSizeGB: 0,
Encryption: map[string]interface{}{
"diskEncryptionSetId": "string",
"type": "string",
},
EncryptionSettingsCollection: map[string]interface{}{
"enabled": false,
"encryptionSettings": []map[string]interface{}{
map[string]interface{}{
"diskEncryptionKey": map[string]interface{}{
"secretUrl": "string",
"sourceVault": map[string]interface{}{
"id": "string",
},
},
"keyEncryptionKey": map[string]interface{}{
"keyUrl": "string",
"sourceVault": map[string]interface{}{
"id": "string",
},
},
},
},
"encryptionSettingsVersion": "string",
},
MaxShares: 0,
DiskIOPSReadWrite: 0,
DiskIOPSReadOnly: 0,
ExtendedLocation: map[string]interface{}{
"name": "string",
"type": "string",
},
NetworkAccessPolicy: "string",
OsType: "Windows",
PurchasePlan: map[string]interface{}{
"name": "string",
"product": "string",
"publisher": "string",
"promotionCode": "string",
},
DiskAccessId: "string",
SecurityProfile: map[string]interface{}{
"securityType": "string",
},
Sku: map[string]interface{}{
"name": "string",
},
SupportsHibernation: false,
Tags: map[string]interface{}{
"string": "string",
},
Tier: "string",
Location: "string",
})
var diskResource = new Disk("diskResource", DiskArgs.builder()
.resourceGroupName("string")
.creationData(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.diskMBpsReadWrite(0)
.zones("string")
.hyperVGeneration("string")
.diskMBpsReadOnly(0)
.burstingEnabled(false)
.diskName("string")
.diskSizeGB(0)
.encryption(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.encryptionSettingsCollection(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.maxShares(0)
.diskIOPSReadWrite(0)
.diskIOPSReadOnly(0)
.extendedLocation(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.networkAccessPolicy("string")
.osType("Windows")
.purchasePlan(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.diskAccessId("string")
.securityProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.supportsHibernation(false)
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tier("string")
.location("string")
.build());
disk_resource = azure_native.compute.Disk("diskResource",
resource_group_name=string,
creation_data={
createOption: string,
galleryImageReference: {
id: string,
lun: 0,
},
imageReference: {
id: string,
lun: 0,
},
logicalSectorSize: 0,
sourceResourceId: string,
sourceUri: string,
storageAccountId: string,
uploadSizeBytes: 0,
},
disk_m_bps_read_write=0,
zones=[string],
hyper_v_generation=string,
disk_m_bps_read_only=0,
bursting_enabled=False,
disk_name=string,
disk_size_gb=0,
encryption={
diskEncryptionSetId: string,
type: string,
},
encryption_settings_collection={
enabled: False,
encryptionSettings: [{
diskEncryptionKey: {
secretUrl: string,
sourceVault: {
id: string,
},
},
keyEncryptionKey: {
keyUrl: string,
sourceVault: {
id: string,
},
},
}],
encryptionSettingsVersion: string,
},
max_shares=0,
disk_iops_read_write=0,
disk_iops_read_only=0,
extended_location={
name: string,
type: string,
},
network_access_policy=string,
os_type=Windows,
purchase_plan={
name: string,
product: string,
publisher: string,
promotionCode: string,
},
disk_access_id=string,
security_profile={
securityType: string,
},
sku={
name: string,
},
supports_hibernation=False,
tags={
string: string,
},
tier=string,
location=string)
const diskResource = new azure_native.compute.Disk("diskResource", {
resourceGroupName: "string",
creationData: {
createOption: "string",
galleryImageReference: {
id: "string",
lun: 0,
},
imageReference: {
id: "string",
lun: 0,
},
logicalSectorSize: 0,
sourceResourceId: "string",
sourceUri: "string",
storageAccountId: "string",
uploadSizeBytes: 0,
},
diskMBpsReadWrite: 0,
zones: ["string"],
hyperVGeneration: "string",
diskMBpsReadOnly: 0,
burstingEnabled: false,
diskName: "string",
diskSizeGB: 0,
encryption: {
diskEncryptionSetId: "string",
type: "string",
},
encryptionSettingsCollection: {
enabled: false,
encryptionSettings: [{
diskEncryptionKey: {
secretUrl: "string",
sourceVault: {
id: "string",
},
},
keyEncryptionKey: {
keyUrl: "string",
sourceVault: {
id: "string",
},
},
}],
encryptionSettingsVersion: "string",
},
maxShares: 0,
diskIOPSReadWrite: 0,
diskIOPSReadOnly: 0,
extendedLocation: {
name: "string",
type: "string",
},
networkAccessPolicy: "string",
osType: "Windows",
purchasePlan: {
name: "string",
product: "string",
publisher: "string",
promotionCode: "string",
},
diskAccessId: "string",
securityProfile: {
securityType: "string",
},
sku: {
name: "string",
},
supportsHibernation: false,
tags: {
string: "string",
},
tier: "string",
location: "string",
});
type: azure-native:compute:Disk
properties:
burstingEnabled: false
creationData:
createOption: string
galleryImageReference:
id: string
lun: 0
imageReference:
id: string
lun: 0
logicalSectorSize: 0
sourceResourceId: string
sourceUri: string
storageAccountId: string
uploadSizeBytes: 0
diskAccessId: string
diskIOPSReadOnly: 0
diskIOPSReadWrite: 0
diskMBpsReadOnly: 0
diskMBpsReadWrite: 0
diskName: string
diskSizeGB: 0
encryption:
diskEncryptionSetId: string
type: string
encryptionSettingsCollection:
enabled: false
encryptionSettings:
- diskEncryptionKey:
secretUrl: string
sourceVault:
id: string
keyEncryptionKey:
keyUrl: string
sourceVault:
id: string
encryptionSettingsVersion: string
extendedLocation:
name: string
type: string
hyperVGeneration: string
location: string
maxShares: 0
networkAccessPolicy: string
osType: Windows
purchasePlan:
name: string
product: string
promotionCode: string
publisher: string
resourceGroupName: string
securityProfile:
securityType: string
sku:
name: string
supportsHibernation: false
tags:
string: string
tier: string
zones:
- string
Disk Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Disk resource accepts the following input properties:
- Creation
Data Pulumi.Azure Native. Compute. Inputs. Creation Data - Disk source information. CreationData information cannot be changed after the disk has been created.
- Resource
Group stringName - 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 stringId - ARM id of the DiskAccess resource for using private endpoints on disks.
- Disk
IOPSRead doubleOnly - 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
IOPSRead doubleWrite - The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- Disk
MBps doubleRead Only - 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
MBps doubleRead Write - The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- Disk
Name string - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- Disk
Size intGB - 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.
Azure Native. Compute. Inputs. Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- Encryption
Settings Pulumi.Collection Azure Native. Compute. Inputs. Encryption Settings Collection - Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- Extended
Location Pulumi.Azure Native. Compute. Inputs. Extended Location - The extended location where the disk will be created. Extended location cannot be changed.
- Hyper
VGeneration string | Pulumi.Azure Native. Compute. Hyper VGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- Location string
- Resource location
- 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 string | Pulumi.Policy Azure Native. Compute. Network Access Policy - Policy for accessing the disk via network.
- Os
Type Pulumi.Azure Native. Compute. Operating System Types - The Operating System type.
- Purchase
Plan Pulumi.Azure Native. Compute. Inputs. Purchase Plan - 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 Pulumi.Azure Native. Compute. Inputs. Disk Security Profile - Contains the security related information for the resource.
- Sku
Pulumi.
Azure Native. Compute. Inputs. Disk Sku - 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.
- 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.
- Creation
Data CreationData Args - Disk source information. CreationData information cannot be changed after the disk has been created.
- Resource
Group stringName - 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 stringId - ARM id of the DiskAccess resource for using private endpoints on disks.
- Disk
IOPSRead float64Only - 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
IOPSRead float64Write - The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- Disk
MBps float64Read Only - 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
MBps float64Read Write - The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- Disk
Name string - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- Disk
Size intGB - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- Encryption
Encryption
Args - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- Encryption
Settings EncryptionCollection Settings Collection Args - Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- Extended
Location ExtendedLocation Args - The extended location where the disk will be created. Extended location cannot be changed.
- Hyper
VGeneration string | HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- Location string
- Resource location
- 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 string | NetworkPolicy Access Policy - Policy for accessing the disk via network.
- Os
Type OperatingSystem Types - The Operating System type.
- Purchase
Plan PurchasePlan Args - 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 DiskSecurity Profile Args - Contains the security related information for the resource.
- Sku
Disk
Sku Args - 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.
- map[string]string
- Resource tags
- Tier string
- Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
- Zones []string
- The Logical zone list for Disk.
- creation
Data CreationData - Disk source information. CreationData information cannot be changed after the disk has been created.
- resource
Group StringName - The name of the resource group.
- bursting
Enabled 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.
- disk
Access StringId - ARM id of the DiskAccess resource for using private endpoints on disks.
- disk
IOPSRead DoubleOnly - 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
IOPSRead DoubleWrite - The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- disk
MBps DoubleRead Only - 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
MBps DoubleRead Write - The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- disk
Name String - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- disk
Size IntegerGB - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption Encryption
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryption
Settings EncryptionCollection Settings Collection - Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extended
Location ExtendedLocation - The extended location where the disk will be created. Extended location cannot be changed.
- hyper
VGeneration String | HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location String
- Resource location
- 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.
- network
Access String | NetworkPolicy Access Policy - Policy for accessing the disk via network.
- os
Type OperatingSystem Types - The Operating System type.
- purchase
Plan PurchasePlan - 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 DiskSecurity Profile - Contains the security related information for the resource.
- sku
Disk
Sku - The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS.
- supports
Hibernation Boolean - Indicates the OS on a disk supports hibernation.
- 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.
- creation
Data CreationData - Disk source information. CreationData information cannot be changed after the disk has been created.
- resource
Group stringName - The name of the resource group.
- bursting
Enabled 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.
- disk
Access stringId - ARM id of the DiskAccess resource for using private endpoints on disks.
- disk
IOPSRead numberOnly - 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
IOPSRead numberWrite - The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- disk
MBps numberRead Only - 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
MBps numberRead Write - The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- disk
Name string - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- disk
Size numberGB - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption Encryption
- Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryption
Settings EncryptionCollection Settings Collection - Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extended
Location ExtendedLocation - The extended location where the disk will be created. Extended location cannot be changed.
- hyper
VGeneration string | HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location string
- Resource location
- number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- network
Access string | NetworkPolicy Access Policy - Policy for accessing the disk via network.
- os
Type OperatingSystem Types - The Operating System type.
- purchase
Plan PurchasePlan - 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 DiskSecurity Profile - Contains the security related information for the resource.
- sku
Disk
Sku - The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS.
- supports
Hibernation boolean - Indicates the OS on a disk supports hibernation.
- {[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 CreationData Args - Disk source information. CreationData information cannot be changed after the disk has been created.
- resource_
group_ strname - 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_ strid - ARM id of the DiskAccess resource for using private endpoints on disks.
- disk_
iops_ floatread_ only - 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_ floatread_ write - The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- disk_
m_ floatbps_ read_ only - 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_ floatbps_ read_ write - 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_ intgb - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
- encryption
Encryption
Args - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
- encryption_
settings_ Encryptioncollection Settings Collection Args - Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extended_
location ExtendedLocation Args - The extended location where the disk will be created. Extended location cannot be changed.
- hyper_
v_ str | Hypergeneration VGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location str
- Resource location
- 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_ str | Networkpolicy Access Policy - Policy for accessing the disk via network.
- os_
type OperatingSystem Types - The Operating System type.
- purchase_
plan PurchasePlan Args - 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 DiskSecurity Profile Args - Contains the security related information for the resource.
- sku
Disk
Sku Args - 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.
- 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.
- creation
Data Property Map - Disk source information. CreationData information cannot be changed after the disk has been created.
- resource
Group StringName - The name of the resource group.
- bursting
Enabled 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.
- disk
Access StringId - ARM id of the DiskAccess resource for using private endpoints on disks.
- disk
IOPSRead NumberOnly - 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
IOPSRead NumberWrite - The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
- disk
MBps NumberRead Only - 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
MBps NumberRead Write - The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
- disk
Name String - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- disk
Size NumberGB - 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.
- encryption
Settings Property MapCollection - Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
- extended
Location Property Map - The extended location where the disk will be created. Extended location cannot be changed.
- hyper
VGeneration String | "V1" | "V2" - The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location String
- Resource location
- Number
- The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
- network
Access String | "AllowPolicy All" | "Allow Private" | "Deny All" - Policy for accessing the disk via network.
- os
Type "Windows" | "Linux" - The Operating System type.
- purchase
Plan 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}
- security
Profile 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.
- supports
Hibernation Boolean - Indicates the OS on a disk supports hibernation.
- 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:
- Disk
Size doubleBytes - The size of the disk in bytes. This field is read only.
- Disk
State string - The state of the disk.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
By string - A relative URI containing the ID of the VM that has the disk attached.
- Managed
By List<string>Extended - 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
- Property
Updates Pulumi.In Progress Azure Native. Compute. Outputs. Property Updates In Progress Response - Properties of the disk for which update is pending.
- Provisioning
State string - The disk provisioning state.
- List<Pulumi.
Azure Native. Compute. Outputs. Share Info Element Response> - 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 string - The time when the disk was created.
- Type string
- Resource type
- Unique
Id string - Unique Guid identifying the resource.
- Disk
Size float64Bytes - The size of the disk in bytes. This field is read only.
- Disk
State string - The state of the disk.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
By string - A relative URI containing the ID of the VM that has the disk attached.
- Managed
By []stringExtended - 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
- Property
Updates PropertyIn Progress Updates In Progress Response - Properties of the disk for which update is pending.
- Provisioning
State string - The disk provisioning state.
- []Share
Info Element Response - 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 string - The time when the disk was created.
- Type string
- Resource type
- Unique
Id string - Unique Guid identifying the resource.
- disk
Size DoubleBytes - The size of the disk in bytes. This field is read only.
- disk
State String - The state of the disk.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
By String - A relative URI containing the ID of the VM that has the disk attached.
- managed
By List<String>Extended - 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
- property
Updates PropertyIn Progress Updates In Progress Response - Properties of the disk for which update is pending.
- provisioning
State String - The disk provisioning state.
- List<Share
Info Element Response> - 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 String - The time when the disk was created.
- type String
- Resource type
- unique
Id String - Unique Guid identifying the resource.
- disk
Size numberBytes - The size of the disk in bytes. This field is read only.
- disk
State string - The state of the disk.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
By string - A relative URI containing the ID of the VM that has the disk attached.
- managed
By string[]Extended - 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
- property
Updates PropertyIn Progress Updates In Progress Response - Properties of the disk for which update is pending.
- provisioning
State string - The disk provisioning state.
- Share
Info Element Response[] - 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 string - The time when the disk was created.
- type string
- Resource type
- unique
Id string - Unique Guid identifying the resource.
- disk_
size_ floatbytes - 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_ Sequence[str]extended - 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_ Propertyin_ progress Updates In Progress Response - Properties of the disk for which update is pending.
- provisioning_
state str - The disk provisioning state.
- Sequence[Share
Info Element Response] - 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.
- disk
Size NumberBytes - The size of the disk in bytes. This field is read only.
- disk
State String - The state of the disk.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
By String - A relative URI containing the ID of the VM that has the disk attached.
- managed
By List<String>Extended - 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
- property
Updates Property MapIn Progress - Properties of the disk for which update is pending.
- provisioning
State String - The disk provisioning state.
- 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.
- time
Created String - The time when the disk was created.
- type String
- Resource type
- unique
Id String - Unique Guid identifying the resource.
Supporting Types
CreationData, CreationDataArgs
- Create
Option string | Pulumi.Azure Native. Compute. Disk Create Option - This enumerates the possible sources of a disk's creation.
- Gallery
Image Pulumi.Reference Azure Native. Compute. Inputs. Image Disk Reference - 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 Pulumi.Azure Native. Compute. Inputs. Image Disk Reference - Disk source information.
- Logical
Sector intSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- Source
Resource stringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- Source
Uri string - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- Storage
Account stringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- Upload
Size doubleBytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- Create
Option string | DiskCreate Option - This enumerates the possible sources of a disk's creation.
- Gallery
Image ImageReference Disk Reference - 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 ImageDisk Reference - Disk source information.
- Logical
Sector intSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- Source
Resource stringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- Source
Uri string - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- Storage
Account stringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- Upload
Size float64Bytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create
Option String | DiskCreate Option - This enumerates the possible sources of a disk's creation.
- gallery
Image ImageReference Disk Reference - 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 ImageDisk Reference - Disk source information.
- logical
Sector IntegerSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source
Resource StringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source
Uri String - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage
Account StringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload
Size DoubleBytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create
Option string | DiskCreate Option - This enumerates the possible sources of a disk's creation.
- gallery
Image ImageReference Disk Reference - 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 ImageDisk Reference - Disk source information.
- logical
Sector numberSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source
Resource stringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source
Uri string - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage
Account stringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload
Size numberBytes - 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 | DiskCreate Option - This enumerates the possible sources of a disk's creation.
- gallery_
image_ Imagereference Disk Reference - 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 ImageDisk Reference - Disk source information.
- logical_
sector_ intsize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source_
resource_ strid - 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_ strid - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload_
size_ floatbytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create
Option String | "Empty" | "Attach" | "FromImage" | "Import" | "Copy" | "Restore" | "Upload" - This enumerates the possible sources of a disk's creation.
- gallery
Image Property MapReference - 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 Property Map - Disk source information.
- logical
Sector NumberSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source
Resource StringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source
Uri String - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage
Account StringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload
Size NumberBytes - 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, CreationDataResponseArgs
- Create
Option string - This enumerates the possible sources of a disk's creation.
- Source
Unique stringId - If this field is set, this is the unique id identifying the source of this resource.
- Gallery
Image Pulumi.Reference Azure Native. Compute. Inputs. Image Disk Reference Response - 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 Pulumi.Azure Native. Compute. Inputs. Image Disk Reference Response - Disk source information.
- Logical
Sector intSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- Source
Resource stringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- Source
Uri string - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- Storage
Account stringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- Upload
Size doubleBytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- Create
Option string - This enumerates the possible sources of a disk's creation.
- Source
Unique stringId - If this field is set, this is the unique id identifying the source of this resource.
- Gallery
Image ImageReference Disk Reference Response - 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 ImageDisk Reference Response - Disk source information.
- Logical
Sector intSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- Source
Resource stringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- Source
Uri string - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- Storage
Account stringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- Upload
Size float64Bytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create
Option String - This enumerates the possible sources of a disk's creation.
- source
Unique StringId - If this field is set, this is the unique id identifying the source of this resource.
- gallery
Image ImageReference Disk Reference Response - 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 ImageDisk Reference Response - Disk source information.
- logical
Sector IntegerSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source
Resource StringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source
Uri String - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage
Account StringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload
Size DoubleBytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create
Option string - This enumerates the possible sources of a disk's creation.
- source
Unique stringId - If this field is set, this is the unique id identifying the source of this resource.
- gallery
Image ImageReference Disk Reference Response - 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 ImageDisk Reference Response - Disk source information.
- logical
Sector numberSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source
Resource stringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source
Uri string - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage
Account stringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload
Size numberBytes - 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_ strid - If this field is set, this is the unique id identifying the source of this resource.
- gallery_
image_ Imagereference Disk Reference Response - 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 ImageDisk Reference Response - Disk source information.
- logical_
sector_ intsize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source_
resource_ strid - 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_ strid - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload_
size_ floatbytes - If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
- create
Option String - This enumerates the possible sources of a disk's creation.
- source
Unique StringId - If this field is set, this is the unique id identifying the source of this resource.
- gallery
Image Property MapReference - 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 Property Map - Disk source information.
- logical
Sector NumberSize - Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
- source
Resource StringId - If createOption is Copy, this is the ARM id of the source snapshot or disk.
- source
Uri String - If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- storage
Account StringId - Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- upload
Size NumberBytes - 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, DiskCreateOptionArgs
- Empty
- EmptyCreate an empty data disk of a size given by diskSizeGB.
- Attach
- AttachDisk will be attached to a VM.
- From
Image - FromImageCreate a new disk from a platform image specified by the given imageReference or galleryImageReference.
- Import
- ImportCreate a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.
- Copy
- CopyCreate a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.
- Restore
- RestoreCreate a new disk by copying from a backup recovery point.
- Upload
- UploadCreate a new disk by obtaining a write token and using it to directly upload the contents of the disk.
- Disk
Create Option Empty - EmptyCreate an empty data disk of a size given by diskSizeGB.
- Disk
Create Option Attach - AttachDisk will be attached to a VM.
- Disk
Create Option From Image - FromImageCreate a new disk from a platform image specified by the given imageReference or galleryImageReference.
- Disk
Create Option Import - ImportCreate a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.
- Disk
Create Option Copy - CopyCreate a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.
- Disk
Create Option Restore - RestoreCreate a new disk by copying from a backup recovery point.
- Disk
Create Option Upload - UploadCreate a new disk by obtaining a write token and using it to directly upload the contents of the disk.
- Empty
- EmptyCreate an empty data disk of a size given by diskSizeGB.
- Attach
- AttachDisk will be attached to a VM.
- From
Image - FromImageCreate a new disk from a platform image specified by the given imageReference or galleryImageReference.
- Import
- ImportCreate a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.
- Copy
- CopyCreate a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.
- Restore
- RestoreCreate a new disk by copying from a backup recovery point.
- Upload
- UploadCreate a new disk by obtaining a write token and using it to directly upload the contents of the disk.
- Empty
- EmptyCreate an empty data disk of a size given by diskSizeGB.
- Attach
- AttachDisk will be attached to a VM.
- From
Image - FromImageCreate a new disk from a platform image specified by the given imageReference or galleryImageReference.
- Import
- ImportCreate a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.
- Copy
- CopyCreate a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.
- Restore
- RestoreCreate a new disk by copying from a backup recovery point.
- Upload
- UploadCreate a new disk by obtaining a write token and using it to directly upload the contents of the disk.
- EMPTY
- EmptyCreate an empty data disk of a size given by diskSizeGB.
- ATTACH
- AttachDisk will be attached to a VM.
- FROM_IMAGE
- FromImageCreate a new disk from a platform image specified by the given imageReference or galleryImageReference.
- IMPORT_
- ImportCreate a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.
- COPY
- CopyCreate a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.
- RESTORE
- RestoreCreate a new disk by copying from a backup recovery point.
- UPLOAD
- UploadCreate a new disk by obtaining a write token and using it to directly upload the contents of the disk.
- "Empty"
- EmptyCreate an empty data disk of a size given by diskSizeGB.
- "Attach"
- AttachDisk will be attached to a VM.
- "From
Image" - FromImageCreate a new disk from a platform image specified by the given imageReference or galleryImageReference.
- "Import"
- ImportCreate a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.
- "Copy"
- CopyCreate a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.
- "Restore"
- RestoreCreate a new disk by copying from a backup recovery point.
- "Upload"
- UploadCreate a new disk by obtaining a write token and using it to directly upload the contents of the disk.
DiskSecurityProfile, DiskSecurityProfileArgs
- Security
Type string | Pulumi.Azure Native. Compute. Disk Security Types - Specifies the SecurityType of the VM. Applicable for OS disks only.
- Security
Type string | DiskSecurity Types - Specifies the SecurityType of the VM. Applicable for OS disks only.
- security
Type String | DiskSecurity Types - Specifies the SecurityType of the VM. Applicable for OS disks only.
- security
Type string | DiskSecurity Types - Specifies the SecurityType of the VM. Applicable for OS disks only.
- security_
type str | DiskSecurity Types - Specifies the SecurityType of the VM. Applicable for OS disks only.
- security
Type String | "TrustedLaunch" - Specifies the SecurityType of the VM. Applicable for OS disks only.
DiskSecurityProfileResponse, DiskSecurityProfileResponseArgs
- Security
Type string - Specifies the SecurityType of the VM. Applicable for OS disks only.
- Security
Type string - Specifies the SecurityType of the VM. Applicable for OS disks only.
- security
Type String - Specifies the SecurityType of the VM. Applicable for OS disks only.
- security
Type 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.
- security
Type String - Specifies the SecurityType of the VM. Applicable for OS disks only.
DiskSecurityTypes, DiskSecurityTypesArgs
- Trusted
Launch - TrustedLaunchTrusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)
- Disk
Security Types Trusted Launch - TrustedLaunchTrusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)
- Trusted
Launch - TrustedLaunchTrusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)
- Trusted
Launch - TrustedLaunchTrusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)
- TRUSTED_LAUNCH
- TrustedLaunchTrusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)
- "Trusted
Launch" - TrustedLaunchTrusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)
DiskSku, DiskSkuArgs
- Name
string | Pulumi.
Azure Native. Compute. Disk Storage Account Types - The sku name.
- Name
string | Disk
Storage Account Types - The sku name.
- name
String | Disk
Storage Account Types - The sku name.
- name
string | Disk
Storage Account Types - The sku name.
- name
str | Disk
Storage Account Types - The sku name.
DiskSkuResponse, DiskSkuResponseArgs
DiskStorageAccountTypes, DiskStorageAccountTypesArgs
- Standard_LRS
- Standard_LRSStandard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.
- Premium_LRS
- Premium_LRSPremium SSD locally redundant storage. Best for production and performance sensitive workloads.
- Standard
SSD_LRS - StandardSSD_LRSStandard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test.
- Ultra
SSD_LRS - UltraSSD_LRSUltra 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_ZRSPremium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures.
- Standard
SSD_ZRS - StandardSSD_ZRSStandard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures.
- Disk
Storage Account Types_Standard_LRS - Standard_LRSStandard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.
- Disk
Storage Account Types_Premium_LRS - Premium_LRSPremium SSD locally redundant storage. Best for production and performance sensitive workloads.
- Disk
Storage Account Types_Standard SSD_LRS - StandardSSD_LRSStandard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test.
- Disk
Storage Account Types_Ultra SSD_LRS - UltraSSD_LRSUltra 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.
- Disk
Storage Account Types_Premium_ZRS - Premium_ZRSPremium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures.
- Disk
Storage Account Types_Standard SSD_ZRS - StandardSSD_ZRSStandard 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_LRSStandard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.
- Premium_LRS
- Premium_LRSPremium SSD locally redundant storage. Best for production and performance sensitive workloads.
- Standard
SSD_LRS - StandardSSD_LRSStandard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test.
- Ultra
SSD_LRS - UltraSSD_LRSUltra 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_ZRSPremium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures.
- Standard
SSD_ZRS - StandardSSD_ZRSStandard 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_LRSStandard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.
- Premium_LRS
- Premium_LRSPremium SSD locally redundant storage. Best for production and performance sensitive workloads.
- Standard
SSD_LRS - StandardSSD_LRSStandard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test.
- Ultra
SSD_LRS - UltraSSD_LRSUltra 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_ZRSPremium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures.
- Standard
SSD_ZRS - StandardSSD_ZRSStandard 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_LRSStandard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.
- PREMIUM_LRS
- Premium_LRSPremium SSD locally redundant storage. Best for production and performance sensitive workloads.
- STANDARD_SS_D_LRS
- StandardSSD_LRSStandard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test.
- ULTRA_SS_D_LRS
- UltraSSD_LRSUltra 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_ZRSPremium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures.
- STANDARD_SS_D_ZRS
- StandardSSD_ZRSStandard 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_LRSStandard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.
- "Premium_LRS"
- Premium_LRSPremium SSD locally redundant storage. Best for production and performance sensitive workloads.
- "Standard
SSD_LRS" - StandardSSD_LRSStandard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test.
- "Ultra
SSD_LRS" - UltraSSD_LRSUltra 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_ZRSPremium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures.
- "Standard
SSD_ZRS" - StandardSSD_ZRSStandard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures.
Encryption, EncryptionArgs
- Disk
Encryption stringSet Id - ResourceId of the disk encryption set to use for enabling encryption at rest.
- Type
string | Pulumi.
Azure Native. Compute. Encryption Type - The type of key used to encrypt the data of the disk.
- Disk
Encryption stringSet Id - ResourceId of the disk encryption set to use for enabling encryption at rest.
- Type
string | Encryption
Type - The type of key used to encrypt the data of the disk.
- disk
Encryption StringSet Id - ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
String | Encryption
Type - The type of key used to encrypt the data of the disk.
- disk
Encryption stringSet Id - ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
string | Encryption
Type - The type of key used to encrypt the data of the disk.
- disk_
encryption_ strset_ id - ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
str | Encryption
Type - The type of key used to encrypt the data of the disk.
- disk
Encryption StringSet Id - ResourceId of the disk encryption set to use for enabling encryption at rest.
- type
String | "Encryption
At Rest With Platform Key" | "Encryption At Rest With Customer Key" | "Encryption At Rest With Platform And Customer Keys" - The type of key used to encrypt the data of the disk.
EncryptionResponse, EncryptionResponseArgs
- Disk
Encryption stringSet Id - 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 stringSet Id - 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 StringSet Id - 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 stringSet Id - 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_ strset_ id - 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.
- disk
Encryption StringSet Id - ResourceId of the disk encryption set to use for enabling encryption at rest.
- type String
- The type of key used to encrypt the data of the disk.
EncryptionSettingsCollection, EncryptionSettingsCollectionArgs
- Enabled bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- Encryption
Settings List<Pulumi.Azure Native. Compute. Inputs. Encryption Settings Element> - A collection of encryption settings, one for each disk volume.
- Encryption
Settings stringVersion - 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 []EncryptionSettings Element - A collection of encryption settings, one for each disk volume.
- Encryption
Settings stringVersion - 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.
- encryption
Settings List<EncryptionSettings Element> - A collection of encryption settings, one for each disk volume.
- encryption
Settings StringVersion - 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.
- encryption
Settings EncryptionSettings Element[] - A collection of encryption settings, one for each disk volume.
- encryption
Settings stringVersion - 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[EncryptionSettings Element] - A collection of encryption settings, one for each disk volume.
- encryption_
settings_ strversion - 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.
- encryption
Settings List<Property Map> - A collection of encryption settings, one for each disk volume.
- encryption
Settings StringVersion - 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, EncryptionSettingsCollectionResponseArgs
- Enabled bool
- Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
- Encryption
Settings List<Pulumi.Azure Native. Compute. Inputs. Encryption Settings Element Response> - A collection of encryption settings, one for each disk volume.
- Encryption
Settings stringVersion - 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 []EncryptionSettings Element Response - A collection of encryption settings, one for each disk volume.
- Encryption
Settings stringVersion - 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.
- encryption
Settings List<EncryptionSettings Element Response> - A collection of encryption settings, one for each disk volume.
- encryption
Settings StringVersion - 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.
- encryption
Settings EncryptionSettings Element Response[] - A collection of encryption settings, one for each disk volume.
- encryption
Settings stringVersion - 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[EncryptionSettings Element Response] - A collection of encryption settings, one for each disk volume.
- encryption_
settings_ strversion - 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.
- encryption
Settings List<Property Map> - A collection of encryption settings, one for each disk volume.
- encryption
Settings StringVersion - Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
EncryptionSettingsElement, EncryptionSettingsElementArgs
- Disk
Encryption Pulumi.Key Azure Native. Compute. Inputs. Key Vault And Secret Reference - Key Vault Secret Url and vault id of the disk encryption key
- Key
Encryption Pulumi.Key Azure Native. Compute. Inputs. Key Vault And Key Reference - 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 KeyKey Vault And Secret Reference - Key Vault Secret Url and vault id of the disk encryption key
- Key
Encryption KeyKey Vault And Key Reference - 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 KeyKey Vault And Secret Reference - Key Vault Secret Url and vault id of the disk encryption key
- key
Encryption KeyKey Vault And Key Reference - 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 KeyKey Vault And Secret Reference - Key Vault Secret Url and vault id of the disk encryption key
- key
Encryption KeyKey Vault And Key Reference - 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_ Keykey Vault And Secret Reference - Key Vault Secret Url and vault id of the disk encryption key
- key_
encryption_ Keykey Vault And Key Reference - 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 Property MapKey - Key Vault Secret Url and vault id of the disk encryption key
- key
Encryption Property MapKey - 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, EncryptionSettingsElementResponseArgs
- Disk
Encryption Pulumi.Key Azure Native. Compute. Inputs. Key Vault And Secret Reference Response - Key Vault Secret Url and vault id of the disk encryption key
- Key
Encryption Pulumi.Key Azure Native. Compute. Inputs. Key Vault And Key Reference Response - 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 KeyKey Vault And Secret Reference Response - Key Vault Secret Url and vault id of the disk encryption key
- Key
Encryption KeyKey Vault And Key Reference Response - 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 KeyKey Vault And Secret Reference Response - Key Vault Secret Url and vault id of the disk encryption key
- key
Encryption KeyKey Vault And Key Reference Response - 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 KeyKey Vault And Secret Reference Response - Key Vault Secret Url and vault id of the disk encryption key
- key
Encryption KeyKey Vault And Key Reference Response - 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_ Keykey Vault And Secret Reference Response - Key Vault Secret Url and vault id of the disk encryption key
- key_
encryption_ Keykey Vault And Key Reference Response - 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 Property MapKey - Key Vault Secret Url and vault id of the disk encryption key
- key
Encryption Property MapKey - 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, EncryptionTypeArgs
- Encryption
At Rest With Platform Key - EncryptionAtRestWithPlatformKeyDisk 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 - EncryptionAtRestWithCustomerKeyDisk 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 - EncryptionAtRestWithPlatformAndCustomerKeysDisk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed.
- Encryption
Type Encryption At Rest With Platform Key - EncryptionAtRestWithPlatformKeyDisk 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
Type Encryption At Rest With Customer Key - EncryptionAtRestWithCustomerKeyDisk is encrypted at rest with Customer managed key that can be changed and revoked by a customer.
- Encryption
Type Encryption At Rest With Platform And Customer Keys - EncryptionAtRestWithPlatformAndCustomerKeysDisk 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 - EncryptionAtRestWithPlatformKeyDisk 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 - EncryptionAtRestWithCustomerKeyDisk 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 - EncryptionAtRestWithPlatformAndCustomerKeysDisk 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 - EncryptionAtRestWithPlatformKeyDisk 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 - EncryptionAtRestWithCustomerKeyDisk 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 - EncryptionAtRestWithPlatformAndCustomerKeysDisk 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
- EncryptionAtRestWithPlatformKeyDisk 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
- EncryptionAtRestWithCustomerKeyDisk 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
- EncryptionAtRestWithPlatformAndCustomerKeysDisk 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" - EncryptionAtRestWithPlatformKeyDisk 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" - EncryptionAtRestWithCustomerKeyDisk 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" - EncryptionAtRestWithPlatformAndCustomerKeysDisk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed.
ExtendedLocation, ExtendedLocationArgs
- Name string
- The name of the extended location.
- Type
string | Pulumi.
Azure Native. Compute. Extended Location Types - The type of the extended location.
- Name string
- The name of the extended location.
- Type
string | Extended
Location Types - The type of the extended location.
- name String
- The name of the extended location.
- type
String | Extended
Location Types - The type of the extended location.
- name string
- The name of the extended location.
- type
string | Extended
Location Types - The type of the extended location.
- name str
- The name of the extended location.
- type
str | Extended
Location Types - The type of the extended location.
- name String
- The name of the extended location.
- type
String | "Edge
Zone" - The type of the extended location.
ExtendedLocationResponse, ExtendedLocationResponseArgs
ExtendedLocationTypes, ExtendedLocationTypesArgs
- Edge
Zone - EdgeZone
- Extended
Location Types Edge Zone - EdgeZone
- Edge
Zone - EdgeZone
- Edge
Zone - EdgeZone
- EDGE_ZONE
- EdgeZone
- "Edge
Zone" - EdgeZone
HyperVGeneration, HyperVGenerationArgs
- V1
- V1
- V2
- V2
- Hyper
VGeneration V1 - V1
- Hyper
VGeneration V2 - V2
- V1
- V1
- V2
- V2
- V1
- V1
- V2
- V2
- V1
- V1
- V2
- V2
- "V1"
- V1
- "V2"
- V2
ImageDiskReference, ImageDiskReferenceArgs
ImageDiskReferenceResponse, ImageDiskReferenceResponseArgs
KeyVaultAndKeyReference, KeyVaultAndKeyReferenceArgs
- Key
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault Pulumi.Azure Native. Compute. Inputs. Source Vault - Resource id of the KeyVault containing the key or secret
- Key
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault SourceVault - Resource id of the KeyVault containing the key or secret
- key
Url String - Url pointing to a key or secret in KeyVault
- source
Vault SourceVault - Resource id of the KeyVault containing the key or secret
- key
Url string - Url pointing to a key or secret in KeyVault
- source
Vault 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
- key
Url String - Url pointing to a key or secret in KeyVault
- source
Vault Property Map - Resource id of the KeyVault containing the key or secret
KeyVaultAndKeyReferenceResponse, KeyVaultAndKeyReferenceResponseArgs
- Key
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault Pulumi.Azure Native. Compute. Inputs. Source Vault Response - Resource id of the KeyVault containing the key or secret
- Key
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault SourceVault Response - Resource id of the KeyVault containing the key or secret
- key
Url String - Url pointing to a key or secret in KeyVault
- source
Vault SourceVault Response - Resource id of the KeyVault containing the key or secret
- key
Url string - Url pointing to a key or secret in KeyVault
- source
Vault SourceVault Response - 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 Response - Resource id of the KeyVault containing the key or secret
- key
Url String - Url pointing to a key or secret in KeyVault
- source
Vault Property Map - Resource id of the KeyVault containing the key or secret
KeyVaultAndSecretReference, KeyVaultAndSecretReferenceArgs
- Secret
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault Pulumi.Azure Native. Compute. Inputs. Source Vault - Resource id of the KeyVault containing the key or secret
- Secret
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault SourceVault - Resource id of the KeyVault containing the key or secret
- secret
Url String - Url pointing to a key or secret in KeyVault
- source
Vault SourceVault - Resource id of the KeyVault containing the key or secret
- secret
Url string - Url pointing to a key or secret in KeyVault
- source
Vault 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
- secret
Url String - Url pointing to a key or secret in KeyVault
- source
Vault Property Map - Resource id of the KeyVault containing the key or secret
KeyVaultAndSecretReferenceResponse, KeyVaultAndSecretReferenceResponseArgs
- Secret
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault Pulumi.Azure Native. Compute. Inputs. Source Vault Response - Resource id of the KeyVault containing the key or secret
- Secret
Url string - Url pointing to a key or secret in KeyVault
- Source
Vault SourceVault Response - Resource id of the KeyVault containing the key or secret
- secret
Url String - Url pointing to a key or secret in KeyVault
- source
Vault SourceVault Response - Resource id of the KeyVault containing the key or secret
- secret
Url string - Url pointing to a key or secret in KeyVault
- source
Vault SourceVault Response - 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 Response - Resource id of the KeyVault containing the key or secret
- secret
Url String - Url pointing to a key or secret in KeyVault
- source
Vault Property Map - Resource id of the KeyVault containing the key or secret
NetworkAccessPolicy, NetworkAccessPolicyArgs
- Allow
All - AllowAllThe disk can be exported or uploaded to from any network.
- Allow
Private - AllowPrivateThe disk can be exported or uploaded to using a DiskAccess resource's private endpoints.
- Deny
All - DenyAllThe disk cannot be exported.
- Network
Access Policy Allow All - AllowAllThe disk can be exported or uploaded to from any network.
- Network
Access Policy Allow Private - AllowPrivateThe disk can be exported or uploaded to using a DiskAccess resource's private endpoints.
- Network
Access Policy Deny All - DenyAllThe disk cannot be exported.
- Allow
All - AllowAllThe disk can be exported or uploaded to from any network.
- Allow
Private - AllowPrivateThe disk can be exported or uploaded to using a DiskAccess resource's private endpoints.
- Deny
All - DenyAllThe disk cannot be exported.
- Allow
All - AllowAllThe disk can be exported or uploaded to from any network.
- Allow
Private - AllowPrivateThe disk can be exported or uploaded to using a DiskAccess resource's private endpoints.
- Deny
All - DenyAllThe disk cannot be exported.
- ALLOW_ALL
- AllowAllThe disk can be exported or uploaded to from any network.
- ALLOW_PRIVATE
- AllowPrivateThe disk can be exported or uploaded to using a DiskAccess resource's private endpoints.
- DENY_ALL
- DenyAllThe disk cannot be exported.
- "Allow
All" - AllowAllThe disk can be exported or uploaded to from any network.
- "Allow
Private" - AllowPrivateThe disk can be exported or uploaded to using a DiskAccess resource's private endpoints.
- "Deny
All" - DenyAllThe disk cannot be exported.
OperatingSystemTypes, OperatingSystemTypesArgs
- Windows
- Windows
- Linux
- Linux
- Operating
System Types Windows - Windows
- Operating
System Types Linux - Linux
- Windows
- Windows
- Linux
- Linux
- Windows
- Windows
- Linux
- Linux
- WINDOWS
- Windows
- LINUX
- Linux
- "Windows"
- Windows
- "Linux"
- Linux
PropertyUpdatesInProgressResponse, PropertyUpdatesInProgressResponseArgs
- Target
Tier string - The target performance tier of the disk if a tier change operation is in progress.
- Target
Tier string - The target performance tier of the disk if a tier change operation is in progress.
- target
Tier String - The target performance tier of the disk if a tier change operation is in progress.
- target
Tier string - The target performance tier of the disk if a tier change operation is in progress.
- target_
tier str - The target performance tier of the disk if a tier change operation is in progress.
- target
Tier String - The target performance tier of the disk if a tier change operation is in progress.
PurchasePlan, PurchasePlanArgs
- Name string
- The plan ID.
- Product string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher string
- The publisher ID.
- Promotion
Code string - The Offer Promotion Code.
- Name string
- The plan ID.
- Product string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher string
- The publisher ID.
- Promotion
Code string - The Offer Promotion Code.
- name String
- The plan ID.
- product String
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher String
- The publisher ID.
- promotion
Code String - The Offer Promotion Code.
- name string
- The plan ID.
- product string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher string
- The publisher ID.
- promotion
Code 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.
- promotion
Code String - The Offer Promotion Code.
PurchasePlanResponse, PurchasePlanResponseArgs
- Name string
- The plan ID.
- Product string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher string
- The publisher ID.
- Promotion
Code string - The Offer Promotion Code.
- Name string
- The plan ID.
- Product string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- Publisher string
- The publisher ID.
- Promotion
Code string - The Offer Promotion Code.
- name String
- The plan ID.
- product String
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher String
- The publisher ID.
- promotion
Code String - The Offer Promotion Code.
- name string
- The plan ID.
- product string
- Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
- publisher string
- The publisher ID.
- promotion
Code 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.
- promotion
Code String - The Offer Promotion Code.
ShareInfoElementResponse, ShareInfoElementResponseArgs
- Vm
Uri string - A relative URI containing the ID of the VM that has the disk attached.
- Vm
Uri string - A relative URI containing the ID of the VM that has the disk attached.
- vm
Uri String - A relative URI containing the ID of the VM that has the disk attached.
- vm
Uri string - A relative URI containing the ID of the VM that has the disk attached.
- vm_
uri str - A relative URI containing the ID of the VM that has the disk attached.
- vm
Uri String - A relative URI containing the ID of the VM that has the disk attached.
SourceVault, SourceVaultArgs
- 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, SourceVaultResponseArgs
- 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0