Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The storagecontainers resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.AzureStackHCI/storagecontainers resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.AzureStackHCI/storagecontainers@2021-09-01-preview' = {
extendedLocation: {
name: 'string'
type: 'string'
}
location: 'string'
name: 'string'
properties: {
path: 'string'
provisioningState: 'string'
resourceName: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.AzureStackHCI/storagecontainers
| Name | Description | Value |
|---|---|---|
| extendedLocation | StoragecontainersExtendedLocation | |
| location | The resource location | string (required) |
| name | The resource name | string Constraints: Min length = 3 Max length = 64 (required) |
| properties | Properties of a storage container resource | StoragecontainersProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
StoragecontainersExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | The extended location name. | string |
| type | The extended location type. | string |
StoragecontainersProperties
| Name | Description | Value |
|---|---|---|
| path | Path of the storage container on the disk | string |
| provisioningState | string | |
| resourceName | name of the object to be used in moc | string |
StoragecontainersTags
| Name | Description | Value |
|---|
Usage Examples
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
| Bicep File | Description |
|---|---|
| Create an Azure Stack HCI Storage Path | This template creates an Azure Stack HCI Storage Path/Container representing a physical path on the Azure Stack HCI cluster. |
ARM template resource definition
The storagecontainers resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.AzureStackHCI/storagecontainers resource, add the following JSON to your template.
{
"type": "Microsoft.AzureStackHCI/storagecontainers",
"apiVersion": "2021-09-01-preview",
"name": "string",
"extendedLocation": {
"name": "string",
"type": "string"
},
"location": "string",
"properties": {
"path": "string",
"provisioningState": "string",
"resourceName": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.AzureStackHCI/storagecontainers
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2021-09-01-preview' |
| extendedLocation | StoragecontainersExtendedLocation | |
| location | The resource location | string (required) |
| name | The resource name | string Constraints: Min length = 3 Max length = 64 (required) |
| properties | Properties of a storage container resource | StoragecontainersProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Microsoft.AzureStackHCI/storagecontainers' |
StoragecontainersExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | The extended location name. | string |
| type | The extended location type. | string |
StoragecontainersProperties
| Name | Description | Value |
|---|---|---|
| path | Path of the storage container on the disk | string |
| provisioningState | string | |
| resourceName | name of the object to be used in moc | string |
StoragecontainersTags
| Name | Description | Value |
|---|
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Create an Azure Stack HCI Storage Path |
This template creates an Azure Stack HCI Storage Path/Container representing a physical path on the Azure Stack HCI cluster. |
Terraform (AzAPI provider) resource definition
The storagecontainers resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.AzureStackHCI/storagecontainers resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureStackHCI/storagecontainers@2021-09-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
extendedLocation = {
name = "string"
type = "string"
}
properties = {
path = "string"
provisioningState = "string"
resourceName = "string"
}
}
}
Property Values
Microsoft.AzureStackHCI/storagecontainers
| Name | Description | Value |
|---|---|---|
| extendedLocation | StoragecontainersExtendedLocation | |
| location | The resource location | string (required) |
| name | The resource name | string Constraints: Min length = 3 Max length = 64 (required) |
| properties | Properties of a storage container resource | StoragecontainersProperties |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Microsoft.AzureStackHCI/storagecontainers@2021-09-01-preview" |
StoragecontainersExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | The extended location name. | string |
| type | The extended location type. | string |
StoragecontainersProperties
| Name | Description | Value |
|---|---|---|
| path | Path of the storage container on the disk | string |
| provisioningState | string | |
| resourceName | name of the object to be used in moc | string |
StoragecontainersTags
| Name | Description | Value |
|---|