1. Packages
  2. Azure Native v1
  3. API Docs
  4. storagepool
  5. DiskPool
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.storagepool.DiskPool

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

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

    Example Usage

    Create or Update Disk pool

    using System.Collections.Generic;
    using System.Linq;
    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/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=[
            azure_native.storagepool.DiskArgs(
                id="/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0",
            ),
            azure_native.storagepool.DiskArgs(
                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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DiskPool(name: string, args: DiskPoolArgs, opts?: CustomResourceOptions);
    @overload
    def DiskPool(resource_name: str,
                 args: DiskPoolArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiskPool(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 availability_zones: Optional[Sequence[str]] = None,
                 resource_group_name: Optional[str] = None,
                 subnet_id: Optional[str] = None,
                 tier: Optional[Union[str, DiskPoolTier]] = None,
                 additional_capabilities: Optional[Sequence[str]] = None,
                 disk_pool_name: Optional[str] = None,
                 disks: Optional[Sequence[DiskArgs]] = None,
                 location: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var diskPoolResource = new AzureNative.Storagepool.DiskPool("diskPoolResource", new()
    {
        AvailabilityZones = new[]
        {
            "string",
        },
        ResourceGroupName = "string",
        SubnetId = "string",
        Tier = "string",
        AdditionalCapabilities = new[]
        {
            "string",
        },
        DiskPoolName = "string",
        Disks = new[]
        {
            
            {
                { "id", "string" },
            },
        },
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := storagepool.NewDiskPool(ctx, "diskPoolResource", &storagepool.DiskPoolArgs{
    	AvailabilityZones: []string{
    		"string",
    	},
    	ResourceGroupName: "string",
    	SubnetId:          "string",
    	Tier:              "string",
    	AdditionalCapabilities: []string{
    		"string",
    	},
    	DiskPoolName: "string",
    	Disks: []map[string]interface{}{
    		map[string]interface{}{
    			"id": "string",
    		},
    	},
    	Location: "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var diskPoolResource = new DiskPool("diskPoolResource", DiskPoolArgs.builder()
        .availabilityZones("string")
        .resourceGroupName("string")
        .subnetId("string")
        .tier("string")
        .additionalCapabilities("string")
        .diskPoolName("string")
        .disks(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .location("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    disk_pool_resource = azure_native.storagepool.DiskPool("diskPoolResource",
        availability_zones=[string],
        resource_group_name=string,
        subnet_id=string,
        tier=string,
        additional_capabilities=[string],
        disk_pool_name=string,
        disks=[{
            id: string,
        }],
        location=string,
        tags={
            string: string,
        })
    
    const diskPoolResource = new azure_native.storagepool.DiskPool("diskPoolResource", {
        availabilityZones: ["string"],
        resourceGroupName: "string",
        subnetId: "string",
        tier: "string",
        additionalCapabilities: ["string"],
        diskPoolName: "string",
        disks: [{
            id: "string",
        }],
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:storagepool:DiskPool
    properties:
        additionalCapabilities:
            - string
        availabilityZones:
            - string
        diskPoolName: string
        disks:
            - id: string
        location: string
        resourceGroupName: string
        subnetId: string
        tags:
            string: string
        tier: string
    

    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.Disk>
    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<Disk>
    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 Disk[]
    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, DiskArgs

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

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

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

    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 
    

    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
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi