Skip to content

Commit 8ef4889

Browse files
Aman-Jain-14Aman JainVeryEarly
authored
[StorageCache] Adding support for Import, AutoExport and AutoImport HSM Jobs (#28524)
Co-authored-by: Aman Jain <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent e480ce5 commit 8ef4889

File tree

95 files changed

+28964
-6204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+28964
-6204
lines changed

src/StorageCache/StorageCache.Autorest/Properties/AssemblyInfo.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageCache")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
2727

2828

29+
30+
31+
32+
33+
34+
35+
36+

src/StorageCache/StorageCache.Autorest/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ For information on how to develop for `Az.StorageCache`, see [how-to.md](how-to.
2727
> see https://aka.ms/autorest
2828
2929
``` yaml
30-
commit: f3a04ddc23771fca8a99b179ea8eaa428c21fa2f
30+
commit: 213441b94d4801b488e57f22187bdc862c2d51b3
3131
require:
3232
- $(this-folder)/../../readme.azure.noprofile.md
33+
3334
input-file:
34-
- $(repo)/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/amlfilesystem.json
35+
- $(repo)/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2025-07-01/amlfilesystem.json
3536

3637
module-version: 0.1.0
3738
title: StorageCache
@@ -81,10 +82,6 @@ directive:
8182
set:
8283
parameter-name: Id
8384

84-
- where:
85-
subject: AscOperation
86-
hide: true
87-
8885
- where:
8986
model-name: AmlFilesystem
9087
set:
@@ -95,4 +92,13 @@ directive:
9592
- ResourceGroupName
9693
- HealthState
9794
- SkuName
95+
96+
- where:
97+
variant: ^Create$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
98+
remove: true
99+
100+
- where:
101+
subject: .*PrimingJob$
102+
variant: ^(Start|Stop|Resume|Pause)(?!.*?(Expanded|JsonFilePath|JsonString))
103+
remove: true
98104
```
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "amlFilesystems/autoExportJobs",
3+
"apiVersion": "2025-07-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzStorageCacheAutoExportJob",
10+
"description": "Returns an auto export job.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheautoexportjob"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-AmlFilesystemName <String>",
20+
"-Name <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Returns an auto export job.",
30+
"parameters": [
31+
{
32+
"name": "-AmlFilesystemName",
33+
"value": "[Path.amlFilesystemName]"
34+
},
35+
{
36+
"name": "-Name",
37+
"value": "[Path.autoExportJobName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzStorageCacheAutoExportJob",
53+
"description": "Schedules an auto export job for deletion.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache/remove-azstoragecacheautoexportjob"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-AmlFilesystemName <String>",
63+
"-Name <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Schedules an auto export job for deletion.",
73+
"parameters": [
74+
{
75+
"name": "-AmlFilesystemName",
76+
"value": "[Path.amlFilesystemName]"
77+
},
78+
{
79+
"name": "-Name",
80+
"value": "[Path.autoExportJobName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "amlFilesystems/autoImportJobs",
3+
"apiVersion": "2025-07-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzStorageCacheAutoImportJob",
10+
"description": "Returns an auto import job.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoImportJobs/{autoImportJobName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheautoimportjob"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-AmlFilesystemName <String>",
20+
"-Name <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Returns an auto import job.",
30+
"parameters": [
31+
{
32+
"name": "-AmlFilesystemName",
33+
"value": "[Path.amlFilesystemName]"
34+
},
35+
{
36+
"name": "-Name",
37+
"value": "[Path.autoImportJobName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzStorageCacheAutoImportJob",
53+
"description": "Schedules an auto import job for deletion.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoImportJobs/{autoImportJobName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache/remove-azstoragecacheautoimportjob"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-AmlFilesystemName <String>",
63+
"-Name <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Schedules an auto import job for deletion.",
73+
"parameters": [
74+
{
75+
"name": "-AmlFilesystemName",
76+
"value": "[Path.amlFilesystemName]"
77+
},
78+
{
79+
"name": "-Name",
80+
"value": "[Path.autoImportJobName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "amlFilesystems/importJobs",
3+
"apiVersion": "2025-07-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzStorageCacheImportJob",
10+
"description": "Returns an import job.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheimportjob"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-AmlFilesystemName <String>",
20+
"-Name <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Returns an import job.",
30+
"parameters": [
31+
{
32+
"name": "-AmlFilesystemName",
33+
"value": "[Path.amlFilesystemName]"
34+
},
35+
{
36+
"name": "-Name",
37+
"value": "[Path.importJobName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzStorageCacheImportJob",
53+
"description": "Schedules an import job for deletion.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.storagecache/remove-azstoragecacheimportjob"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-AmlFilesystemName <String>",
63+
"-Name <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Schedules an import job for deletion.",
73+
"parameters": [
74+
{
75+
"name": "-AmlFilesystemName",
76+
"value": "[Path.amlFilesystemName]"
77+
},
78+
{
79+
"name": "-Name",
80+
"value": "[Path.importJobName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}

src/StorageCache/StorageCache.Autorest/UX/Microsoft.StorageCache/amlFilesystems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "amlFilesystems",
3-
"apiVersion": "2023-05-01",
3+
"apiVersion": "2025-07-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.storagecache"
66
},

0 commit comments

Comments
 (0)