azure-native.storagepool.DiskPool

Response for Disk pool request. API Version: 2020-03-15-preview.

Example Usage

Create or Update Disk pool

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var diskPool = new AzureNative.StoragePool.DiskPool("diskPool", new()
    {
        AvailabilityZones = new[]
        {
            "1",
        },
        DiskPoolName = "myDiskPool",
        Disks = new[]
        {
            new AzureNative.StoragePool.Inputs.DiskArgs
            {
                Id = "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0",
            },
            new AzureNative.StoragePool.Inputs.DiskArgs
            {
                Id = "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1",
            },
        },
        Location = "westus",
        ResourceGroupName = "myResourceGroup",
        SubnetId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet",
        Tags = 
        {
            { "key", "value" },
        },
        Tier = "Basic",
    });

});
package main

import (
	storagepool "github.com/pulumi/pulumi-azure-native/sdk/go/azure/storagepool"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storagepool.NewDiskPool(ctx, "diskPool", &storagepool.DiskPoolArgs{
			AvailabilityZones: pulumi.StringArray{
				pulumi.String("1"),
			},
			DiskPoolName: pulumi.String("myDiskPool"),
			Disks: []storagepool.DiskArgs{
				{
					Id: pulumi.String("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0"),
				},
				{
					Id: pulumi.String("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1"),
				},
			},
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SubnetId:          pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet"),
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
			Tier: pulumi.String("Basic"),
		})
		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.storagepool.DiskPool;
import com.pulumi.azurenative.storagepool.DiskPoolArgs;
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 diskPool = new DiskPool("diskPool", DiskPoolArgs.builder()        
            .availabilityZones("1")
            .diskPoolName("myDiskPool")
            .disks(            
                Map.of("id", "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0"),
                Map.of("id", "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1"))
            .location("westus")
            .resourceGroupName("myResourceGroup")
            .subnetId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet")
            .tags(Map.of("key", "value"))
            .tier("Basic")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

disk_pool = azure_native.storagepool.DiskPool("diskPool",
    availability_zones=["1"],
    disk_pool_name="myDiskPool",
    disks=[
        {
            "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0",
        },
        {
            "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1",
        },
    ],
    location="westus",
    resource_group_name="myResourceGroup",
    subnet_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet",
    tags={
        "key": "value",
    },
    tier="Basic")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const diskPool = new azure_native.storagepool.DiskPool("diskPool", {
    availabilityZones: ["1"],
    diskPoolName: "myDiskPool",
    disks: [
        {
            id: "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0",
        },
        {
            id: "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1",
        },
    ],
    location: "westus",
    resourceGroupName: "myResourceGroup",
    subnetId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet",
    tags: {
        key: "value",
    },
    tier: "Basic",
});
resources:
  diskPool:
    type: azure-native:storagepool:DiskPool
    properties:
      availabilityZones:
        - '1'
      diskPoolName: myDiskPool
      disks:
        - id: /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0
        - id: /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1
      location: westus
      resourceGroupName: myResourceGroup
      subnetId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet
      tags:
        key: value
      tier: Basic

Create DiskPool Resource

new DiskPool(name: string, args: DiskPoolArgs, opts?: CustomResourceOptions);
@overload
def DiskPool(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             additional_capabilities: Optional[Sequence[str]] = None,
             availability_zones: Optional[Sequence[str]] = None,
             disk_pool_name: Optional[str] = None,
             disks: Optional[Sequence[DiskArgs]] = None,
             location: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             subnet_id: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None,
             tier: Optional[Union[str, DiskPoolTier]] = None)
@overload
def DiskPool(resource_name: str,
             args: DiskPoolArgs,
             opts: Optional[ResourceOptions] = None)
func NewDiskPool(ctx *Context, name string, args DiskPoolArgs, opts ...ResourceOption) (*DiskPool, error)
public DiskPool(string name, DiskPoolArgs args, CustomResourceOptions? opts = null)
public DiskPool(String name, DiskPoolArgs args)
public DiskPool(String name, DiskPoolArgs args, CustomResourceOptions options)
type: azure-native:storagepool:DiskPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DiskPoolArgs
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 DiskPoolArgs
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 DiskPoolArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DiskPoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DiskPoolArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DiskPool Resource Properties

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

Inputs

The DiskPool resource accepts the following input properties:

AvailabilityZones List<string>

Logical zone for Disk pool resource; example: ["1"].

ResourceGroupName string

The name of the resource group. The name is case insensitive.

SubnetId string

Azure Resource ID of a Subnet for the Disk pool.

Tier string | Pulumi.AzureNative.StoragePool.DiskPoolTier

Determines the SKU of VM deployed for Disk pool

AdditionalCapabilities List<string>

List of additional capabilities for a Disk pool.

DiskPoolName string

The name of the Disk pool.

Disks List<Pulumi.AzureNative.StoragePool.Inputs.DiskArgs>

List of Azure Managed Disks to attach to a Disk pool. Can attach 8 disks at most.

Location string

The geo-location where the resource lives.

Tags Dictionary<string, string>

Resource tags.

AvailabilityZones []string

Logical zone for Disk pool resource; example: ["1"].

ResourceGroupName string

The name of the resource group. The name is case insensitive.

SubnetId string

Azure Resource ID of a Subnet for the Disk pool.

Tier string | DiskPoolTier

Determines the SKU of VM deployed for Disk pool

AdditionalCapabilities []string

List of additional capabilities for a Disk pool.

DiskPoolName string

The name of the Disk pool.

Disks []DiskArgs

List of Azure Managed Disks to attach to a Disk pool. Can attach 8 disks at most.

Location string

The geo-location where the resource lives.

Tags map[string]string

Resource tags.

availabilityZones List<String>

Logical zone for Disk pool resource; example: ["1"].

resourceGroupName String

The name of the resource group. The name is case insensitive.

subnetId String

Azure Resource ID of a Subnet for the Disk pool.

tier String | DiskPoolTier

Determines the SKU of VM deployed for Disk pool

additionalCapabilities List<String>

List of additional capabilities for a Disk pool.

diskPoolName String

The name of the Disk pool.

disks List<DiskArgs>

List of Azure Managed Disks to attach to a Disk pool. Can attach 8 disks at most.

location String

The geo-location where the resource lives.

tags Map<String,String>

Resource tags.

availabilityZones string[]

Logical zone for Disk pool resource; example: ["1"].

resourceGroupName string

The name of the resource group. The name is case insensitive.

subnetId string

Azure Resource ID of a Subnet for the Disk pool.

tier string | DiskPoolTier

Determines the SKU of VM deployed for Disk pool

additionalCapabilities string[]

List of additional capabilities for a Disk pool.

diskPoolName string

The name of the Disk pool.

disks DiskArgs[]

List of Azure Managed Disks to attach to a Disk pool. Can attach 8 disks at most.

location string

The geo-location where the resource lives.

tags {[key: string]: string}

Resource tags.

availability_zones Sequence[str]

Logical zone for Disk pool resource; example: ["1"].

resource_group_name str

The name of the resource group. The name is case insensitive.

subnet_id str

Azure Resource ID of a Subnet for the Disk pool.

tier str | DiskPoolTier

Determines the SKU of VM deployed for Disk pool

additional_capabilities Sequence[str]

List of additional capabilities for a Disk pool.

disk_pool_name str

The name of the Disk pool.

disks Sequence[DiskArgs]

List of Azure Managed Disks to attach to a Disk pool. Can attach 8 disks at most.

location str

The geo-location where the resource lives.

tags Mapping[str, str]

Resource tags.

availabilityZones List<String>

Logical zone for Disk pool resource; example: ["1"].

resourceGroupName String

The name of the resource group. The name is case insensitive.

subnetId String

Azure Resource ID of a Subnet for the Disk pool.

tier String | "Basic" | "Standard" | "Premium"

Determines the SKU of VM deployed for Disk pool

additionalCapabilities List<String>

List of additional capabilities for a Disk pool.

diskPoolName String

The name of the Disk pool.

disks List<Property Map>

List of Azure Managed Disks to attach to a Disk pool. Can attach 8 disks at most.

location String

The geo-location where the resource lives.

tags Map<String>

Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the DiskPool resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

State of the operation on the resource.

Status string

Operational status of the Disk pool.

SystemData Pulumi.AzureNative.StoragePool.Outputs.SystemMetadataResponse

Resource metadata required by ARM RPC

Type string

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

State of the operation on the resource.

Status string

Operational status of the Disk pool.

SystemData SystemMetadataResponse

Resource metadata required by ARM RPC

Type string

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

State of the operation on the resource.

status String

Operational status of the Disk pool.

systemData SystemMetadataResponse

Resource metadata required by ARM RPC

type String

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

provisioningState string

State of the operation on the resource.

status string

Operational status of the Disk pool.

systemData SystemMetadataResponse

Resource metadata required by ARM RPC

type string

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

provisioning_state str

State of the operation on the resource.

status str

Operational status of the Disk pool.

system_data SystemMetadataResponse

Resource metadata required by ARM RPC

type str

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

State of the operation on the resource.

status String

Operational status of the Disk pool.

systemData Property Map

Resource metadata required by ARM RPC

type String

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

Supporting Types

Disk

Id string

Unique Azure Resource ID of the Managed Disk.

Id string

Unique Azure Resource ID of the Managed Disk.

id String

Unique Azure Resource ID of the Managed Disk.

id string

Unique Azure Resource ID of the Managed Disk.

id str

Unique Azure Resource ID of the Managed Disk.

id String

Unique Azure Resource ID of the Managed Disk.

DiskPoolTier

Basic
Basic
Standard
Standard
Premium
Premium
DiskPoolTierBasic
Basic
DiskPoolTierStandard
Standard
DiskPoolTierPremium
Premium
Basic
Basic
Standard
Standard
Premium
Premium
Basic
Basic
Standard
Standard
Premium
Premium
BASIC
Basic
STANDARD
Standard
PREMIUM
Premium
"Basic"
Basic
"Standard"
Standard
"Premium"
Premium

DiskResponse

Id string

Unique Azure Resource ID of the Managed Disk.

Id string

Unique Azure Resource ID of the Managed Disk.

id String

Unique Azure Resource ID of the Managed Disk.

id string

Unique Azure Resource ID of the Managed Disk.

id str

Unique Azure Resource ID of the Managed Disk.

id String

Unique Azure Resource ID of the Managed Disk.

SystemMetadataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

A string identifier for the identity that created the resource.

CreatedByType string

The type of identity that created the resource: user, application, managedIdentity.

LastModifiedAt string

The timestamp of resource last modification (UTC).

LastModifiedBy string

A string identifier for the identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource: user, application, managedIdentity.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

A string identifier for the identity that created the resource.

CreatedByType string

The type of identity that created the resource: user, application, managedIdentity.

LastModifiedAt string

The timestamp of resource last modification (UTC).

LastModifiedBy string

A string identifier for the identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource: user, application, managedIdentity.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

A string identifier for the identity that created the resource.

createdByType String

The type of identity that created the resource: user, application, managedIdentity.

lastModifiedAt String

The timestamp of resource last modification (UTC).

lastModifiedBy String

A string identifier for the identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource: user, application, managedIdentity.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

A string identifier for the identity that created the resource.

createdByType string

The type of identity that created the resource: user, application, managedIdentity.

lastModifiedAt string

The timestamp of resource last modification (UTC).

lastModifiedBy string

A string identifier for the identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource: user, application, managedIdentity.

created_at str

The timestamp of resource creation (UTC).

created_by str

A string identifier for the identity that created the resource.

created_by_type str

The type of identity that created the resource: user, application, managedIdentity.

last_modified_at str

The timestamp of resource last modification (UTC).

last_modified_by str

A string identifier for the identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource: user, application, managedIdentity.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

A string identifier for the identity that created the resource.

createdByType String

The type of identity that created the resource: user, application, managedIdentity.

lastModifiedAt String

The timestamp of resource last modification (UTC).

lastModifiedBy String

A string identifier for the identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource: user, application, managedIdentity.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:storagepool:DiskPool myDiskPool /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0