Skip to content

Commit aeb5a8c

Browse files
dazilbomerhaimov
authored andcommitted
VI stable/2024-01-01 - AMSless accounts (#25440)
* Adds base for updating Microsoft.VideoIndexer from version preview/2022-07-20-preview to version 2024-01-01 * Updates readme * Updates API version in new specs and examples * 1. Change media services to storage services. 2. Remove Error Codes from examples and swagger. * fix missing example * fix date of examples * fix example dates * fix user assigned identity * add 201 response code --------- Co-authored-by: Omer Haimovich <[email protected]>
1 parent e3f528e commit aeb5a8c

24 files changed

+1838
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-01-01",
4+
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e",
5+
"checkNameAvailabilityParameters": {
6+
"name": "vi1",
7+
"type": "Microsoft.VideoIndexer/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,19 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-01-01",
4+
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e",
5+
"checkNameAvailabilityParameters": {
6+
"name": "vi1",
7+
"type": "Microsoft.VideoIndexer/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+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"accountName": "contosto-videoanalyzer",
4+
"resourceGroupName": "contoso-rg",
5+
"api-version": "2024-01-01",
6+
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {},
11+
"204": {}
12+
}
13+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"accountName": "contosto-videoanalyzer",
4+
"resourceGroupName": "contoso-rg",
5+
"api-version": "2024-01-01",
6+
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer",
12+
"name": "vi1",
13+
"type": "Microsoft.VideoIndexer/accounts",
14+
"location": "NorthEurope",
15+
"tags": {},
16+
"properties": {
17+
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
18+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
19+
"accountName": "contosto-videoanalyzer",
20+
"storageServices": {
21+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
22+
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
23+
},
24+
"provisioningState": "Succeeded"
25+
},
26+
"identity": {
27+
"type": "UserAssigned",
28+
"userAssignedIdentities": {
29+
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
30+
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
31+
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"accountName": "contosto-videoanalyzer",
4+
"resourceGroupName": "contosto-videoanalyzer-rg",
5+
"api-version": "2024-01-01",
6+
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
7+
"parameters": {
8+
"properties": {
9+
"storageServices": {}
10+
},
11+
"identity": {
12+
"type": "SystemAssigned"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
20+
"name": "contosto-videoanalyzer",
21+
"location": "NorthEurope",
22+
"type": "Microsoft.VideoIndexer/accounts",
23+
"tags": {},
24+
"properties": {
25+
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
26+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
27+
"accountName": "contosto-videoanalyzer",
28+
"storageServices": {
29+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
30+
},
31+
"totalSecondsIndexed": 0,
32+
"provisioningState": "Succeeded"
33+
},
34+
"identity": {
35+
"principalId": "43a83441-c17f-4e06-84a3-2eaf86668da7",
36+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
37+
"type": "SystemAssigned"
38+
}
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"parameters": {
3+
"accountName": "contosto-videoanalyzer",
4+
"resourceGroupName": "contosto-videoanalyzer-rg",
5+
"api-version": "2024-01-01",
6+
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
7+
"parameters": {
8+
"properties": {
9+
"storageServices": {
10+
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
11+
}
12+
},
13+
"identity": {
14+
"type": "UserAssigned",
15+
"userAssignedIdentities": {
16+
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
17+
}
18+
}
19+
}
20+
},
21+
"responses": {
22+
"200": {
23+
"body": {
24+
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
25+
"name": "contosto-videoanalyzer",
26+
"location": "NorthEurope",
27+
"type": "Microsoft.VideoIndexer/accounts",
28+
"tags": {},
29+
"properties": {
30+
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
31+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
32+
"accountName": "contosto-videoanalyzer",
33+
"storageServices": {
34+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
35+
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
36+
},
37+
"totalSecondsIndexed": 0,
38+
"provisioningState": "Succeeded"
39+
},
40+
"identity": {
41+
"type": "UserAssigned",
42+
"userAssignedIdentities": {
43+
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
44+
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
45+
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}
52+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"parameters": {
3+
"accountName": "contosto-videoanalyzer",
4+
"resourceGroupName": "contosto-videoanalyzer-rg",
5+
"api-version": "2024-01-01",
6+
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
7+
"parameters": {
8+
"location": "NorthEurope",
9+
"properties": {
10+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
11+
"storageServices": {
12+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
13+
}
14+
},
15+
"identity": {
16+
"type": "SystemAssigned"
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
24+
"name": "contosto-videoanalyzer",
25+
"location": "NorthEurope",
26+
"type": "Microsoft.VideoIndexer/accounts",
27+
"tags": {},
28+
"properties": {
29+
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
30+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
31+
"accountName": "contosto-videoanalyzer",
32+
"storageServices": {
33+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
34+
},
35+
"totalSecondsIndexed": 0,
36+
"provisioningState": "Succeeded"
37+
},
38+
"identity": {
39+
"principalId": "43a83441-c17f-4e06-84a3-2eaf86668da7",
40+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
41+
"type": "SystemAssigned"
42+
}
43+
}
44+
},
45+
"201": {
46+
"body": {
47+
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
48+
"name": "contosto-videoanalyzer",
49+
"location": "NorthEurope",
50+
"type": "Microsoft.VideoIndexer/accounts",
51+
"tags": {},
52+
"properties": {
53+
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
54+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
55+
"accountName": "contosto-videoanalyzer",
56+
"storageServices": {
57+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
58+
},
59+
"totalSecondsIndexed": 0,
60+
"provisioningState": "Succeeded"
61+
},
62+
"identity": {
63+
"principalId": "43a83441-c17f-4e06-84a3-2eaf86668da7",
64+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
65+
"type": "SystemAssigned"
66+
}
67+
}
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"parameters": {
3+
"accountName": "contosto-videoanalyzer",
4+
"resourceGroupName": "contosto-videoanalyzer-rg",
5+
"api-version": "2024-01-01",
6+
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3",
7+
"parameters": {
8+
"location": "NorthEurope",
9+
"properties": {
10+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
11+
"storageServices": {
12+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
13+
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
14+
}
15+
},
16+
"identity": {
17+
"type": "UserAssigned",
18+
"userAssignedIdentities": {
19+
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
20+
}
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
28+
"name": "contosto-videoanalyzer",
29+
"location": "NorthEurope",
30+
"type": "Microsoft.VideoIndexer/accounts",
31+
"tags": {},
32+
"properties": {
33+
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
34+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
35+
"accountName": "contosto-videoanalyzer",
36+
"storageServices": {
37+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
38+
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
39+
},
40+
"totalSecondsIndexed": 0,
41+
"provisioningState": "Succeeded"
42+
},
43+
"identity": {
44+
"type": "UserAssigned",
45+
"userAssignedIdentities": {
46+
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
47+
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
48+
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
49+
}
50+
}
51+
}
52+
}
53+
},
54+
"201": {
55+
"body": {
56+
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
57+
"name": "contosto-videoanalyzer",
58+
"location": "NorthEurope",
59+
"type": "Microsoft.VideoIndexer/accounts",
60+
"tags": {},
61+
"properties": {
62+
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
63+
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
64+
"accountName": "contosto-videoanalyzer",
65+
"storageServices": {
66+
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
67+
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
68+
},
69+
"totalSecondsIndexed": 0,
70+
"provisioningState": "Succeeded"
71+
},
72+
"identity": {
73+
"type": "UserAssigned",
74+
"userAssignedIdentities": {
75+
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
76+
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
77+
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
78+
}
79+
}
80+
}
81+
}
82+
}
83+
}
84+
}

0 commit comments

Comments
 (0)