Skip to content

Commit eff3632

Browse files
authored
Merge pull request #852 from Aman-Jain-14/feature-amlfs_auto_import_az_cli_amlfs_commands
[amlfs] Adding support for Auto Import
2 parents c2a92c2 + f2ebbc1 commit eff3632

13 files changed

Lines changed: 1031 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# [Group] _amlfs aml-filesystem_
2+
3+
Manage Aml Filesystem
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [Command] _amlfs auto-import create_
2+
3+
Create an auto import job.
4+
5+
## Versions
6+
7+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlY2FjaGUvYW1sZmlsZXN5c3RlbXMve30vYXV0b2ltcG9ydGpvYnMve30=/2025-07-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagecache/amlfilesystems/{}/autoimportjobs/{} 2025-07-01 -->
10+
11+
#### examples
12+
13+
- autoImportJobs_CreateOrUpdate
14+
```bash
15+
amlfs auto-import create --resource-group scgroup --aml-filesystem-name fs1 --auto-import-job-name autojob1 --tags "{Dept:ContosoAds}" --location eastus --auto-import-prefixes "[/]" --conflict-resolution-mode Skip --enable-deletions False --maximum-errors 0
16+
amlfs auto-import create --resource-group scgroup --aml-filesystem-name fs1 --auto-import-job-name autojob1 --tags "{Dept:ContosoAds}" --location eastus --auto-import-prefixes "[/a,/b]" --conflict-resolution-mode Skip --enable-deletions False --maximum-errors 0 --admin-status Enable
17+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _amlfs auto-import delete_
2+
3+
Delete an auto import job for deletion.
4+
5+
## Versions
6+
7+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlY2FjaGUvYW1sZmlsZXN5c3RlbXMve30vYXV0b2ltcG9ydGpvYnMve30=/2025-07-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagecache/amlfilesystems/{}/autoimportjobs/{} 2025-07-01 -->
10+
11+
#### examples
12+
13+
- autoImportJobs_Delete
14+
```bash
15+
amlfs auto-import delete --resource-group scgroup --aml-filesystem-name fs1 --auto-import-job-name autojob1
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _amlfs auto-import list_
2+
3+
List all the auto import jobs the user has access to under an AML File System.
4+
5+
## Versions
6+
7+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlY2FjaGUvYW1sZmlsZXN5c3RlbXMve30vYXV0b2ltcG9ydGpvYnM=/2025-07-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagecache/amlfilesystems/{}/autoimportjobs 2025-07-01 -->
10+
11+
#### examples
12+
13+
- autoImportJobs_ListByAmlFilesystem
14+
```bash
15+
amlfs auto-import list --resource-group scgroup --aml-filesystem-name fs1
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _amlfs auto-import show_
2+
3+
Get an auto import job.
4+
5+
## Versions
6+
7+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlY2FjaGUvYW1sZmlsZXN5c3RlbXMve30vYXV0b2ltcG9ydGpvYnMve30=/2025-07-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagecache/amlfilesystems/{}/autoimportjobs/{} 2025-07-01 -->
10+
11+
#### examples
12+
13+
- autoImportJobs_Get
14+
```bash
15+
amlfs auto-import show --resource-group scgroup --aml-filesystem-name fs1 --auto-import-job-name autojob1
16+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [Command] _amlfs auto-import update_
2+
3+
Update an auto import job instance.
4+
5+
## Versions
6+
7+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlY2FjaGUvYW1sZmlsZXN5c3RlbXMve30vYXV0b2ltcG9ydGpvYnMve30=/2025-07-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagecache/amlfilesystems/{}/autoimportjobs/{} 2025-07-01 -->
10+
11+
#### examples
12+
13+
- autoImportJobs_Update
14+
```bash
15+
amlfs auto-import create --resource-group scgroup --aml-filesystem-name fs1 --auto-import-job-name autojob1 --admin-status Disable
16+
amlfs auto-import create --resource-group scgroup --aml-filesystem-name fs1 --auto-import-job-name autojob1 --tags "{Dept:ContosoAds}"
17+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# [Group] _amlfs auto-import_
2+
3+
Manage Auto Import Job
4+
5+
## Commands
6+
7+
- [create](/Commands/amlfs/auto-import/_create.md)
8+
: Create an auto import job.
9+
10+
- [delete](/Commands/amlfs/auto-import/_delete.md)
11+
: Delete an auto import job for deletion.
12+
13+
- [list](/Commands/amlfs/auto-import/_list.md)
14+
: List all the auto import jobs the user has access to under an AML File System.
15+
16+
- [show](/Commands/amlfs/auto-import/_show.md)
17+
: Get an auto import job.
18+
19+
- [update](/Commands/amlfs/auto-import/_update.md)
20+
: Update an auto import job instance.

Commands/amlfs/readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# [Group] _amlfs_
22

3-
This is an extension to Azure CLI to manage Amlfs resources.
3+
Manage Azure Managed Lustre Filesystem
44

55
## Subgroups
66

7+
- [aml-filesystem](/Commands/amlfs/aml-filesystem/readme.md)
8+
: Manage Aml Filesystem
9+
710
- [auto-export](/Commands/amlfs/auto-export/readme.md)
811
: Manage Auto Export Job
912

13+
- [auto-import](/Commands/amlfs/auto-import/readme.md)
14+
: Manage Auto Import Job
15+
1016
- [import](/Commands/amlfs/import/readme.md)
1117
: Manage Import Job
1218

Commands/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
: Manage Azure Alerts Management Service Resource.
1919

2020
- [amlfs](/Commands/amlfs/readme.md)
21-
: This is an extension to Azure CLI to manage Amlfs resources.
21+
: Manage Azure Managed Lustre Filesystem
2222

2323
- [aosm](/Commands/aosm/readme.md)
2424
: Manage Azure Operator Service Manager resources.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagecache/amlfilesystems/{}/autoimportjobs", "version": "2025-07-01", "swagger": "mgmt-plane/storagecache/ResourceProviders/Microsoft.StorageCache/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZUNhY2hlL2FtbEZpbGVzeXN0ZW1zL3thbWxGaWxlc3lzdGVtTmFtZX0vYXV0b0ltcG9ydEpvYnM=/V/MjAyNS0wNy0wMQ=="}], "commandGroups": [{"name": "amlfs auto-import", "commands": [{"name": "list", "version": "2025-07-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagecache/amlfilesystems/{}/autoimportjobs", "version": "2025-07-01", "swagger": "mgmt-plane/storagecache/ResourceProviders/Microsoft.StorageCache/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZUNhY2hlL2FtbEZpbGVzeXN0ZW1zL3thbWxGaWxlc3lzdGVtTmFtZX0vYXV0b0ltcG9ydEpvYnM=/V/MjAyNS0wNy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.amlFilesystemName", "options": ["aml-filesystem-name"], "required": true, "idPart": "name", "help": {"short": "Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric."}, "format": {"pattern": "^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$", "maxLength": 80, "minLength": 2}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "autoImportJobs_ListByAmlFilesystem", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoImportJobs", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "amlFilesystemName", "arg": "$Path.amlFilesystemName", "required": true, "format": {"pattern": "^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$", "maxLength": 80, "minLength": 2}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-07-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.StorageCache/amlFilesystems/{}/autoImportJobs/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": "Enable"}, "type": "string", "name": "adminStatus", "enum": {"items": [{"value": "Disable"}, {"value": "Enable"}]}}, {"type": "array<string>", "name": "autoImportPrefixes", "item": {"type": "string"}}, {"default": {"value": "Skip"}, "type": "string", "name": "conflictResolutionMode", "enum": {"items": [{"value": "Fail"}, {"value": "OverwriteAlways"}, {"value": "OverwriteIfDirty"}, {"value": "Skip"}]}}, {"default": {"value": false}, "type": "boolean", "name": "enableDeletions"}, {"type": "integer64", "name": "maximumErrors"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"readOnly": true, "type": "object", "name": "status", "props": [{"readOnly": true, "type": "object", "name": "blobSyncEvents", "props": [{"readOnly": true, "type": "integer64", "name": "deletions"}, {"readOnly": true, "type": "integer64", "name": "importedDirectories"}, {"readOnly": true, "type": "integer64", "name": "importedFiles"}, {"readOnly": true, "type": "integer64", "name": "importedSymlinks"}, {"readOnly": true, "type": "dateTime", "name": "lastChangeFeedEventConsumedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "dateTime", "name": "lastTimeFullySynchronized", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "integer64", "name": "preexistingDirectories"}, {"readOnly": true, "type": "integer64", "name": "preexistingFiles"}, {"readOnly": true, "type": "integer64", "name": "preexistingSymlinks"}, {"readOnly": true, "type": "integer64", "name": "rateOfBlobImport"}, {"readOnly": true, "type": "integer64", "name": "totalBlobsImported"}, {"readOnly": true, "type": "integer64", "name": "totalConflicts"}, {"readOnly": true, "type": "integer64", "name": "totalErrors"}]}, {"readOnly": true, "type": "integer64", "name": "importedDirectories"}, {"readOnly": true, "type": "integer64", "name": "importedFiles"}, {"readOnly": true, "type": "integer64", "name": "importedSymlinks"}, {"readOnly": true, "type": "dateTime", "name": "lastCompletionTimeUTC", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "dateTime", "name": "lastStartedTimeUTC", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "integer64", "name": "preexistingDirectories"}, {"readOnly": true, "type": "integer64", "name": "preexistingFiles"}, {"readOnly": true, "type": "integer64", "name": "preexistingSymlinks"}, {"readOnly": true, "type": "integer64", "name": "rateOfBlobImport"}, {"readOnly": true, "type": "integer64", "name": "rateOfBlobWalk"}, {"readOnly": true, "type": "dateTime", "name": "scanEndTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "dateTime", "name": "scanStartTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "string", "name": "state", "enum": {"items": [{"value": "Disabled"}, {"value": "Disabling"}, {"value": "Failed"}, {"value": "InProgress"}]}}, {"readOnly": true, "type": "string", "name": "statusCode"}, {"readOnly": true, "type": "string", "name": "statusMessage"}, {"readOnly": true, "type": "integer64", "name": "totalBlobsImported"}, {"readOnly": true, "type": "integer64", "name": "totalBlobsWalked"}, {"readOnly": true, "type": "integer64", "name": "totalConflicts"}, {"readOnly": true, "type": "integer64", "name": "totalErrors"}], "clientFlatten": true}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]}

0 commit comments

Comments
 (0)