Skip to content

Commit 34926cb

Browse files
adburchAdam Burch
authored andcommitted
Dev/adburch/2022 01 01 (Azure#17034)
* Adds base for updating Microsoft.StorageCache from version stable/2021-09-01 to version 2022-01-01 * Updates readme * Updates API version in new specs and examples * Updates for 2022-01-01 stable version. * Fix prettier errors. * Add usages API Co-authored-by: Adam Burch <[email protected]>
1 parent 1775e73 commit 34926cb

37 files changed

+5142
-8
lines changed

specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2019-08-01-preview/examples/StorageTargets_ListByCache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"properties": {
4141
"junctions": [
4242
{
43-
"namespacePath": "/some/crazy/place/on/cache",
43+
"namespacePath": "/some/arbitrary/place/on/cache",
4444
"targetPath": "/"
4545
}
4646
],

specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2019-11-01/examples/StorageTargets_ListByCache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"properties": {
4141
"junctions": [
4242
{
43-
"namespacePath": "/some/crazy/place/on/cache",
43+
"namespacePath": "/some/arbitrary/place/on/cache",
4444
"targetPath": "/"
4545
}
4646
],

specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/examples/StorageTargets_ListByCache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"properties": {
5757
"junctions": [
5858
{
59-
"namespacePath": "/some/crazy/place/on/cache",
59+
"namespacePath": "/some/arbitrary/place/on/cache",
6060
"targetPath": "/"
6161
}
6262
],

specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-10-01/examples/StorageTargets_ListByCache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"properties": {
5959
"junctions": [
6060
{
61-
"namespacePath": "/some/crazy/place/on/cache",
61+
"namespacePath": "/some/arbitrary/place/on/cache",
6262
"targetPath": "/",
6363
"nfsAccessPolicy": "default"
6464
}

specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-03-01/examples/StorageTargets_ListByCache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"properties": {
5959
"junctions": [
6060
{
61-
"namespacePath": "/some/crazy/place/on/cache",
61+
"namespacePath": "/some/arbitrary/place/on/cache",
6262
"targetPath": "/",
6363
"nfsAccessPolicy": "default"
6464
}

specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-05-01/examples/StorageTargets_ListByCache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"properties": {
5959
"junctions": [
6060
{
61-
"namespacePath": "/some/crazy/place/on/cache",
61+
"namespacePath": "/some/arbitrary/place/on/cache",
6262
"targetPath": "/",
6363
"nfsAccessPolicy": "default"
6464
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "westus",
5+
"operationId": "testoperationid",
6+
"api-version": "2022-01-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/id/locations/westus/ascOperations/testoperationid",
12+
"name": "testoperationid",
13+
"startTime": "2022-01-01T13:13:13.933Z",
14+
"endTime": "2022-01-01T16:13:13.933Z",
15+
"status": "Succeeded"
16+
}
17+
}
18+
}
19+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus",
5+
"api-version": "2022-01-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"limit": 4,
13+
"unit": "Count",
14+
"currentValue": 1,
15+
"name": {
16+
"value": "Cache",
17+
"localizedValue": "Cache"
18+
}
19+
},
20+
{
21+
"limit": 4,
22+
"unit": "Count",
23+
"currentValue": 0,
24+
"name": {
25+
"value": "AmlFilesystem",
26+
"localizedValue": "AmlFilesystem"
27+
}
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,291 @@
1+
{
2+
"parameters": {
3+
"resourceGroupName": "scgroup",
4+
"cacheName": "sc1",
5+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
6+
"api-version": "2022-01-01",
7+
"cache": {
8+
"tags": {
9+
"Dept": "Contoso"
10+
},
11+
"location": "westus",
12+
"identity": {
13+
"type": "UserAssigned",
14+
"userAssignedIdentities": {
15+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}
16+
}
17+
},
18+
"properties": {
19+
"cacheSizeGB": 3072,
20+
"subnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1",
21+
"encryptionSettings": {
22+
"keyEncryptionKey": {
23+
"keyUrl": "https://keyvault-cmk.vault.azure.net/keys/key2047/test",
24+
"sourceVault": {
25+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"
26+
}
27+
}
28+
},
29+
"directoryServicesSettings": {
30+
"activeDirectory": {
31+
"primaryDnsIpAddress": "192.0.2.10",
32+
"secondaryDnsIpAddress": "192.0.2.11",
33+
"cacheNetBiosName": "contosoSmb",
34+
"domainName": "contosoAd.contoso.local",
35+
"domainNetBiosName": "contosoAd",
36+
"credentials": {
37+
"username": "consotoAdmin",
38+
"password": "<password>"
39+
}
40+
},
41+
"usernameDownload": {
42+
"extendedGroups": true,
43+
"usernameSource": "LDAP",
44+
"ldapServer": "192.0.2.12",
45+
"ldapBaseDN": "dc=contosoad,dc=contoso,dc=local",
46+
"credentials": {
47+
"bindDn": "cn=ldapadmin,dc=contosoad,dc=contoso,dc=local",
48+
"bindPassword": "<bindPassword>"
49+
}
50+
}
51+
},
52+
"securitySettings": {
53+
"accessPolicies": [
54+
{
55+
"name": "default",
56+
"accessRules": [
57+
{
58+
"scope": "default",
59+
"access": "rw",
60+
"suid": false,
61+
"submountAccess": true,
62+
"rootSquash": false
63+
}
64+
]
65+
}
66+
]
67+
}
68+
},
69+
"sku": {
70+
"name": "Standard_2G"
71+
}
72+
}
73+
},
74+
"responses": {
75+
"202": {},
76+
"201": {
77+
"body": {
78+
"tags": {
79+
"Dept": "Contoso"
80+
},
81+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1",
82+
"location": "westus",
83+
"name": "sc1",
84+
"type": "Microsoft.StorageCache/Cache",
85+
"systemData": {
86+
"createdBy": "user1",
87+
"createdByType": "User",
88+
"createdAt": "2020-01-01T17:18:19.1234567Z",
89+
"lastModifiedBy": "user2",
90+
"lastModifiedByType": "User",
91+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
92+
},
93+
"properties": {
94+
"cacheSizeGB": 3072,
95+
"health": {
96+
"state": "Transitioning",
97+
"statusDescription": "Cache is being created.",
98+
"conditions": [
99+
{
100+
"timestamp": "2021-04-21T18:25:43.511Z",
101+
"message": "Cannot contact DNS server"
102+
}
103+
]
104+
},
105+
"mountAddresses": [
106+
"192.168.1.1",
107+
"192.168.1.2"
108+
],
109+
"provisioningState": "Succeeded",
110+
"subnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1",
111+
"upgradeStatus": {
112+
"currentFirmwareVersion": "5.3.23",
113+
"firmwareUpdateStatus": "available",
114+
"firmwareUpdateDeadline": "2019-04-21T18:25:43.511Z",
115+
"lastFirmwareUpdate": "2019-01-21T18:25:43.511Z",
116+
"pendingFirmwareVersion": "5.3.24"
117+
},
118+
"networkSettings": {
119+
"mtu": 1500,
120+
"dnsServers": [
121+
"10.1.22.33",
122+
"10.1.12.33"
123+
],
124+
"dnsSearchDomain": "contoso.com",
125+
"ntpServer": "time.contoso.com"
126+
},
127+
"securitySettings": {
128+
"accessPolicies": [
129+
{
130+
"name": "default",
131+
"accessRules": [
132+
{
133+
"scope": "default",
134+
"access": "rw",
135+
"suid": false,
136+
"submountAccess": true,
137+
"rootSquash": false
138+
}
139+
]
140+
}
141+
]
142+
},
143+
"encryptionSettings": {
144+
"keyEncryptionKey": {
145+
"keyUrl": "https://keyvault-cmk.vault.azure.net/keys/key2048/test",
146+
"sourceVault": {
147+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"
148+
}
149+
}
150+
},
151+
"directoryServicesSettings": {
152+
"activeDirectory": {
153+
"primaryDnsIpAddress": "192.0.2.10",
154+
"secondaryDnsIpAddress": "192.0.2.11",
155+
"domainName": "contosoAd.contoso.local",
156+
"domainNetBiosName": "contosoAd",
157+
"cacheNetBiosName": "contosoSmb",
158+
"domainJoined": "No"
159+
},
160+
"usernameDownload": {
161+
"extendedGroups": true,
162+
"usernameSource": "LDAP",
163+
"groupFileURI": "",
164+
"userFileURI": "",
165+
"ldapServer": "192.0.2.12",
166+
"ldapBaseDN": "dc=contosoad,dc=contoso,dc=local",
167+
"encryptLdapConnection": false,
168+
"requireValidCertificate": false,
169+
"autoDownloadCertificate": false,
170+
"caCertificateURI": "",
171+
"usernameDownloaded": "No"
172+
}
173+
},
174+
"zones": [
175+
"1"
176+
]
177+
},
178+
"sku": {
179+
"name": "Standard_2G"
180+
}
181+
}
182+
},
183+
"200": {
184+
"body": {
185+
"tags": {
186+
"Dept": "Contoso"
187+
},
188+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1",
189+
"location": "westus",
190+
"name": "sc1",
191+
"type": "Microsoft.StorageCache/Cache",
192+
"systemData": {
193+
"createdBy": "user1",
194+
"createdByType": "User",
195+
"createdAt": "2020-01-01T17:18:19.1234567Z",
196+
"lastModifiedBy": "user2",
197+
"lastModifiedByType": "User",
198+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
199+
},
200+
"properties": {
201+
"cacheSizeGB": 3072,
202+
"health": {
203+
"state": "Transitioning",
204+
"statusDescription": "Cache is being created.",
205+
"conditions": [
206+
{
207+
"timestamp": "2021-04-21T18:25:43.511Z",
208+
"message": "Cannot contact DNS server"
209+
}
210+
]
211+
},
212+
"mountAddresses": [
213+
"192.168.1.1",
214+
"192.168.1.2"
215+
],
216+
"provisioningState": "Updating",
217+
"subnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1",
218+
"upgradeStatus": {
219+
"currentFirmwareVersion": "V5.1.12",
220+
"firmwareUpdateStatus": "available",
221+
"firmwareUpdateDeadline": "2019-04-21T18:25:43.511Z",
222+
"lastFirmwareUpdate": "2019-01-21T18:25:43.511Z",
223+
"pendingFirmwareVersion": "V5.1.15"
224+
},
225+
"networkSettings": {
226+
"mtu": 1500,
227+
"dnsServers": [
228+
"10.1.22.33",
229+
"10.1.12.33"
230+
],
231+
"dnsSearchDomain": "contoso.com",
232+
"ntpServer": "time.contoso.com"
233+
},
234+
"securitySettings": {
235+
"accessPolicies": [
236+
{
237+
"name": "default",
238+
"accessRules": [
239+
{
240+
"scope": "default",
241+
"access": "rw",
242+
"suid": false,
243+
"submountAccess": true,
244+
"rootSquash": false
245+
}
246+
]
247+
}
248+
]
249+
},
250+
"encryptionSettings": {
251+
"keyEncryptionKey": {
252+
"keyUrl": "https://keyvault-cmk.vault.azure.net/keys/key2048/test",
253+
"sourceVault": {
254+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"
255+
}
256+
}
257+
},
258+
"directoryServicesSettings": {
259+
"activeDirectory": {
260+
"primaryDnsIpAddress": "192.0.2.10",
261+
"secondaryDnsIpAddress": "192.0.2.11",
262+
"domainName": "contosoAd.contoso.local",
263+
"domainNetBiosName": "contosoAd",
264+
"cacheNetBiosName": "contosoSmb",
265+
"domainJoined": "Yes"
266+
},
267+
"usernameDownload": {
268+
"extendedGroups": true,
269+
"usernameSource": "LDAP",
270+
"groupFileURI": "",
271+
"userFileURI": "",
272+
"ldapServer": "192.0.2.12",
273+
"ldapBaseDN": "dc=contosoad,dc=contoso,dc=local",
274+
"encryptLdapConnection": false,
275+
"requireValidCertificate": false,
276+
"autoDownloadCertificate": false,
277+
"caCertificateURI": "",
278+
"usernameDownloaded": "Yes"
279+
}
280+
},
281+
"zones": [
282+
"1"
283+
]
284+
},
285+
"sku": {
286+
"name": "Standard_2G"
287+
}
288+
}
289+
}
290+
}
291+
}

0 commit comments

Comments
 (0)