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@2026-04-01-preview' = {
extendedLocation: {
name: 'string'
type: 'string'
}
location: 'string'
name: 'string'
properties: {
path: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.AzureStackHCI/storageContainers
| Name | Description | Value |
|---|---|---|
| extendedLocation | The extendedLocation of the resource. | ExtendedLocation |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (required) |
| properties | The resource-specific properties for this resource. | StorageContainerProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
ExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | The name of the extended location. | string |
| type | The type of the extended location. | 'CustomLocation' |
StorageContainerProperties
| Name | Description | Value |
|---|---|---|
| path | Path of the storage container on the disk | string (required) |
TrackedResourceTags
| 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": "2026-04-01-preview",
"name": "string",
"extendedLocation": {
"name": "string",
"type": "string"
},
"location": "string",
"properties": {
"path": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.AzureStackHCI/storageContainers
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2026-04-01-preview' |
| extendedLocation | The extendedLocation of the resource. | ExtendedLocation |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (required) |
| properties | The resource-specific properties for this resource. | StorageContainerProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Microsoft.AzureStackHCI/storageContainers' |
ExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | The name of the extended location. | string |
| type | The type of the extended location. | 'CustomLocation' |
StorageContainerProperties
| Name | Description | Value |
|---|---|---|
| path | Path of the storage container on the disk | string (required) |
TrackedResourceTags
| 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@2026-04-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
extendedLocation = {
name = "string"
type = "string"
}
properties = {
path = "string"
}
}
}
Property Values
Microsoft.AzureStackHCI/storageContainers
| Name | Description | Value |
|---|---|---|
| extendedLocation | The extendedLocation of the resource. | ExtendedLocation |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (required) |
| properties | The resource-specific properties for this resource. | StorageContainerProperties |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Microsoft.AzureStackHCI/storageContainers@2026-04-01-preview" |
ExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | The name of the extended location. | string |
| type | The type of the extended location. | 'CustomLocation' |
StorageContainerProperties
| Name | Description | Value |
|---|---|---|
| path | Path of the storage container on the disk | string (required) |
TrackedResourceTags
| Name | Description | Value |
|---|