Skip to main content

aml_filesystems

Creates, updates, deletes, gets or lists an aml_filesystems resource.

Overview

Nameaml_filesystems
TypeResource
Idazure.storage_cache.aml_filesystems

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
clientInfoobjectClient information for the AML file system.
clusterUuidstringThe unique identifier of the AML file system cluster.
currentStorageCapacityTiBnumberThe current storage capacity of the AML file system, in TiB. This reflects the actual capacity including any expansions.
encryptionSettingsobjectSpecifies encryption settings of the AML file system.
filesystemSubnetstringSubnet 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. Required.
healthobjectHealth of the AML file system.
hsmobjectHydration and archive settings and status.
identityobjectThe managed identity used by the AML file system, if configured.
locationstringThe geo-location where the resource lives. Required.
maintenanceWindowobjectStart time of a 30-minute weekly maintenance window. Required.
provisioningStatestringARM provisioning state. Known values are: "Succeeded", "Failed", "Creating", "Deleting", "Updating", and "Canceled". (Succeeded, Failed, Creating, Deleting, Updating, Canceled)
rootSquashSettingsobjectSpecifies root squash settings of the AML file system.
skuobjectSKU for the resource.
storageCapacityTiBnumberThe size of the AML file system, in TiB. This might be rounded up. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
throughputProvisionedMBpsintegerThroughput provisioned in MB per sec, calculated as storageCapacityTiB * per-unit storage throughput.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, aml_filesystem_name, subscription_idReturns an AML file system.
list_by_resource_groupselectresource_group_name, subscription_idReturns all AML file systems the user has access to under a resource group.
listselectsubscription_idReturns all AML file systems the user has access to under a subscription.
create_or_updateinsertresource_group_name, aml_filesystem_name, subscription_id, locationCreate or update an AML file system.
updateupdateresource_group_name, aml_filesystem_name, subscription_idUpdate an AML file system instance.
create_or_updatereplaceresource_group_name, aml_filesystem_name, subscription_id, locationCreate or update an AML file system.
deletedeleteresource_group_name, aml_filesystem_name, subscription_idSchedules an AML file system for deletion.
archiveexecresource_group_name, aml_filesystem_name, subscription_idArchive data from the AML file system.
cancel_archiveexecresource_group_name, aml_filesystem_name, subscription_idCancel archiving data from the AML file system.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aml_filesystem_namestringName for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Returns an AML file system.

SELECT
id,
name,
clientInfo,
clusterUuid,
currentStorageCapacityTiB,
encryptionSettings,
filesystemSubnet,
health,
hsm,
identity,
location,
maintenanceWindow,
provisioningState,
rootSquashSettings,
sku,
storageCapacityTiB,
systemData,
tags,
throughputProvisionedMBps,
type,
zones
FROM azure.storage_cache.aml_filesystems
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an AML file system.

INSERT INTO azure.storage_cache.aml_filesystems (
tags,
location,
properties,
identity,
sku,
zones,
resource_group_name,
aml_filesystem_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ sku }}',
'{{ zones }}',
'{{ resource_group_name }}',
'{{ aml_filesystem_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type,
zones
;

UPDATE examples

Update an AML file system instance.

UPDATE azure.storage_cache.aml_filesystems
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type,
zones;

REPLACE examples

Create or update an AML file system.

REPLACE azure.storage_cache.aml_filesystems
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
sku = '{{ sku }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type,
zones;

DELETE examples

Schedules an AML file system for deletion.

DELETE FROM azure.storage_cache.aml_filesystems
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Archive data from the AML file system.

EXEC azure.storage_cache.aml_filesystems.archive 
@resource_group_name='{{ resource_group_name }}' --required,
@aml_filesystem_name='{{ aml_filesystem_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"filesystemPath": "{{ filesystemPath }}"
}'
;