azure-native.storagepool.DiskPool
Explore with Pulumi AI
Response for Disk Pool request. Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-03-15-preview.
Other available API versions: 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",
Sku = new AzureNative.StoragePool.Inputs.SkuArgs
{
Name = "Basic_V1",
Tier = "Basic",
},
SubnetId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet",
Tags =
{
{ "key", "value" },
},
});
});
package main
import (
storagepool "github.com/pulumi/pulumi-azure-native-sdk/storagepool/v2"
"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.DiskArray{
&storagepool.DiskArgs{
Id: pulumi.String("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0"),
},
&storagepool.DiskArgs{
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"),
Sku: &storagepool.SkuArgs{
Name: pulumi.String("Basic_V1"),
Tier: pulumi.String("Basic"),
},
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"),
},
})
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 com.pulumi.azurenative.storagepool.inputs.DiskArgs;
import com.pulumi.azurenative.storagepool.inputs.SkuArgs;
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(
DiskArgs.builder()
.id("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0")
.build(),
DiskArgs.builder()
.id("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1")
.build())
.location("westus")
.resourceGroupName("myResourceGroup")
.sku(SkuArgs.builder()
.name("Basic_V1")
.tier("Basic")
.build())
.subnetId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet")
.tags(Map.of("key", "value"))
.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",
sku={
"name": "Basic_V1",
"tier": "Basic",
},
subnet_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet",
tags={
"key": "value",
})
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",
sku: {
name: "Basic_V1",
tier: "Basic",
},
subnetId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet",
tags: {
key: "value",
},
});
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
sku:
name: Basic_V1
tier: Basic
subnetId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet
tags:
key: value
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,
resource_group_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
subnet_id: Optional[str] = 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,
managed_by: Optional[str] = None,
managed_by_extended: Optional[Sequence[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()
{
ResourceGroupName = "string",
Sku = new AzureNative.StoragePool.Inputs.SkuArgs
{
Name = "string",
Tier = "string",
},
SubnetId = "string",
AdditionalCapabilities = new[]
{
"string",
},
AvailabilityZones = new[]
{
"string",
},
DiskPoolName = "string",
Disks = new[]
{
new AzureNative.StoragePool.Inputs.DiskArgs
{
Id = "string",
},
},
Location = "string",
ManagedBy = "string",
ManagedByExtended = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := storagepool.NewDiskPool(ctx, "diskPoolResource", &storagepool.DiskPoolArgs{
ResourceGroupName: pulumi.String("string"),
Sku: &storagepool.SkuArgs{
Name: pulumi.String("string"),
Tier: pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
AdditionalCapabilities: pulumi.StringArray{
pulumi.String("string"),
},
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
DiskPoolName: pulumi.String("string"),
Disks: storagepool.DiskArray{
&storagepool.DiskArgs{
Id: pulumi.String("string"),
},
},
Location: pulumi.String("string"),
ManagedBy: pulumi.String("string"),
ManagedByExtended: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var diskPoolResource = new DiskPool("diskPoolResource", DiskPoolArgs.builder()
.resourceGroupName("string")
.sku(SkuArgs.builder()
.name("string")
.tier("string")
.build())
.subnetId("string")
.additionalCapabilities("string")
.availabilityZones("string")
.diskPoolName("string")
.disks(DiskArgs.builder()
.id("string")
.build())
.location("string")
.managedBy("string")
.managedByExtended("string")
.tags(Map.of("string", "string"))
.build());
disk_pool_resource = azure_native.storagepool.DiskPool("diskPoolResource",
resource_group_name="string",
sku={
"name": "string",
"tier": "string",
},
subnet_id="string",
additional_capabilities=["string"],
availability_zones=["string"],
disk_pool_name="string",
disks=[{
"id": "string",
}],
location="string",
managed_by="string",
managed_by_extended=["string"],
tags={
"string": "string",
})
const diskPoolResource = new azure_native.storagepool.DiskPool("diskPoolResource", {
resourceGroupName: "string",
sku: {
name: "string",
tier: "string",
},
subnetId: "string",
additionalCapabilities: ["string"],
availabilityZones: ["string"],
diskPoolName: "string",
disks: [{
id: "string",
}],
location: "string",
managedBy: "string",
managedByExtended: ["string"],
tags: {
string: "string",
},
});
type: azure-native:storagepool:DiskPool
properties:
additionalCapabilities:
- string
availabilityZones:
- string
diskPoolName: string
disks:
- id: string
location: string
managedBy: string
managedByExtended:
- string
resourceGroupName: string
sku:
name: string
tier: string
subnetId: string
tags:
string: 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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sku
Pulumi.
Azure Native. Storage Pool. Inputs. Sku - Determines the SKU of the Disk Pool
- Subnet
Id string - Azure Resource ID of a Subnet for the Disk Pool.
- Additional
Capabilities List<string> - List of additional capabilities for a Disk Pool.
- Availability
Zones List<string> - Logical zone for Disk Pool resource; example: ["1"].
- Disk
Pool stringName - The name of the Disk Pool.
- Disks
List<Pulumi.
Azure Native. Storage Pool. Inputs. Disk> - List of Azure Managed Disks to attach to a Disk Pool.
- Location string
- The geo-location where the resource lives.
- Managed
By string - Azure resource id. Indicates if this resource is managed by another Azure resource.
- Managed
By List<string>Extended - List of Azure resource ids that manage this resource.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sku
Sku
Args - Determines the SKU of the Disk Pool
- Subnet
Id string - Azure Resource ID of a Subnet for the Disk Pool.
- Additional
Capabilities []string - List of additional capabilities for a Disk Pool.
- Availability
Zones []string - Logical zone for Disk Pool resource; example: ["1"].
- Disk
Pool stringName - The name of the Disk Pool.
- Disks
[]Disk
Args - List of Azure Managed Disks to attach to a Disk Pool.
- Location string
- The geo-location where the resource lives.
- Managed
By string - Azure resource id. Indicates if this resource is managed by another Azure resource.
- Managed
By []stringExtended - List of Azure resource ids that manage this resource.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sku Sku
- Determines the SKU of the Disk Pool
- subnet
Id String - Azure Resource ID of a Subnet for the Disk Pool.
- additional
Capabilities List<String> - List of additional capabilities for a Disk Pool.
- availability
Zones List<String> - Logical zone for Disk Pool resource; example: ["1"].
- disk
Pool StringName - The name of the Disk Pool.
- disks List<Disk>
- List of Azure Managed Disks to attach to a Disk Pool.
- location String
- The geo-location where the resource lives.
- managed
By String - Azure resource id. Indicates if this resource is managed by another Azure resource.
- managed
By List<String>Extended - List of Azure resource ids that manage this resource.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- sku Sku
- Determines the SKU of the Disk Pool
- subnet
Id string - Azure Resource ID of a Subnet for the Disk Pool.
- additional
Capabilities string[] - List of additional capabilities for a Disk Pool.
- availability
Zones string[] - Logical zone for Disk Pool resource; example: ["1"].
- disk
Pool stringName - The name of the Disk Pool.
- disks Disk[]
- List of Azure Managed Disks to attach to a Disk Pool.
- location string
- The geo-location where the resource lives.
- managed
By string - Azure resource id. Indicates if this resource is managed by another Azure resource.
- managed
By string[]Extended - List of Azure resource ids that manage this resource.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- sku
Sku
Args - Determines the SKU of the Disk Pool
- subnet_
id str - Azure Resource ID of a Subnet for the Disk Pool.
- additional_
capabilities Sequence[str] - List of additional capabilities for a Disk Pool.
- availability_
zones Sequence[str] - Logical zone for Disk Pool resource; example: ["1"].
- disk_
pool_ strname - The name of the Disk Pool.
- disks
Sequence[Disk
Args] - List of Azure Managed Disks to attach to a Disk Pool.
- location str
- The geo-location where the resource lives.
- managed_
by str - Azure resource id. Indicates if this resource is managed by another Azure resource.
- managed_
by_ Sequence[str]extended - List of Azure resource ids that manage this resource.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sku Property Map
- Determines the SKU of the Disk Pool
- subnet
Id String - Azure Resource ID of a Subnet for the Disk Pool.
- additional
Capabilities List<String> - List of additional capabilities for a Disk Pool.
- availability
Zones List<String> - Logical zone for Disk Pool resource; example: ["1"].
- disk
Pool StringName - The name of the Disk Pool.
- disks List<Property Map>
- List of Azure Managed Disks to attach to a Disk Pool.
- location String
- The geo-location where the resource lives.
- managed
By String - Azure resource id. Indicates if this resource is managed by another Azure resource.
- managed
By List<String>Extended - List of Azure resource ids that manage this resource.
- 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
- Provisioning
State string - State of the operation on the resource.
- Status string
- Operational status of the Disk Pool.
- System
Data Pulumi.Azure Native. Storage Pool. Outputs. System Metadata Response - Resource metadata required by ARM RPC
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Tier string
- Sku tier
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - State of the operation on the resource.
- Status string
- Operational status of the Disk Pool.
- System
Data SystemMetadata Response - Resource metadata required by ARM RPC
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Tier string
- Sku tier
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - State of the operation on the resource.
- status String
- Operational status of the Disk Pool.
- system
Data SystemMetadata Response - Resource metadata required by ARM RPC
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- tier String
- Sku tier
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - State of the operation on the resource.
- status string
- Operational status of the Disk Pool.
- system
Data SystemMetadata Response - Resource metadata required by ARM RPC
- type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- tier string
- Sku tier
- 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 SystemMetadata Response - Resource metadata required by ARM RPC
- type str
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- tier str
- Sku tier
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - State of the operation on the resource.
- status String
- Operational status of the Disk Pool.
- system
Data Property Map - Resource metadata required by ARM RPC
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- tier String
- Sku tier
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.
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.
Sku, SkuArgs
SystemMetadataResponse, SystemMetadataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storagepool:DiskPool myDiskPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0