Skip to content

Commit 2b2b737

Browse files
author
Aman Jain
committed
[StorageCache] Adding support for Import, AutoExport and AutoImport HSM Jobs
1 parent 59d4a36 commit 2b2b737

File tree

3 files changed

+128
-51
lines changed

3 files changed

+128
-51
lines changed

src/StorageCache/StorageCache.Autorest/docs/Get-AzStorageCacheAutoExportJob.md

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,50 @@ Returns an auto export job.
4141

4242
## EXAMPLES
4343

44-
### Example 1: {{ Add title here }}
44+
### Example 1: Get all auto export jobs for an AML filesystem
4545
```powershell
46-
{{ Add code here }}
46+
Get-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
4747
```
4848

4949
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
51-
```
52-
53-
{{ Add description here }}
54-
55-
### Example 2: {{ Add title here }}
56-
```powershell
57-
{{ Add code here }}
58-
```
59-
60-
```output
61-
{{ Add output here (remove the output block if the example doesn't have an output) }}
62-
```
63-
64-
{{ Add description here }}
50+
AdminStatus : Enabled
51+
AutoExportPrefix : {/export}
52+
ClientRequestId :
53+
Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myresourcegroup/providers/Microsoft.Sto
54+
rageCache/amlFilesystems/myamlfilesystem/autoExportJobs/myautoexportjob1
55+
Location : East US
56+
Name : myautoexportjob1
57+
ProvisioningState : Succeeded
58+
State : Running
59+
StatusMessage : Auto export job is running successfully
60+
SystemDataCreatedAt : 12/8/2024 2:30:15 PM
61+
SystemDataCreatedBy : [email protected]
62+
SystemDataCreatedByType : User
63+
SystemDataLastModifiedAt : 12/8/2024 2:30:15 PM
64+
SystemDataLastModifiedBy : [email protected]
65+
SystemDataLastModifiedByType : User
66+
Type : Microsoft.StorageCache/amlFilesystems/autoExportJobs
67+
68+
AdminStatus : Disabled
69+
AutoExportPrefix : {/backup}
70+
ClientRequestId :
71+
Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myresourcegroup/providers/Microsoft.Sto
72+
rageCache/amlFilesystems/myamlfilesystem/autoExportJobs/myautoexportjob2
73+
Location : East US
74+
Name : myautoexportjob2
75+
ProvisioningState : Succeeded
76+
State : Stopped
77+
StatusMessage : Auto export job is disabled
78+
SystemDataCreatedAt : 12/8/2024 3:00:10 PM
79+
SystemDataCreatedBy : [email protected]
80+
SystemDataCreatedByType : User
81+
SystemDataLastModifiedAt : 12/8/2024 3:05:15 PM
82+
SystemDataLastModifiedBy : [email protected]
83+
SystemDataLastModifiedByType : User
84+
Type : Microsoft.StorageCache/amlFilesystems/autoExportJobs
85+
```
86+
87+
Gets all auto export jobs for the specified AML filesystem.
6588

6689
## PARAMETERS
6790

src/StorageCache/StorageCache.Autorest/docs/Get-AzStorageCacheAutoImportJob.md

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,50 @@ Returns an auto import job.
4141

4242
## EXAMPLES
4343

44-
### Example 1: {{ Add title here }}
44+
### Example 1: Get all auto import jobs for an AML filesystem
4545
```powershell
46-
{{ Add code here }}
46+
Get-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
4747
```
4848

4949
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
51-
```
52-
53-
{{ Add description here }}
54-
55-
### Example 2: {{ Add title here }}
56-
```powershell
57-
{{ Add code here }}
58-
```
59-
60-
```output
61-
{{ Add output here (remove the output block if the example doesn't have an output) }}
62-
```
63-
64-
{{ Add description here }}
50+
AdminStatus : Enabled
51+
AutoImportPrefix : {/automount}
52+
ClientRequestId :
53+
Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myresourcegroup/providers/Microsoft.Sto
54+
rageCache/amlFilesystems/myamlfilesystem/autoImportJobs/myautoimportjob1
55+
Location : East US
56+
Name : myautoimportjob1
57+
ProvisioningState : Succeeded
58+
State : Running
59+
StatusMessage : Auto import job is running successfully
60+
SystemDataCreatedAt : 12/8/2024 2:30:15 PM
61+
SystemDataCreatedBy : [email protected]
62+
SystemDataCreatedByType : User
63+
SystemDataLastModifiedAt : 12/8/2024 2:30:15 PM
64+
SystemDataLastModifiedBy : [email protected]
65+
SystemDataLastModifiedByType : User
66+
Type : Microsoft.StorageCache/amlFilesystems/autoImportJobs
67+
68+
AdminStatus : Disabled
69+
AutoImportPrefix : {/batch}
70+
ClientRequestId :
71+
Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myresourcegroup/providers/Microsoft.Sto
72+
rageCache/amlFilesystems/myamlfilesystem/autoImportJobs/myautoimportjob2
73+
Location : East US
74+
Name : myautoimportjob2
75+
ProvisioningState : Succeeded
76+
State : Stopped
77+
StatusMessage : Auto import job is disabled
78+
SystemDataCreatedAt : 12/8/2024 3:00:10 PM
79+
SystemDataCreatedBy : [email protected]
80+
SystemDataCreatedByType : User
81+
SystemDataLastModifiedAt : 12/8/2024 3:05:15 PM
82+
SystemDataLastModifiedBy : [email protected]
83+
SystemDataLastModifiedByType : User
84+
Type : Microsoft.StorageCache/amlFilesystems/autoImportJobs
85+
```
86+
87+
Gets all auto import jobs for the specified AML filesystem.
6588

6689
## PARAMETERS
6790

src/StorageCache/StorageCache.Autorest/docs/Get-AzStorageCacheImportJob.md

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,58 @@ Returns an import job.
4141

4242
## EXAMPLES
4343

44-
### Example 1: {{ Add title here }}
44+
### Example 1: Get all import jobs for an AML filesystem
4545
```powershell
46-
{{ Add code here }}
46+
Get-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
4747
```
4848

4949
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
51-
```
52-
53-
{{ Add description here }}
54-
55-
### Example 2: {{ Add title here }}
56-
```powershell
57-
{{ Add code here }}
58-
```
59-
60-
```output
61-
{{ Add output here (remove the output block if the example doesn't have an output) }}
62-
```
63-
64-
{{ Add description here }}
50+
AdminStatus : Completed
51+
ClientRequestId :
52+
ConflictResolution : OverwriteAlways
53+
FailureReason :
54+
Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myresourcegroup/providers/Microsoft.Sto
55+
rageCache/amlFilesystems/myamlfilesystem/importJobs/myimportjob1
56+
ImportPrefixesSource :
57+
ImportPrefixes : {/path1}
58+
Location : East US
59+
MaximumError : 0
60+
Name : myimportjob1
61+
ProvisioningState : Succeeded
62+
State : Completed
63+
StatusMessage : Import job completed successfully
64+
SystemDataCreatedAt : 12/8/2024 2:30:15 PM
65+
SystemDataCreatedBy : [email protected]
66+
SystemDataCreatedByType : User
67+
SystemDataLastModifiedAt : 12/8/2024 2:35:20 PM
68+
SystemDataLastModifiedBy : [email protected]
69+
SystemDataLastModifiedByType : User
70+
Type : Microsoft.StorageCache/amlFilesystems/importJobs
71+
72+
AdminStatus : InProgress
73+
ClientRequestId :
74+
ConflictResolution : OverwriteIfDirty
75+
FailureReason :
76+
Id : /subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myresourcegroup/providers/Microsoft.Sto
77+
rageCache/amlFilesystems/myamlfilesystem/importJobs/myimportjob2
78+
ImportPrefixesSource :
79+
ImportPrefixes : {/path2}
80+
Location : East US
81+
MaximumError : 5
82+
Name : myimportjob2
83+
ProvisioningState : Succeeded
84+
State : InProgress
85+
StatusMessage : Import job is running
86+
SystemDataCreatedAt : 12/8/2024 3:00:10 PM
87+
SystemDataCreatedBy : [email protected]
88+
SystemDataCreatedByType : User
89+
SystemDataLastModifiedAt : 12/8/2024 3:00:10 PM
90+
SystemDataLastModifiedBy : [email protected]
91+
SystemDataLastModifiedByType : User
92+
Type : Microsoft.StorageCache/amlFilesystems/importJobs
93+
```
94+
95+
Gets all import jobs for the specified AML filesystem.
6596

6697
## PARAMETERS
6798

0 commit comments

Comments
 (0)