diff --git a/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs index da7e0cfa70b0..3250bbf8deea 100644 --- a/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs +++ b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs @@ -47,8 +47,8 @@ public static class CognitiveServicesManagementTestUtilities // These are used to create default accounts public static string DefaultLocation = IsTestTenant ? null : "westus"; - public static SkuName DefaultSkuName = SkuName.S1; - public static Kind DefaultKind = Kind.TextAnalytics; + public const string DefaultSkuName = SkuName.S1; + public const string DefaultKind = Kind.TextAnalytics; public static Dictionary DefaultTags = new Dictionary { {"key1","value1"}, @@ -133,17 +133,17 @@ public static string CreateResourceGroup(ResourceManagementClient resourcesClien return rgname; } - public static string CreateCognitiveServicesAccount(CognitiveServicesManagementClient cognitiveServicesMgmtClient, string rgname, Kind? kind = null) + public static string CreateCognitiveServicesAccount(CognitiveServicesManagementClient cognitiveServicesMgmtClient, string rgname, string kind = null) { string accountName = TestUtilities.GenerateName("csa"); CognitiveServicesAccountCreateParameters parameters = GetDefaultCognitiveServicesAccountParameters(); - if (kind.HasValue) parameters.Kind = kind.Value; + if (!string.IsNullOrEmpty(kind)) parameters.Kind = kind; var createRequest2 = cognitiveServicesMgmtClient.CognitiveServicesAccounts.Create(rgname, accountName, parameters); return accountName; } - public static CognitiveServicesAccount CreateAndValidateAccountWithOnlyRequiredParameters(CognitiveServicesManagementClient cognitiveServicesMgmtClient, string rgName, SkuName skuName, Kind accountType = Kind.Recommendations) + public static CognitiveServicesAccount CreateAndValidateAccountWithOnlyRequiredParameters(CognitiveServicesManagementClient cognitiveServicesMgmtClient, string rgName, string skuName, string accountType = Kind.Recommendations, string location = null) { // Create account with only required params var accountName = TestUtilities.GenerateName("csa"); @@ -151,18 +151,16 @@ public static CognitiveServicesAccount CreateAndValidateAccountWithOnlyRequiredP { Sku = new Sku { Name = skuName }, Kind = accountType, - Location = CognitiveServicesManagementTestUtilities.DefaultLocation, + Location = location ?? DefaultLocation, Properties = new object(), }; var account = cognitiveServicesMgmtClient.CognitiveServicesAccounts.Create(rgName, accountName, parameters); - CognitiveServicesManagementTestUtilities.VerifyAccountProperties(account, false); - Assert.Equal(skuName, account.Sku.Name); - Assert.Equal(accountType.ToString(), account.Kind); + VerifyAccountProperties(account, false, accountType, skuName, location ?? DefaultLocation); return account; } - public static void VerifyAccountProperties(CognitiveServicesAccount account, bool useDefaults) + public static void VerifyAccountProperties(CognitiveServicesAccount account, bool useDefaults, string kind = DefaultKind, string skuName = DefaultSkuName, string location = "westus") { Assert.NotNull(account); // verifies that the account is actually created Assert.NotNull(account.Id); @@ -188,6 +186,12 @@ public static void VerifyAccountProperties(CognitiveServicesAccount account, boo Assert.Equal(account.Tags["key1"], "value1"); Assert.Equal(account.Tags["key2"], "value2"); } + else + { + Assert.Equal(skuName, account.Sku.Name); + Assert.Equal(kind, account.Kind); + Assert.Equal(location, account.Location); + } } public static void ValidateExpectedException(Action action, string expectedErrorCode) diff --git a/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesCreateAccountErrorTest2.json b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesCreateAccountErrorTest2.json new file mode 100644 index 000000000000..85b4443c9e98 --- /dev/null +++ b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesCreateAccountErrorTest2.json @@ -0,0 +1,216 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res3070?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczMwNzA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "124717e4-3aba-4073-8825-63440f891055" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3070\",\r\n \"name\": \"res3070\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "167" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 16 Dec 2016 10:15:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "7781665e-7709-481f-b1ec-ef18b7cea0c3" + ], + "x-ms-correlation-request-id": [ + "7781665e-7709-481f-b1ec-ef18b7cea0c3" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161216T101508Z:7781665e-7709-481f-b1ec-ef18b7cea0c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3070/providers/Microsoft.CognitiveServices/accounts/csa4421?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczMwNzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0NDIxP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"F0\"\r\n },\r\n \"kind\": \"NonExistAPI\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "111" + ], + "x-ms-client-request-id": [ + "a74e2344-0895-450a-8815-28292c138ded" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidApiSetId\",\r\n \"message\": \"The API set 'NonExistAPI' is invalid.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "86" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 16 Dec 2016 10:15:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "e370d9e1-2b14-4815-944c-4dc1b927249a" + ], + "x-ms-correlation-request-id": [ + "e370d9e1-2b14-4815-944c-4dc1b927249a" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161216T101518Z:e370d9e1-2b14-4815-944c-4dc1b927249a" + ] + }, + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3070/providers/Microsoft.CognitiveServices/accounts/csa4421?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczMwNzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0NDIxP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"N0\"\r\n },\r\n \"kind\": \"Academic\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "108" + ], + "x-ms-client-request-id": [ + "b5df1fe8-a73d-4b80-8ef2-549665f1feaf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidSkuId\",\r\n \"message\": \"The SKU name 'N0' in API set 'Academic' is invalid.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "97" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 16 Dec 2016 10:15:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "e5fb9183-6a03-4149-b41d-4c9d08efd024" + ], + "x-ms-correlation-request-id": [ + "e5fb9183-6a03-4149-b41d-4c9d08efd024" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161216T101523Z:e5fb9183-6a03-4149-b41d-4c9d08efd024" + ] + }, + "StatusCode": 400 + } + ], + "Names": { + "CreateResourceGroup": [ + "res3070" + ], + "CognitiveServicesCreateAccountErrorTest2": [ + "csa4421" + ] + }, + "Variables": { + "SubscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicsAccountCreateAllApisTest.json b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicsAccountCreateAllApisTest.json new file mode 100644 index 000000000000..75d5d33711e0 --- /dev/null +++ b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicsAccountCreateAllApisTest.json @@ -0,0 +1,1333 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res9030?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczkwMzA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "e345c84e-112b-4f63-9ef5-e1757a0abaff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030\",\r\n \"name\": \"res9030\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "167" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:50:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "e9fad70d-f599-4b8d-8466-fc8e74416750" + ], + "x-ms-correlation-request-id": [ + "e9fad70d-f599-4b8d-8466-fc8e74416750" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065040Z:e9fad70d-f599-4b8d-8466-fc8e74416750" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa7302?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E3MzAyP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Academic\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "108" + ], + "x-ms-client-request-id": [ + "330f6963-10b3-4480-91c6-1935a1c60af7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa7302\",\r\n \"name\": \"csa7302\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Academic\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A08.9568059Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/academic/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"64aedc3d5dcf47758e5f74b36767d1aa\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "489" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A08.9568059Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "d1a0eaf2-aba4-4a3f-b8c2-587781913f2f" + ], + "x-ms-correlation-request-id": [ + "d1a0eaf2-aba4-4a3f-b8c2-587781913f2f" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065109Z:d1a0eaf2-aba4-4a3f-b8c2-587781913f2f" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa1224?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExMjI0P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Autosuggest\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "116" + ], + "x-ms-client-request-id": [ + "821d6492-26cf-4665-b6f4-e221be8cc744" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa1224\",\r\n \"name\": \"csa1224\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Autosuggest\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A12.1338138Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v5.0/suggestions\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"08641b01faaa4818b1939b43c0f9556f\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "512" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A12.1338138Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "8c48f5c4-a37b-4f9e-b7e1-592ff1672654" + ], + "x-ms-correlation-request-id": [ + "8c48f5c4-a37b-4f9e-b7e1-592ff1672654" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065112Z:8c48f5c4-a37b-4f9e-b7e1-592ff1672654" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa7867?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E3ODY3P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Search\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "111" + ], + "x-ms-client-request-id": [ + "0c56cf9d-c1cf-45bf-8afa-41d252ede471" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa7867\",\r\n \"name\": \"csa7867\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Search\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A14.9644942Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v5.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"c429dfc02f0d47ff9b763a98a50c5315\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "495" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A14.9644942Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "cd3a5f6e-641f-4eb5-986d-f6182d636f73" + ], + "x-ms-correlation-request-id": [ + "cd3a5f6e-641f-4eb5-986d-f6182d636f73" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065115Z:cd3a5f6e-641f-4eb5-986d-f6182d636f73" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa6029?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MDI5P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Bing.Speech\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "111" + ], + "x-ms-client-request-id": [ + "59f7c511-fbba-47b1-a486-1fbe303be4de" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa6029\",\r\n \"name\": \"csa6029\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Bing.Speech\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A19.523811Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"c618b050d75744689a3a5e7307e9cd18\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "493" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A19.523811Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "8a725445-b617-4efc-adb1-19486fd928aa" + ], + "x-ms-correlation-request-id": [ + "8a725445-b617-4efc-adb1-19486fd928aa" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065120Z:8a725445-b617-4efc-adb1-19486fd928aa" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa6202?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MjAyP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.SpellCheck\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "115" + ], + "x-ms-client-request-id": [ + "5c45ea1a-7d5a-4a99-9d77-de7ca34161a5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa6202\",\r\n \"name\": \"csa6202\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.SpellCheck\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A22.2110989Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v5.0/spellcheck\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"ad69f6fb08b643b2b59842987818f10a\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A22.2110989Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "2d177303-d8ea-4013-b1ad-34aca7ad8cab" + ], + "x-ms-correlation-request-id": [ + "2d177303-d8ea-4013-b1ad-34aca7ad8cab" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065122Z:2d177303-d8ea-4013-b1ad-34aca7ad8cab" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa3783?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EzNzgzP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"ComputerVision\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "114" + ], + "x-ms-client-request-id": [ + "59cf82d1-f3f3-4cb2-94af-8466b6b2a2ee" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa3783\",\r\n \"name\": \"csa3783\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"ComputerVision\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A27.7335822Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/vision/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"8b3b595038ae431285e1ba52a6514708\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "493" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A27.7335822Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-request-id": [ + "ca15c28b-09d8-4850-87f0-e02ad33200ac" + ], + "x-ms-correlation-request-id": [ + "ca15c28b-09d8-4850-87f0-e02ad33200ac" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065128Z:ca15c28b-09d8-4850-87f0-e02ad33200ac" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa3345?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EzMzQ1P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"ContentModerator\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "116" + ], + "x-ms-client-request-id": [ + "e1c6d9f6-cc5d-47aa-84e8-19b2b515af46" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa3345\",\r\n \"name\": \"csa3345\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"ContentModerator\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A30.0888128Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/contentmoderator\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"e9736b36e6a64670a5e1dc5dd86f3c18\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "514" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A30.0888128Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "4fb53c9f-7352-4ce9-abbf-be9769429a9e" + ], + "x-ms-correlation-request-id": [ + "4fb53c9f-7352-4ce9-abbf-be9769429a9e" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065130Z:4fb53c9f-7352-4ce9-abbf-be9769429a9e" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa8724?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4NzI0P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Emotion\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "107" + ], + "x-ms-client-request-id": [ + "e32195fa-e56d-4280-b684-a90bd551b8ee" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa8724\",\r\n \"name\": \"csa8724\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Emotion\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A32.9014766Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/emotion/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"7018dc89e464455b86712ccf2354adfb\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "487" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A32.9014766Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "709322a4-349e-4320-85e9-324cf723a341" + ], + "x-ms-correlation-request-id": [ + "709322a4-349e-4320-85e9-324cf723a341" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065133Z:709322a4-349e-4320-85e9-324cf723a341" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa3000?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EzMDAwP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ], + "x-ms-client-request-id": [ + "94d93fc3-b531-420b-a8f7-04a251da3dd1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa3000\",\r\n \"name\": \"csa3000\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A40.3705475Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/face/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"e404485efe8b41cdafbf5089369e1dc9\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "481" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A40.3705475Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "3b466341-ab38-4f96-a045-f6132dcc586a" + ], + "x-ms-correlation-request-id": [ + "3b466341-ab38-4f96-a045-f6132dcc586a" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065140Z:3b466341-ab38-4f96-a045-f6132dcc586a" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa6014?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MDE0P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"LUIS\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ], + "x-ms-client-request-id": [ + "deae1e9f-f0f7-4cb1-8d27-a5960ee3e95f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa6014\",\r\n \"name\": \"csa6014\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"LUIS\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A42.8769205Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/luis/v1\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"baa071fc86304ab7940989a50705a12d\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "479" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A42.8769205Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-request-id": [ + "54718803-95f8-4a43-8cbe-02e673f91151" + ], + "x-ms-correlation-request-id": [ + "54718803-95f8-4a43-8cbe-02e673f91151" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065143Z:54718803-95f8-4a43-8cbe-02e673f91151" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa1?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "115" + ], + "x-ms-client-request-id": [ + "2ca1f709-61db-4eb9-a1a1-68d1cb0a8b0c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa1\",\r\n \"name\": \"csa1\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A45.0491458Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"866dd754de5f4ea58c8f09d70babaf98\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "511" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A45.0491458Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "4f4c2bcd-0ced-4048-8bfe-ab110e2749f1" + ], + "x-ms-correlation-request-id": [ + "4f4c2bcd-0ced-4048-8bfe-ab110e2749f1" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065145Z:4f4c2bcd-0ced-4048-8bfe-ab110e2749f1" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa9595?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5NTk1P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"SpeakerRecognition\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "118" + ], + "x-ms-client-request-id": [ + "f7608bfc-1673-40d2-9ff0-7f01d3efcf00" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa9595\",\r\n \"name\": \"csa9595\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"SpeakerRecognition\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A47.227039Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/spid/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"adbc19a4624245688d3f90ac50c0ae03\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A47.227039Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-request-id": [ + "8c02865a-4a11-45d5-b973-f4bcf2ec5352" + ], + "x-ms-correlation-request-id": [ + "8c02865a-4a11-45d5-b973-f4bcf2ec5352" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065147Z:8c02865a-4a11-45d5-b973-f4bcf2ec5352" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa9588?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5NTg4P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Speech\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "106" + ], + "x-ms-client-request-id": [ + "82b533fc-b798-47cb-95fa-1d3e41e31f03" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa9588\",\r\n \"name\": \"csa9588\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Speech\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A49.7394176Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/speech/v0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"199c505b18f24ca9a7f82555605fa073\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A49.7394176Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-request-id": [ + "05ef7097-6ee9-4cd1-a7fb-73d580d38154" + ], + "x-ms-correlation-request-id": [ + "05ef7097-6ee9-4cd1-a7fb-73d580d38154" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065150Z:05ef7097-6ee9-4cd1-a7fb-73d580d38154" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa2643?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EyNjQzP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"SpeechTranslation\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "117" + ], + "x-ms-client-request-id": [ + "f93af5cd-7072-45ed-a292-cc3d66847f2e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa2643\",\r\n \"name\": \"csa2643\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"SpeechTranslation\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A52.3218621Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"fc003f54ea5341b7a89d4aab3a1c974d\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "500" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A52.3218621Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "d09a5bdb-5284-475a-a934-bb0f12414710" + ], + "x-ms-correlation-request-id": [ + "d09a5bdb-5284-475a-a934-bb0f12414710" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065152Z:d09a5bdb-5284-475a-a934-bb0f12414710" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa41?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0MT9hcGktdmVyc2lvbj0yMDE2LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "113" + ], + "x-ms-client-request-id": [ + "ad037a05-9596-43f0-9854-24a2ed3183fb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa41\",\r\n \"name\": \"csa41\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A54.4191914Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"9f8ae597bb12441b85e0230fd4e9ff9f\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A54.4191914Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-request-id": [ + "382a2ef0-4418-4648-88a3-14c6578fdea3" + ], + "x-ms-correlation-request-id": [ + "382a2ef0-4418-4648-88a3-14c6578fdea3" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065154Z:382a2ef0-4418-4648-88a3-14c6578fdea3" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa1335?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExMzM1P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextTranslation\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "115" + ], + "x-ms-client-request-id": [ + "ca923c0d-811d-4825-9494-fdc24a70eef5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa1335\",\r\n \"name\": \"csa1335\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextTranslation\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A56.8851826Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"2466ecec2999459bb0f9f738762cd614\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A56.8851826Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1183" + ], + "x-ms-request-id": [ + "98e09a7e-5347-4c25-b9bc-0990379c9258" + ], + "x-ms-correlation-request-id": [ + "98e09a7e-5347-4c25-b9bc-0990379c9258" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065157Z:98e09a7e-5347-4c25-b9bc-0990379c9258" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa7764?api-version=2016-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczkwMzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E3NzY0P2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"WebLM\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "d8652469-9b29-4a2c-9481-06cc00a020e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res9030/providers/Microsoft.CognitiveServices/accounts/csa7764\",\r\n \"name\": \"csa7764\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"WebLM\",\r\n \"etag\": \"W/\\\"datetime'2016-12-19T06%3A51%3A59.1523284Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.projectoxford.ai/text/weblm/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"ca88f0d5d4614b89859010e80ad182c4\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "488" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 06:51:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"datetime'2016-12-19T06%3A51%3A59.1523284Z'\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1182" + ], + "x-ms-request-id": [ + "6e92cff2-7195-4403-b9c0-995ff52854c4" + ], + "x-ms-correlation-request-id": [ + "6e92cff2-7195-4403-b9c0-995ff52854c4" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20161219T065159Z:6e92cff2-7195-4403-b9c0-995ff52854c4" + ] + }, + "StatusCode": 201 + } + ], + "Names": { + "CreateResourceGroup": [ + "res9030" + ], + "CreateAndValidateAccountWithOnlyRequiredParameters": [ + "csa7302", + "csa1224", + "csa7867", + "csa6029", + "csa6202", + "csa3783", + "csa3345", + "csa8724", + "csa3000", + "csa6014", + "csa1", + "csa9595", + "csa9588", + "csa2643", + "csa41", + "csa1335", + "csa7764" + ] + }, + "Variables": { + "SubscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs index 6b0fd3813bcc..28d6202526c0 100644 --- a/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs +++ b/src/ResourceManagement/CognitiveServices/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs @@ -67,6 +67,39 @@ public void CognitiveServicesAccountCreateTest() } } + [Fact] + public void CognitiveServicsAccountCreateAllApisTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var resourcesClient = CognitiveServicesManagementTestUtilities.GetResourceManagementClient(context, handler); + var cognitiveServicesMgmtClient = CognitiveServicesManagementTestUtilities.GetCognitiveServicesManagementClient(context, handler); + + // Create resource group + var rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); + + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Academic, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingAutosuggest, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingSearch, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.BingSpeech, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingSpellCheck, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.ComputerVision, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.ContentModerator, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Emotion, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Face, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.LUIS, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.Recommendations, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.SpeakerRecognition, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Speech, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.SpeechTranslation, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.TextAnalytics, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.TextTranslation, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.WebLM, "westus"); + } + } + [Fact] public void CognitiveServicesAccountDeleteTest() { @@ -358,6 +391,46 @@ public void CognitiveServicesCreateAccountErrorTest() } } + [Fact] + public void CognitiveServicesCreateAccountErrorTest2() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var resourcesClient = CognitiveServicesManagementTestUtilities.GetResourceManagementClient(context, handler); + var cognitiveServicesMgmtClient = CognitiveServicesManagementTestUtilities.GetCognitiveServicesManagementClient(context, handler); + + // Create resource group + var rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); + + var accountName = TestUtilities.GenerateName("csa"); + var nonExistApiPara = new CognitiveServicesAccountCreateParameters + { + Sku = new Sku { Name = SkuName.F0 }, + Kind = "NonExistAPI", + Location = CognitiveServicesManagementTestUtilities.DefaultLocation, + Properties = new object(), + }; + + var nonExistSkuPara = new CognitiveServicesAccountCreateParameters + { + Sku = new Sku { Name = "N0" }, + Kind = Kind.Academic, + Location = CognitiveServicesManagementTestUtilities.DefaultLocation, + Properties = new object(), + }; + + CognitiveServicesManagementTestUtilities.ValidateExpectedException( + () => cognitiveServicesMgmtClient.CognitiveServicesAccounts.Create(rgname, accountName, nonExistApiPara), + "InvalidApiSetId"); + + CognitiveServicesManagementTestUtilities.ValidateExpectedException( + () => cognitiveServicesMgmtClient.CognitiveServicesAccounts.Create(rgname, accountName, nonExistSkuPara), + "InvalidSkuId"); + } + } + [Fact] public void CognitiveServicesGetAccountErrorTest() { diff --git a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs index 0d34d07d7ece..f39c11a77187 100644 --- a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs +++ b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs @@ -31,7 +31,7 @@ public CognitiveServicesAccountCreateParameters() { } /// Initializes a new instance of the /// CognitiveServicesAccountCreateParameters class. /// - public CognitiveServicesAccountCreateParameters(Sku sku, Kind kind, string location, object properties, IDictionary tags = default(IDictionary)) + public CognitiveServicesAccountCreateParameters(Sku sku, string kind, string location, object properties, IDictionary tags = default(IDictionary)) { Sku = sku; Kind = kind; @@ -47,11 +47,14 @@ public CognitiveServicesAccountCreateParameters() { } /// /// Required. Indicates the type of cognitive service account. - /// Possible values include: 'ComputerVision', 'Emotion', 'Face', - /// 'LUIS', 'Recommendations', 'Speech', 'TextAnalytics', 'WebLM' + /// Possible values include: 'Academic', 'Bing.Autosuggest', + /// 'Bing.Search', 'Bing.Speech', 'Bing.SpellCheck', + /// 'ComputerVision', 'ContentModerator', 'Emotion', 'Face', 'LUIS', + /// 'Recommendations', 'SpeakerRecognition', 'Speech', + /// 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' /// [JsonProperty(PropertyName = "kind")] - public Kind Kind { get; set; } + public string Kind { get; set; } /// /// Required. Gets or sets the location of the resource. This will be @@ -88,6 +91,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); } + if (Kind == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); + } if (Location == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Location"); diff --git a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/ErrorException.cs b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/ErrorException.cs index b2657398b2f0..a4b074aa0e2c 100644 --- a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/ErrorException.cs +++ b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/ErrorException.cs @@ -12,14 +12,14 @@ namespace Microsoft.Azure.Management.CognitiveServices.Models using System; using System.Net.Http; using System.Runtime.Serialization; -#if !PORTABLE +#if !PORTABLE && !DNXCORE50 using System.Security.Permissions; #endif /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE && !DNXCORE50 [Serializable] #endif public class ErrorException : RestException @@ -65,7 +65,7 @@ public ErrorException(string message, Exception innerException) { } -#if !PORTABLE +#if !PORTABLE && !DNXCORE50 /// /// Initializes a new instance of the ErrorException class. /// diff --git a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Kind.cs b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Kind.cs index f13f9a3662b8..0c3ca54b73e9 100644 --- a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Kind.cs +++ b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Kind.cs @@ -15,24 +15,24 @@ namespace Microsoft.Azure.Management.CognitiveServices.Models /// /// Defines values for Kind. /// - [JsonConverter(typeof(StringEnumConverter))] - public enum Kind + public static class Kind { - [EnumMember(Value = "ComputerVision")] - ComputerVision, - [EnumMember(Value = "Emotion")] - Emotion, - [EnumMember(Value = "Face")] - Face, - [EnumMember(Value = "LUIS")] - LUIS, - [EnumMember(Value = "Recommendations")] - Recommendations, - [EnumMember(Value = "Speech")] - Speech, - [EnumMember(Value = "TextAnalytics")] - TextAnalytics, - [EnumMember(Value = "WebLM")] - WebLM + public const string Academic = "Academic"; + public const string BingAutosuggest = "Bing.Autosuggest"; + public const string BingSearch = "Bing.Search"; + public const string BingSpeech = "Bing.Speech"; + public const string BingSpellCheck = "Bing.SpellCheck"; + public const string ComputerVision = "ComputerVision"; + public const string ContentModerator = "ContentModerator"; + public const string Emotion = "Emotion"; + public const string Face = "Face"; + public const string LUIS = "LUIS"; + public const string Recommendations = "Recommendations"; + public const string SpeakerRecognition = "SpeakerRecognition"; + public const string Speech = "Speech"; + public const string SpeechTranslation = "SpeechTranslation"; + public const string TextAnalytics = "TextAnalytics"; + public const string TextTranslation = "TextTranslation"; + public const string WebLM = "WebLM"; } } diff --git a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Sku.cs b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Sku.cs index 2f7ca4dd2a0b..f479253287d7 100644 --- a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Sku.cs +++ b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/Sku.cs @@ -29,7 +29,7 @@ public Sku() { } /// /// Initializes a new instance of the Sku class. /// - public Sku(SkuName name, SkuTier? tier = default(SkuTier?)) + public Sku(string name, SkuTier? tier = default(SkuTier?)) { Name = name; Tier = tier; @@ -37,11 +37,11 @@ public Sku() { } /// /// Gets or sets the sku name. Required for account creation, optional - /// for update. Possible values include: 'F0', 'S0', 'S1', 'S2', - /// 'S3', 'S4' + /// for update. Possible values include: 'F0', 'P0', 'P1', 'P2', + /// 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6' /// [JsonProperty(PropertyName = "name")] - public SkuName Name { get; set; } + public string Name { get; set; } /// /// Gets the sku tier. This is based on the SKU name. Possible values @@ -55,6 +55,10 @@ public Sku() { } /// public virtual void Validate() { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } } } } diff --git a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/SkuName.cs b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/SkuName.cs index 27da5ffa304e..c97776cc8361 100644 --- a/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/SkuName.cs +++ b/src/ResourceManagement/CognitiveServices/Microsoft.Azure.Management.CognitiveServices/Generated/Models/SkuName.cs @@ -15,20 +15,18 @@ namespace Microsoft.Azure.Management.CognitiveServices.Models /// /// Defines values for SkuName. /// - [JsonConverter(typeof(StringEnumConverter))] - public enum SkuName + public static class SkuName { - [EnumMember(Value = "F0")] - F0, - [EnumMember(Value = "S0")] - S0, - [EnumMember(Value = "S1")] - S1, - [EnumMember(Value = "S2")] - S2, - [EnumMember(Value = "S3")] - S3, - [EnumMember(Value = "S4")] - S4 + public const string F0 = "F0"; + public const string P0 = "P0"; + public const string P1 = "P1"; + public const string P2 = "P2"; + public const string S0 = "S0"; + public const string S1 = "S1"; + public const string S2 = "S2"; + public const string S3 = "S3"; + public const string S4 = "S4"; + public const string S5 = "S5"; + public const string S6 = "S6"; } }