Skip to content

Commit a10c9df

Browse files
visinglFredericHeem
authored andcommitted
Add locations, sku and remove IoT connection properties (Azure#18481)
* Add locations and sku * Pretty * update
1 parent 17b4bdd commit a10c9df

31 files changed

+3122
-2
lines changed

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/deviceupdate.json

Lines changed: 1956 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"api-version": "2022-04-01-preview",
7+
"Account": {
8+
"location": "westus2",
9+
"properties": {}
10+
}
11+
},
12+
"responses": {
13+
"201": {
14+
"body": {
15+
"name": "contoso",
16+
"location": "westus2",
17+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
18+
"type": "Microsoft.DeviceUpdate/accounts",
19+
"properties": {
20+
"provisioningState": "Accepted",
21+
"hostName": "contoso.api.adu.microsoft.com",
22+
"privateEndpointConnections": [],
23+
"sku": "Standard",
24+
"locations": [
25+
{
26+
"name": "westus2",
27+
"role": "Primary"
28+
},
29+
{
30+
"name": "westcentralus",
31+
"role": "Failover"
32+
}
33+
]
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"api-version": "2022-04-01-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"api-version": "2022-04-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "contoso",
12+
"location": "westus2",
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
14+
"type": "Microsoft.DeviceUpdate/accounts",
15+
"properties": {
16+
"provisioningState": "Succeeded",
17+
"hostName": "contoso.api.adu.microsoft.com",
18+
"sku": "Standard",
19+
"locations": [
20+
{
21+
"name": "westus2",
22+
"role": "Primary"
23+
},
24+
{
25+
"name": "westcentralus",
26+
"role": "Failover"
27+
}
28+
],
29+
"privateEndpointConnections": [
30+
{
31+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01",
32+
"name": "peexample01",
33+
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections",
34+
"properties": {
35+
"provisioningState": "Succeeded",
36+
"privateEndpoint": {
37+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01"
38+
},
39+
"privateLinkServiceConnectionState": {
40+
"status": "Approved",
41+
"description": "Auto-Approved",
42+
"actionsRequired": "None"
43+
},
44+
"groupIds": [
45+
"groupId"
46+
]
47+
}
48+
}
49+
]
50+
}
51+
}
52+
}
53+
}
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"api-version": "2022-04-01-preview"
7+
},
8+
"responses": {
9+
"200": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"api-version": "2022-04-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"nextLink": "string",
11+
"value": [
12+
{
13+
"name": "contoso",
14+
"location": "westus2",
15+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
16+
"type": "Microsoft.DeviceUpdate/accounts",
17+
"properties": {
18+
"provisioningState": "Succeeded",
19+
"hostName": "contoso.api.adu.microsoft.com",
20+
"sku": "Standard",
21+
"locations": [
22+
{
23+
"name": "westus2",
24+
"role": "Primary"
25+
},
26+
{
27+
"name": "westcentralus",
28+
"role": "Failover"
29+
}
30+
],
31+
"privateEndpointConnections": [
32+
{
33+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01",
34+
"name": "peexample01",
35+
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections",
36+
"properties": {
37+
"provisioningState": "Succeeded",
38+
"privateEndpoint": {
39+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01"
40+
},
41+
"privateLinkServiceConnectionState": {
42+
"status": "Approved",
43+
"description": "Auto-Approved",
44+
"actionsRequired": "None"
45+
},
46+
"groupIds": [
47+
"groupId"
48+
]
49+
}
50+
}
51+
]
52+
}
53+
}
54+
]
55+
}
56+
}
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"api-version": "2022-04-01-preview",
7+
"accountUpdatePayload": {
8+
"tags": {
9+
"tagKey": "tagValue"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"name": "contoso",
17+
"location": "westus2",
18+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
19+
"type": "Microsoft.DeviceUpdate/accounts",
20+
"properties": {
21+
"provisioningState": "Succeeded",
22+
"hostName": "contoso.api.adu.microsoft.com",
23+
"sku": "Standard",
24+
"locations": [
25+
{
26+
"name": "westus2",
27+
"role": "Primary"
28+
},
29+
{
30+
"name": "westcentralus",
31+
"role": "Failover"
32+
}
33+
],
34+
"privateEndpointConnections": [
35+
{
36+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01",
37+
"name": "peexample01",
38+
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections",
39+
"properties": {
40+
"provisioningState": "Succeeded",
41+
"privateEndpoint": {
42+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01"
43+
},
44+
"privateLinkServiceConnectionState": {
45+
"status": "Approved",
46+
"description": "Auto-Approved",
47+
"actionsRequired": "None"
48+
},
49+
"groupIds": [
50+
"groupId"
51+
]
52+
}
53+
}
54+
]
55+
},
56+
"tags": {
57+
"tagKey": "tagValue"
58+
}
59+
}
60+
},
61+
"201": {
62+
"body": {
63+
"name": "contoso",
64+
"location": "westus2",
65+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
66+
"type": "Microsoft.DeviceUpdate/accounts",
67+
"identity": {
68+
"principalId": "00000000-0000-0000-0000-000000000000",
69+
"tenantId": "00000000-0000-0000-0000-000000000000",
70+
"type": "SystemAssigned"
71+
},
72+
"properties": {
73+
"provisioningState": "Created",
74+
"hostName": "contoso.api.adu.microsoft.com",
75+
"sku": "Standard",
76+
"locations": [
77+
{
78+
"name": "westus2",
79+
"role": "Primary"
80+
},
81+
{
82+
"name": "westcentralus",
83+
"role": "Failover"
84+
}
85+
],
86+
"privateEndpointConnections": [
87+
{
88+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01",
89+
"name": "peexample01",
90+
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections",
91+
"properties": {
92+
"provisioningState": "Succeeded",
93+
"privateEndpoint": {
94+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01"
95+
},
96+
"privateLinkServiceConnectionState": {
97+
"status": "Approved",
98+
"description": "Auto-Approved",
99+
"actionsRequired": "None"
100+
},
101+
"groupIds": [
102+
"groupId"
103+
]
104+
}
105+
}
106+
]
107+
},
108+
"tags": {
109+
"tagKey": "tagValue"
110+
}
111+
}
112+
}
113+
}
114+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"api-version": "2022-04-01-preview",
5+
"request": {
6+
"name": "contoso",
7+
"type": "Microsoft.DeviceUpdate/accounts"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": false,
14+
"reason": "AlreadyExists",
15+
"message": "Resource name already exists"
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"api-version": "2022-04-01-preview",
5+
"request": {
6+
"name": "contoso",
7+
"type": "Microsoft.DeviceUpdate/accounts"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": true
14+
}
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"instanceName": "blue",
7+
"api-version": "2022-04-01-preview",
8+
"Instance": {
9+
"location": "westus2",
10+
"properties": {
11+
"iotHubs": [
12+
{
13+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
14+
}
15+
],
16+
"enableDiagnostics": false,
17+
"diagnosticStorageProperties": {
18+
"authenticationType": "KeyBased",
19+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount",
20+
"connectionString": "string"
21+
}
22+
}
23+
}
24+
},
25+
"responses": {
26+
"201": {
27+
"body": {
28+
"name": "blue",
29+
"location": "westus2",
30+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue",
31+
"type": "Microsoft.DeviceUpdate/accounts/instances",
32+
"properties": {
33+
"provisioningState": "Accepted",
34+
"accountName": "contoso",
35+
"iotHubs": [
36+
{
37+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
38+
}
39+
],
40+
"enableDiagnostics": false,
41+
"diagnosticStorageProperties": {
42+
"authenticationType": "KeyBased",
43+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"
44+
}
45+
}
46+
}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)