From b84e104dd86dab6c2ce796a8bccfa2efc8432997 Mon Sep 17 00:00:00 2001 From: giakas Date: Wed, 11 Jan 2023 00:51:06 -0800 Subject: [PATCH] fix missing ids in examples --- ...sync-accounts-create-managed-identity.json | 6 ++++ .../examples/async-accounts-create.json | 28 ++++++++++++++++++- .../resource-manager/readme.test.md | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json index 0973e7a7a7cc..cd930f50fd27 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json @@ -52,6 +52,9 @@ "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" }, "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", "location": "South Central US", "tags": { "key1": "value1", @@ -131,6 +134,9 @@ }, "200": { "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", "location": "South Central US", "tags": { "key1": "value1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json index 8ffc78b3744c..5252e50edfe1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json @@ -23,8 +23,11 @@ } }, "responses": { - "200": { + "201": { "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", "location": "South Central US", "tags": { "key1": "value1", @@ -42,6 +45,29 @@ "publicNetworkAccess": "Enabled" } } + }, + "200": { + "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary" + } + ], + "storageAuthentication": "System", + "publicNetworkAccess": "Enabled" + } + } } } } diff --git a/specification/mediaservices/resource-manager/readme.test.md b/specification/mediaservices/resource-manager/readme.test.md index ce0b209ce881..76e9d4db0591 100644 --- a/specification/mediaservices/resource-manager/readme.test.md +++ b/specification/mediaservices/resource-manager/readme.test.md @@ -4,7 +4,7 @@ These settings apply only when `--tag=package-encoding-2022-07` is specified on ``` yaml $(tag) == 'package-encoding-2022-07' test-resources: -- Microsoft.Media/Encoding/stable/2022-07-01/scenarios/basic.yaml +- Microsoft.Media/Accounts/stable/2021-11-01/scenarios/basic.yaml - Microsoft.Media/Metadata/stable/2022-08-01/scenarios/basic.yaml - Microsoft.Media/Encoding/stable/2022-07-01/scenarios/basic.yaml - Microsoft.Media/Streaming/stable/2022-08-01/scenarios/basic.yaml