Skip to content

Commit 064d1da

Browse files
seaeunlee14seaeunlee
authored andcommitted
mediaservices microsoft.media 2023 01 01: Add Minimum TLS Version property (Azure#22614)
* Adds base for updating Microsoft.Media/Accounts from version stable/2021-11-01 to version 2023-01-01 * Updates readme * Updates API version in new specs and examples * add tls version * add default * add to readme test * fix readme --------- Co-authored-by: Sea Eun Lee <[email protected]>
1 parent c088755 commit 064d1da

25 files changed

+4603
-6
lines changed

specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/Accounts.json

Lines changed: 1857 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "contosorg",
5+
"locationName": "japanwest",
6+
"api-version": "2023-01-01",
7+
"parameters": {
8+
"name": "contosotv",
9+
"type": "Microsoft.Media/mediaservices"
10+
}
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"nameAvailable": true,
16+
"reason": "None",
17+
"message": ""
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "contosorg",
5+
"accountName": "contososports",
6+
"api-version": "2023-01-01"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "contosorg",
5+
"accountName": "contosotv",
6+
"api-version": "2023-01-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "contososports",
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv",
13+
"type": "Microsoft.Media/mediaservices",
14+
"location": "South Central US",
15+
"tags": {
16+
"key1": "value1",
17+
"key2": "value2"
18+
},
19+
"identity": {
20+
"type": "UserAssigned",
21+
"userAssignedIdentities": {
22+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
23+
"principalId": "00000000-0000-0000-0000-000000000000",
24+
"clientId": "00000000-0000-0000-0000-000000000000"
25+
},
26+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {
27+
"principalId": "00000000-0000-0000-0000-000000000000",
28+
"clientId": "00000000-0000-0000-0000-000000000000"
29+
}
30+
}
31+
},
32+
"properties": {
33+
"mediaServiceId": "00000000-0000-0000-0000-000000000001",
34+
"encryption": {
35+
"type": "CustomerKey",
36+
"keyVaultProperties": {
37+
"keyIdentifier": "https://keyvault.vault.azure.net/keys/key1",
38+
"currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1"
39+
},
40+
"identity": {
41+
"userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
42+
"useSystemAssignedIdentity": false
43+
}
44+
},
45+
"storageAccounts": [
46+
{
47+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore",
48+
"type": "Primary",
49+
"identity": {
50+
"userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
51+
"useSystemAssignedIdentity": false
52+
}
53+
}
54+
],
55+
"storageAuthentication": "ManagedIdentity",
56+
"publicNetworkAccess": "Enabled",
57+
"keyDelivery": {
58+
"accessControl": {
59+
"defaultAction": "Allow"
60+
}
61+
},
62+
"privateEndpointConnections": [
63+
{
64+
"name": "00000000-0000-0000-0000-000000000001",
65+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001",
66+
"type": "Microsoft.Media/mediaservices/privateEndpointConnections",
67+
"properties": {
68+
"provisioningState": "Succeeded",
69+
"privateLinkServiceConnectionState": {
70+
"status": "Approved",
71+
"description": "test description"
72+
},
73+
"privateEndpoint": {
74+
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1"
75+
}
76+
}
77+
},
78+
{
79+
"name": "00000000-0000-0000-0000-000000000002",
80+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002",
81+
"type": "Microsoft.Media/mediaservices/privateEndpointConnections",
82+
"properties": {
83+
"provisioningState": "Succeeded",
84+
"privateLinkServiceConnectionState": {
85+
"status": "Pending",
86+
"description": "test description"
87+
},
88+
"privateEndpoint": {
89+
"id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2"
90+
}
91+
}
92+
}
93+
],
94+
"minimumTlsVersion": "Tls12"
95+
}
96+
}
97+
}
98+
}
99+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "contosorg",
5+
"api-version": "2023-01-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "contosotv",
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv",
14+
"type": "Microsoft.Media/mediaservices",
15+
"location": "South Central US",
16+
"tags": {
17+
"key1": "value1",
18+
"key2": "value2"
19+
},
20+
"identity": {
21+
"type": "UserAssigned",
22+
"userAssignedIdentities": {
23+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
24+
"principalId": "00000000-0000-0000-0000-000000000000",
25+
"clientId": "00000000-0000-0000-0000-000000000000"
26+
},
27+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {
28+
"principalId": "00000000-0000-0000-0000-000000000000",
29+
"clientId": "00000000-0000-0000-0000-000000000000"
30+
}
31+
}
32+
},
33+
"properties": {
34+
"mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d",
35+
"encryption": {
36+
"type": "CustomerKey",
37+
"keyVaultProperties": {
38+
"keyIdentifier": "https://keyvault.vault.azure.net/keys/key1",
39+
"currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1"
40+
},
41+
"identity": {
42+
"userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
43+
"useSystemAssignedIdentity": false
44+
}
45+
},
46+
"storageAccounts": [
47+
{
48+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosotvstore",
49+
"type": "Primary"
50+
}
51+
],
52+
"storageAuthentication": "ManagedIdentity",
53+
"publicNetworkAccess": "Enabled",
54+
"keyDelivery": {
55+
"accessControl": {
56+
"defaultAction": "Allow"
57+
}
58+
},
59+
"privateEndpointConnections": [
60+
{
61+
"name": "00000000-0000-0000-0000-000000000001",
62+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001",
63+
"type": "Microsoft.Media/mediaservices/privateEndpointConnections",
64+
"properties": {
65+
"provisioningState": "Succeeded",
66+
"privateLinkServiceConnectionState": {
67+
"status": "Approved",
68+
"description": "test description"
69+
},
70+
"privateEndpoint": {
71+
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1"
72+
}
73+
}
74+
},
75+
{
76+
"name": "00000000-0000-0000-0000-000000000002",
77+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002",
78+
"type": "Microsoft.Media/mediaservices/privateEndpointConnections",
79+
"properties": {
80+
"provisioningState": "Succeeded",
81+
"privateLinkServiceConnectionState": {
82+
"status": "Pending",
83+
"description": "test description"
84+
},
85+
"privateEndpoint": {
86+
"id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2"
87+
}
88+
}
89+
}
90+
]
91+
}
92+
},
93+
{
94+
"name": "contosomovies",
95+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomovies",
96+
"type": "Microsoft.Media/mediaservices",
97+
"location": "South Central US",
98+
"tags": {
99+
"key1": "value1",
100+
"key2": "value2"
101+
},
102+
"identity": {
103+
"type": "UserAssigned",
104+
"userAssignedIdentities": {
105+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
106+
"principalId": "00000000-0000-0000-0000-000000000000",
107+
"clientId": "00000000-0000-0000-0000-000000000000"
108+
},
109+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {
110+
"principalId": "00000000-0000-0000-0000-000000000000",
111+
"clientId": "00000000-0000-0000-0000-000000000000"
112+
}
113+
}
114+
},
115+
"properties": {
116+
"mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee",
117+
"encryption": {
118+
"type": "CustomerKey",
119+
"keyVaultProperties": {
120+
"keyIdentifier": "https://keyvault.vault.azure.net/keys/key1",
121+
"currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1"
122+
},
123+
"identity": {
124+
"userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
125+
"useSystemAssignedIdentity": false
126+
}
127+
},
128+
"storageAccounts": [
129+
{
130+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosomoviesstore",
131+
"type": "Primary"
132+
}
133+
],
134+
"storageAuthentication": "ManagedIdentity",
135+
"publicNetworkAccess": "Enabled",
136+
"keyDelivery": {
137+
"accessControl": {
138+
"defaultAction": "Allow"
139+
}
140+
},
141+
"privateEndpointConnections": []
142+
}
143+
}
144+
]
145+
}
146+
}
147+
}
148+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "contosorg",
5+
"accountName": "contososports",
6+
"api-version": "2023-01-01",
7+
"parameters": {
8+
"deviceId": "contosiothubhost_contosoiotdevice"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"usageDataCollectionPolicy": {
15+
"dataCollectionFrequency": "PT10M",
16+
"dataReportingFrequency": "PT1H",
17+
"maxAllowedUnreportedUsageDuration": "PT36H",
18+
"eventHubDetails": {
19+
"name": "ams-x",
20+
"namespace": "ams-y-1-1",
21+
"token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData"
22+
}
23+
}
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "contosorg",
5+
"api-version": "2023-01-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "contosotv",
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv",
14+
"type": "Microsoft.Media/mediaservices",
15+
"location": "South Central US",
16+
"tags": {
17+
"key1": "value1",
18+
"key2": "value2"
19+
},
20+
"properties": {
21+
"mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d",
22+
"storageAccounts": [
23+
{
24+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosotvstore",
25+
"type": "Primary"
26+
}
27+
],
28+
"privateEndpointConnections": []
29+
}
30+
},
31+
{
32+
"name": "contosomovies",
33+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomovies",
34+
"type": "Microsoft.Media/mediaservices",
35+
"location": "South Central US",
36+
"tags": {
37+
"key1": "value1",
38+
"key2": "value2"
39+
},
40+
"properties": {
41+
"mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee",
42+
"storageAccounts": [
43+
{
44+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosomoviesstore",
45+
"type": "Primary"
46+
}
47+
],
48+
"privateEndpointConnections": []
49+
}
50+
},
51+
{
52+
"name": "fabrikamnews",
53+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/fabrikamnews",
54+
"type": "Microsoft.Media/mediaservices",
55+
"location": "East US",
56+
"tags": {
57+
"key1": "value1",
58+
"key2": "value2"
59+
},
60+
"properties": {
61+
"mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd",
62+
"storageAccounts": [
63+
{
64+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore",
65+
"type": "Primary"
66+
}
67+
],
68+
"privateEndpointConnections": []
69+
}
70+
}
71+
]
72+
}
73+
}
74+
}
75+
}

0 commit comments

Comments
 (0)