azure-native.storagepool.DiskPool
Explore with Pulumi AI
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:
- Availability
Zones List<string> - Logical zone for Disk pool resource; example: ["1"].
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Subnet
Id string - Azure Resource ID of a Subnet for the Disk pool.
- Tier
string | Pulumi.
Azure Native. Storage Pool. Disk Pool Tier - Determines the SKU of VM deployed for Disk pool
- Additional
Capabilities List<string> - List of additional capabilities for a Disk pool.
- 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. Can attach 8 disks at most.
- Location string
- The geo-location where the resource lives.
- Dictionary<string, string>
- Resource tags.
- Availability
Zones []string - Logical zone for Disk pool resource; example: ["1"].
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Subnet
Id string - Azure Resource ID of a Subnet for the Disk pool.
- Tier
string | Disk
Pool Tier - Determines the SKU of VM deployed for Disk pool
- Additional
Capabilities []string - List of additional capabilities for a Disk pool.
- Disk
Pool stringName - The name of the Disk pool.
- Disks
[]Disk
Args - 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.
- map[string]string
- Resource tags.
- availability
Zones List<String> - Logical zone for Disk pool resource; example: ["1"].
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- subnet
Id String - Azure Resource ID of a Subnet for the Disk pool.
- tier
String | Disk
Pool Tier - Determines the SKU of VM deployed for Disk pool
- additional
Capabilities List<String> - List of additional capabilities for a Disk pool.
- disk
Pool StringName - 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.
- Map<String,String>
- Resource tags.
- availability
Zones string[] - Logical zone for Disk pool resource; example: ["1"].
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- subnet
Id string - Azure Resource ID of a Subnet for the Disk pool.
- tier
string | Disk
Pool Tier - Determines the SKU of VM deployed for Disk pool
- additional
Capabilities string[] - List of additional capabilities for a Disk pool.
- disk
Pool stringName - 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.
- {[key: string]: string}
- Resource tags.
- availability_
zones Sequence[str] - Logical zone for Disk pool resource; example: ["1"].
- resource_
group_ strname - 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 | Disk
Pool Tier - Determines the SKU of VM deployed for Disk pool
- additional_
capabilities Sequence[str] - List of additional capabilities for a Disk pool.
- disk_
pool_ strname - The name of the Disk pool.
- disks
Sequence[Disk
Args] - 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.
- Mapping[str, str]
- Resource tags.
- availability
Zones List<String> - Logical zone for Disk pool resource; example: ["1"].
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- subnet
Id 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
- additional
Capabilities List<String> - List of additional capabilities for a Disk pool.
- disk
Pool StringName - 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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
- Disk
Pool Tier Basic - Basic
- Disk
Pool Tier Standard - Standard
- Disk
Pool Tier Premium - 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - A string identifier for the identity that created the resource.
- Created
By stringType - The type of identity that created the resource: user, application, managedIdentity.
- Last
Modified stringAt - The timestamp of resource last modification (UTC).
- Last
Modified stringBy - A string identifier for the identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource: user, application, managedIdentity.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - A string identifier for the identity that created the resource.
- Created
By stringType - The type of identity that created the resource: user, application, managedIdentity.
- Last
Modified stringAt - The timestamp of resource last modification (UTC).
- Last
Modified stringBy - A string identifier for the identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource: user, application, managedIdentity.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - A string identifier for the identity that created the resource.
- created
By StringType - The type of identity that created the resource: user, application, managedIdentity.
- last
Modified StringAt - The timestamp of resource last modification (UTC).
- last
Modified StringBy - A string identifier for the identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource: user, application, managedIdentity.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - A string identifier for the identity that created the resource.
- created
By stringType - The type of identity that created the resource: user, application, managedIdentity.
- last
Modified stringAt - The timestamp of resource last modification (UTC).
- last
Modified stringBy - A string identifier for the identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource: user, application, managedIdentity.
- last_
modified_ strat - The timestamp of resource last modification (UTC).
- last_
modified_ strby - A string identifier for the identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource: user, application, managedIdentity.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - A string identifier for the identity that created the resource.
- created
By StringType - The type of identity that created the resource: user, application, managedIdentity.
- last
Modified StringAt - The timestamp of resource last modification (UTC).
- last
Modified StringBy - A string identifier for the identity that last modified the resource.
- last
Modified StringBy Type - 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