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 amlFilesystems resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.StorageCache/amlFilesystems resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.StorageCache/amlFilesystems@2023-11-01-preview' = {
scope: resourceSymbolicName or scope
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
encryptionSettings: {
keyEncryptionKey: {
keyUrl: 'string'
sourceVault: {
id: 'string'
}
}
}
filesystemSubnet: 'string'
hsm: {
settings: {
container: 'string'
importPrefix: 'string'
loggingContainer: 'string'
}
}
maintenanceWindow: {
dayOfWeek: 'string'
timeOfDayUTC: 'string'
}
rootSquashSettings: {
mode: 'string'
noSquashNidLists: 'string'
squashGID: int
squashUID: int
}
storageCapacityTiB: int
}
sku: {
name: 'string'
}
tags: {
{customized property}: 'string'
}
zones: [
'string'
]
}
Property Values
Microsoft.StorageCache/amlFilesystems
| Name | Description | Value |
|---|---|---|
| identity | The managed identity used by the AML file system, if configured. | AmlFilesystemIdentity |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Min length = 2 Max length = 80 Pattern = ^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$ (required) |
| properties | Properties of the AML file system. | AmlFilesystemProperties |
| scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the extension resource. |
| sku | SKU for the resource. | SkuName |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| zones | Availability zones for resources. This field should only contain a single element in the array. | string[] |
AmlFilesystemEncryptionSettings
| Name | Description | Value |
|---|---|---|
| keyEncryptionKey | Specifies the location of the encryption key in Key Vault. | KeyVaultKeyReference |
AmlFilesystemHsmSettings
| Name | Description | Value |
|---|---|---|
| container | Resource ID of storage container used for hydrating the namespace and archiving from the namespace. The resource provider must have permission to create SAS tokens on the storage account. | string (required) |
| importPrefix | Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace. | string |
| loggingContainer | Resource ID of storage container used for logging events and errors. Must be a separate container in the same storage account as the hydration and archive container. The resource provider must have permission to create SAS tokens on the storage account. | string (required) |
AmlFilesystemIdentity
| Name | Description | Value |
|---|---|---|
| type | The type of identity used for the resource. | 'None' 'UserAssigned' |
| userAssignedIdentities | A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. | UserAssignedIdentities |
AmlFilesystemProperties
| Name | Description | Value |
|---|---|---|
| encryptionSettings | Specifies encryption settings of the AML file system. | AmlFilesystemEncryptionSettings |
| filesystemSubnet | Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. | string (required) |
| hsm | Hydration and archive settings and status | AmlFilesystemPropertiesHsm |
| maintenanceWindow | Start time of a 30-minute weekly maintenance window. | AmlFilesystemPropertiesMaintenanceWindow (required) |
| rootSquashSettings | Specifies root squash settings of the AML file system. | AmlFilesystemRootSquashSettings |
| storageCapacityTiB | The size of the AML file system, in TiB. This might be rounded up. | int (required) |
AmlFilesystemPropertiesHsm
| Name | Description | Value |
|---|---|---|
| settings | Specifies HSM settings of the AML file system. | AmlFilesystemHsmSettings |
AmlFilesystemPropertiesMaintenanceWindow
| Name | Description | Value |
|---|---|---|
| dayOfWeek | Day of the week on which the maintenance window will occur. | 'Friday' 'Monday' 'Saturday' 'Sunday' 'Thursday' 'Tuesday' 'Wednesday' |
| timeOfDayUTC | The time of day (in UTC) to start the maintenance window. | string Constraints: Pattern = ^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$ |
AmlFilesystemRootSquashSettings
| Name | Description | Value |
|---|---|---|
| mode | Squash mode of the AML file system. 'All': User and Group IDs on files will be squashed to the provided values for all users on non-trusted systems. 'RootOnly': User and Group IDs on files will be squashed to provided values for solely the root user on non-trusted systems. 'None': No squashing of User and Group IDs is performed for any users on any systems. | 'All' 'None' 'RootOnly' |
| noSquashNidLists | Semicolon separated NID IP Address list(s) to be added to the TrustedSystems. | string |
| squashGID | Group ID to squash to. | int |
| squashUID | User ID to squash to. | int |
KeyVaultKeyReference
| Name | Description | Value |
|---|---|---|
| keyUrl | The URL referencing a key encryption key in key vault. | string (required) |
| sourceVault | Describes a resource Id to source key vault. | KeyVaultKeyReferenceSourceVault (required) |
KeyVaultKeyReferenceSourceVault
| Name | Description | Value |
|---|---|---|
| id | Resource Id. | string |
SkuName
| Name | Description | Value |
|---|---|---|
| name | SKU name for this resource. | string |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentities
| Name | Description | Value |
|---|
UserAssignedIdentitiesValue
| Name | Description | Value |
|---|
ARM template resource definition
The amlFilesystems resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.StorageCache/amlFilesystems resource, add the following JSON to your template.
{
"type": "Microsoft.StorageCache/amlFilesystems",
"apiVersion": "2023-11-01-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"encryptionSettings": {
"keyEncryptionKey": {
"keyUrl": "string",
"sourceVault": {
"id": "string"
}
}
},
"filesystemSubnet": "string",
"hsm": {
"settings": {
"container": "string",
"importPrefix": "string",
"loggingContainer": "string"
}
},
"maintenanceWindow": {
"dayOfWeek": "string",
"timeOfDayUTC": "string"
},
"rootSquashSettings": {
"mode": "string",
"noSquashNidLists": "string",
"squashGID": "int",
"squashUID": "int"
},
"storageCapacityTiB": "int"
},
"sku": {
"name": "string"
},
"tags": {
"{customized property}": "string"
},
"zones": [ "string" ]
}
Property Values
Microsoft.StorageCache/amlFilesystems
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2023-11-01-preview' |
| identity | The managed identity used by the AML file system, if configured. | AmlFilesystemIdentity |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Min length = 2 Max length = 80 Pattern = ^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$ (required) |
| properties | Properties of the AML file system. | AmlFilesystemProperties |
| sku | SKU for the resource. | SkuName |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Microsoft.StorageCache/amlFilesystems' |
| zones | Availability zones for resources. This field should only contain a single element in the array. | string[] |
AmlFilesystemEncryptionSettings
| Name | Description | Value |
|---|---|---|
| keyEncryptionKey | Specifies the location of the encryption key in Key Vault. | KeyVaultKeyReference |
AmlFilesystemHsmSettings
| Name | Description | Value |
|---|---|---|
| container | Resource ID of storage container used for hydrating the namespace and archiving from the namespace. The resource provider must have permission to create SAS tokens on the storage account. | string (required) |
| importPrefix | Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace. | string |
| loggingContainer | Resource ID of storage container used for logging events and errors. Must be a separate container in the same storage account as the hydration and archive container. The resource provider must have permission to create SAS tokens on the storage account. | string (required) |
AmlFilesystemIdentity
| Name | Description | Value |
|---|---|---|
| type | The type of identity used for the resource. | 'None' 'UserAssigned' |
| userAssignedIdentities | A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. | UserAssignedIdentities |
AmlFilesystemProperties
| Name | Description | Value |
|---|---|---|
| encryptionSettings | Specifies encryption settings of the AML file system. | AmlFilesystemEncryptionSettings |
| filesystemSubnet | Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. | string (required) |
| hsm | Hydration and archive settings and status | AmlFilesystemPropertiesHsm |
| maintenanceWindow | Start time of a 30-minute weekly maintenance window. | AmlFilesystemPropertiesMaintenanceWindow (required) |
| rootSquashSettings | Specifies root squash settings of the AML file system. | AmlFilesystemRootSquashSettings |
| storageCapacityTiB | The size of the AML file system, in TiB. This might be rounded up. | int (required) |
AmlFilesystemPropertiesHsm
| Name | Description | Value |
|---|---|---|
| settings | Specifies HSM settings of the AML file system. | AmlFilesystemHsmSettings |
AmlFilesystemPropertiesMaintenanceWindow
| Name | Description | Value |
|---|---|---|
| dayOfWeek | Day of the week on which the maintenance window will occur. | 'Friday' 'Monday' 'Saturday' 'Sunday' 'Thursday' 'Tuesday' 'Wednesday' |
| timeOfDayUTC | The time of day (in UTC) to start the maintenance window. | string Constraints: Pattern = ^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$ |
AmlFilesystemRootSquashSettings
| Name | Description | Value |
|---|---|---|
| mode | Squash mode of the AML file system. 'All': User and Group IDs on files will be squashed to the provided values for all users on non-trusted systems. 'RootOnly': User and Group IDs on files will be squashed to provided values for solely the root user on non-trusted systems. 'None': No squashing of User and Group IDs is performed for any users on any systems. | 'All' 'None' 'RootOnly' |
| noSquashNidLists | Semicolon separated NID IP Address list(s) to be added to the TrustedSystems. | string |
| squashGID | Group ID to squash to. | int |
| squashUID | User ID to squash to. | int |
KeyVaultKeyReference
| Name | Description | Value |
|---|---|---|
| keyUrl | The URL referencing a key encryption key in key vault. | string (required) |
| sourceVault | Describes a resource Id to source key vault. | KeyVaultKeyReferenceSourceVault (required) |
KeyVaultKeyReferenceSourceVault
| Name | Description | Value |
|---|---|---|
| id | Resource Id. | string |
SkuName
| Name | Description | Value |
|---|---|---|
| name | SKU name for this resource. | string |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentities
| Name | Description | Value |
|---|
UserAssignedIdentitiesValue
| Name | Description | Value |
|---|
Usage Examples
Terraform (AzAPI provider) resource definition
The amlFilesystems resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.StorageCache/amlFilesystems resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.StorageCache/amlFilesystems@2023-11-01-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
encryptionSettings = {
keyEncryptionKey = {
keyUrl = "string"
sourceVault = {
id = "string"
}
}
}
filesystemSubnet = "string"
hsm = {
settings = {
container = "string"
importPrefix = "string"
loggingContainer = "string"
}
}
maintenanceWindow = {
dayOfWeek = "string"
timeOfDayUTC = "string"
}
rootSquashSettings = {
mode = "string"
noSquashNidLists = "string"
squashGID = int
squashUID = int
}
storageCapacityTiB = int
}
sku = {
name = "string"
}
zones = [
"string"
]
}
}
Property Values
Microsoft.StorageCache/amlFilesystems
| Name | Description | Value |
|---|---|---|
| identity | The managed identity used by the AML file system, if configured. | AmlFilesystemIdentity |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Min length = 2 Max length = 80 Pattern = ^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$ (required) |
| parent_id | The ID of the resource to apply this extension resource to. | string (required) |
| properties | Properties of the AML file system. | AmlFilesystemProperties |
| sku | SKU for the resource. | SkuName |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Microsoft.StorageCache/amlFilesystems@2023-11-01-preview" |
| zones | Availability zones for resources. This field should only contain a single element in the array. | string[] |
AmlFilesystemEncryptionSettings
| Name | Description | Value |
|---|---|---|
| keyEncryptionKey | Specifies the location of the encryption key in Key Vault. | KeyVaultKeyReference |
AmlFilesystemHsmSettings
| Name | Description | Value |
|---|---|---|
| container | Resource ID of storage container used for hydrating the namespace and archiving from the namespace. The resource provider must have permission to create SAS tokens on the storage account. | string (required) |
| importPrefix | Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace. | string |
| loggingContainer | Resource ID of storage container used for logging events and errors. Must be a separate container in the same storage account as the hydration and archive container. The resource provider must have permission to create SAS tokens on the storage account. | string (required) |
AmlFilesystemIdentity
| Name | Description | Value |
|---|---|---|
| type | The type of identity used for the resource. | 'None' 'UserAssigned' |
| userAssignedIdentities | A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. | UserAssignedIdentities |
AmlFilesystemProperties
| Name | Description | Value |
|---|---|---|
| encryptionSettings | Specifies encryption settings of the AML file system. | AmlFilesystemEncryptionSettings |
| filesystemSubnet | Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. | string (required) |
| hsm | Hydration and archive settings and status | AmlFilesystemPropertiesHsm |
| maintenanceWindow | Start time of a 30-minute weekly maintenance window. | AmlFilesystemPropertiesMaintenanceWindow (required) |
| rootSquashSettings | Specifies root squash settings of the AML file system. | AmlFilesystemRootSquashSettings |
| storageCapacityTiB | The size of the AML file system, in TiB. This might be rounded up. | int (required) |
AmlFilesystemPropertiesHsm
| Name | Description | Value |
|---|---|---|
| settings | Specifies HSM settings of the AML file system. | AmlFilesystemHsmSettings |
AmlFilesystemPropertiesMaintenanceWindow
| Name | Description | Value |
|---|---|---|
| dayOfWeek | Day of the week on which the maintenance window will occur. | 'Friday' 'Monday' 'Saturday' 'Sunday' 'Thursday' 'Tuesday' 'Wednesday' |
| timeOfDayUTC | The time of day (in UTC) to start the maintenance window. | string Constraints: Pattern = ^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$ |
AmlFilesystemRootSquashSettings
| Name | Description | Value |
|---|---|---|
| mode | Squash mode of the AML file system. 'All': User and Group IDs on files will be squashed to the provided values for all users on non-trusted systems. 'RootOnly': User and Group IDs on files will be squashed to provided values for solely the root user on non-trusted systems. 'None': No squashing of User and Group IDs is performed for any users on any systems. | 'All' 'None' 'RootOnly' |
| noSquashNidLists | Semicolon separated NID IP Address list(s) to be added to the TrustedSystems. | string |
| squashGID | Group ID to squash to. | int |
| squashUID | User ID to squash to. | int |
KeyVaultKeyReference
| Name | Description | Value |
|---|---|---|
| keyUrl | The URL referencing a key encryption key in key vault. | string (required) |
| sourceVault | Describes a resource Id to source key vault. | KeyVaultKeyReferenceSourceVault (required) |
KeyVaultKeyReferenceSourceVault
| Name | Description | Value |
|---|---|---|
| id | Resource Id. | string |
SkuName
| Name | Description | Value |
|---|---|---|
| name | SKU name for this resource. | string |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentities
| Name | Description | Value |
|---|
UserAssignedIdentitiesValue
| Name | Description | Value |
|---|
Usage Examples
Terraform Samples
A basic example of deploying Azure Managed Lustre File System.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westus"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "virtualNetwork" {
type = "Microsoft.Network/virtualNetworks@2024-05-01"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}-vnet"
location = var.location
body = {
properties = {
addressSpace = {
addressPrefixes = ["10.0.0.0/16"]
}
dhcpOptions = {
dnsServers = []
}
privateEndpointVNetPolicies = "Disabled"
subnets = []
}
}
}
resource "azapi_resource" "subnet" {
type = "Microsoft.Network/virtualNetworks/subnets@2024-05-01"
parent_id = azapi_resource.virtualNetwork.id
name = "${var.resource_name}-subnet"
body = {
properties = {
addressPrefix = "10.0.2.0/24"
defaultOutboundAccess = true
delegations = []
privateEndpointNetworkPolicies = "Disabled"
privateLinkServiceNetworkPolicies = "Enabled"
serviceEndpointPolicies = []
serviceEndpoints = []
}
}
}
resource "azapi_resource" "amlFilesystem" {
type = "Microsoft.StorageCache/amlFilesystems@2024-07-01"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}-amlfs"
location = var.location
body = {
properties = {
filesystemSubnet = azapi_resource.subnet.id
maintenanceWindow = {
dayOfWeek = "Friday"
timeOfDayUTC = "22:00"
}
storageCapacityTiB = 8
}
sku = {
name = "AMLFS-Durable-Premium-250"
}
zones = ["1"]
}
}