From 650c595fd42ed892b17498a7338693501aa61641 Mon Sep 17 00:00:00 2001 From: jaczhan Date: Thu, 4 May 2017 15:40:22 -0700 Subject: [PATCH 1/6] Add test for AzureRmSqlServerActiveDirectoryAdministratorTest --- .../Models/ServerAzureADAdministrator.cs | 91 +++++++++++++++++++ .../Generated/Models/SqlSubResource.cs | 60 ++++++++++++ ...lServerActiveDirectoryAdministratorTest.cs | 67 ++++++++++++++ 3 files changed, 218 insertions(+) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs new file mode 100644 index 000000000000..b3d9d2fa9035 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents an Azure SQL Server Active Directory Administrator. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServerAzureADAdministrator : SqlSubResource + { + /// + /// Initializes a new instance of the ServerAzureADAdministrator class. + /// + public ServerAzureADAdministrator() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerAzureADAdministrator class. + /// + /// The Azure SQL Server Administrator Login + /// Value. + /// The Azure SQL Server Administrator Sid (Secure + /// ID). + /// The Azure SQL Server Active Directory + /// Administrator tenant id. + /// Resource name + /// Resource Id + public ServerAzureADAdministrator(string login, string sid, string tenantId, string name = default(string), string id = default(string)) + : base(name, id) + { + Login = login; + Sid = sid; + TenantId = tenantId; + CustomInit(); + } + /// + /// Static constructor for ServerAzureADAdministrator class. + /// + static ServerAzureADAdministrator() + { + AdministratorType = "ActiveDirectory"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Azure SQL Server Administrator Login Value. + /// + [JsonProperty(PropertyName = "properties.login")] + public string Login { get; set; } + + /// + /// Gets or sets the Azure SQL Server Administrator Sid (Secure ID). + /// + [JsonProperty(PropertyName = "properties.sid")] + public string Sid { get; set; } + + /// + /// Gets or sets the Azure SQL Server Active Directory Administrator + /// tenant id. + /// + [JsonProperty(PropertyName = "properties.tenantId")] + public string TenantId { get; set; } + + /// + /// The type of Azure SQL Server Administrator. + /// + [JsonProperty(PropertyName = "properties.administratorType")] + public static string AdministratorType { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs new file mode 100644 index 000000000000..d3acf7d95c16 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Subresource properties + /// + public partial class SqlSubResource + { + /// + /// Initializes a new instance of the SqlSubResource class. + /// + public SqlSubResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlSubResource class. + /// + /// Resource name + /// Resource Id + public SqlSubResource(string name = default(string), string id = default(string)) + { + Name = name; + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs b/src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs new file mode 100644 index 000000000000..ca96aae76d1b --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Resources.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading.Tasks; +using Xunit; + +namespace Sql.Tests +{ + public class AzureRmSqlServerActiveDirectoryAdministratorTest + { + [Fact] + public void TestSetServerActiveDirectoryAdministrator() + { + string testPrefix = "sqlcrudtest-"; + string suiteName = this.GetType().FullName; + string login = "dummylogin"; + string password = "Un53cuRE!"; + string version12 = "12.0"; + + Dictionary tags = new Dictionary(); + SqlManagementTestUtilities.RunTestInNewResourceGroup(suiteName, "TestSetServerActiveDirectoryAdministrator", testPrefix, (resClient, sqlClient, resourceGroup) => + { + // Create a server + string serverName = SqlManagementTestUtilities.GenerateName(testPrefix); + var server = sqlClient.Servers.CreateOrUpdate(resourceGroup.Name, serverName, new Microsoft.Azure.Management.Sql.Models.Server() + { + AdministratorLogin = login, + AdministratorLoginPassword = password, + Version = version12, + Location = SqlManagementTestUtilities.DefaultLocation, + Tags = tags, + }); + + SqlManagementTestUtilities.ValidateServer(server, serverName, login, version12, tags, SqlManagementTestUtilities.DefaultLocation); + + string aadAdmin = "DSEngAll"; + + SqlManagementTestUtilities.ValidateServer(server, server.Name, login, version12, tags, SqlManagementTestUtilities.DefaultLocation); + + ServerAzureADAdministrator newAdmin = new ServerAzureADAdministrator("DSEngAll", "5e90ef3b-9b42-4777-819b-25c36961ea4d", "72f988bf-86f1-41af-91ab-2d7cd011db47", "sqlcrudtest-3421", "2c647056-bab2-4175-b172-493ff049eb29"); + ServerAzureADAdministrator createResult = sqlClient.Servers.CreateOrUpdateAzureADAdministrator(resourceGroup.Name, server.Name, newAdmin); + + + Assert.Equal(aadAdmin, createResult.Login); + + + ServerAzureADAdministrator getResult = sqlClient.Servers.GetAzureADAdministrator(resourceGroup.Name, server.Name); + Assert.Equal(aadAdmin, getResult.Login); + + sqlClient.Servers.DeleteAzureADAdministrator(resourceGroup.Name, server.Name); + + List admins = sqlClient.Servers.ListAzureADAdministrator(resourceGroup.Name,server.Name) as List; + Assert.True(admins == null || admins.Count == 0); + + }); + } + } +} From e69d515018c0d536736ce8b781a7d512e3b1497e Mon Sep 17 00:00:00 2001 From: jaczhan Date: Thu, 4 May 2017 15:40:22 -0700 Subject: [PATCH 2/6] Add test for AzureRmSqlServerActiveDirectoryAdministratorTest --- .../Models/ServerAzureADAdministrator.cs | 91 +++ .../Generated/Models/SqlSubResource.cs | 60 ++ ...lServerActiveDirectoryAdministratorTest.cs | 67 ++ ...SetServerActiveDirectoryAdministrator.json | 763 ++++++++++++++++++ 4 files changed, 981 insertions(+) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.AzureRmSqlServerActiveDirectoryAdministratorTest/TestSetServerActiveDirectoryAdministrator.json diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs new file mode 100644 index 000000000000..b3d9d2fa9035 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents an Azure SQL Server Active Directory Administrator. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServerAzureADAdministrator : SqlSubResource + { + /// + /// Initializes a new instance of the ServerAzureADAdministrator class. + /// + public ServerAzureADAdministrator() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerAzureADAdministrator class. + /// + /// The Azure SQL Server Administrator Login + /// Value. + /// The Azure SQL Server Administrator Sid (Secure + /// ID). + /// The Azure SQL Server Active Directory + /// Administrator tenant id. + /// Resource name + /// Resource Id + public ServerAzureADAdministrator(string login, string sid, string tenantId, string name = default(string), string id = default(string)) + : base(name, id) + { + Login = login; + Sid = sid; + TenantId = tenantId; + CustomInit(); + } + /// + /// Static constructor for ServerAzureADAdministrator class. + /// + static ServerAzureADAdministrator() + { + AdministratorType = "ActiveDirectory"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Azure SQL Server Administrator Login Value. + /// + [JsonProperty(PropertyName = "properties.login")] + public string Login { get; set; } + + /// + /// Gets or sets the Azure SQL Server Administrator Sid (Secure ID). + /// + [JsonProperty(PropertyName = "properties.sid")] + public string Sid { get; set; } + + /// + /// Gets or sets the Azure SQL Server Active Directory Administrator + /// tenant id. + /// + [JsonProperty(PropertyName = "properties.tenantId")] + public string TenantId { get; set; } + + /// + /// The type of Azure SQL Server Administrator. + /// + [JsonProperty(PropertyName = "properties.administratorType")] + public static string AdministratorType { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs new file mode 100644 index 000000000000..d3acf7d95c16 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SqlSubResource.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Subresource properties + /// + public partial class SqlSubResource + { + /// + /// Initializes a new instance of the SqlSubResource class. + /// + public SqlSubResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlSubResource class. + /// + /// Resource name + /// Resource Id + public SqlSubResource(string name = default(string), string id = default(string)) + { + Name = name; + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs b/src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs new file mode 100644 index 000000000000..ca96aae76d1b --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/AzureRmSqlServerActiveDirectoryAdministratorTest.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Resources.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading.Tasks; +using Xunit; + +namespace Sql.Tests +{ + public class AzureRmSqlServerActiveDirectoryAdministratorTest + { + [Fact] + public void TestSetServerActiveDirectoryAdministrator() + { + string testPrefix = "sqlcrudtest-"; + string suiteName = this.GetType().FullName; + string login = "dummylogin"; + string password = "Un53cuRE!"; + string version12 = "12.0"; + + Dictionary tags = new Dictionary(); + SqlManagementTestUtilities.RunTestInNewResourceGroup(suiteName, "TestSetServerActiveDirectoryAdministrator", testPrefix, (resClient, sqlClient, resourceGroup) => + { + // Create a server + string serverName = SqlManagementTestUtilities.GenerateName(testPrefix); + var server = sqlClient.Servers.CreateOrUpdate(resourceGroup.Name, serverName, new Microsoft.Azure.Management.Sql.Models.Server() + { + AdministratorLogin = login, + AdministratorLoginPassword = password, + Version = version12, + Location = SqlManagementTestUtilities.DefaultLocation, + Tags = tags, + }); + + SqlManagementTestUtilities.ValidateServer(server, serverName, login, version12, tags, SqlManagementTestUtilities.DefaultLocation); + + string aadAdmin = "DSEngAll"; + + SqlManagementTestUtilities.ValidateServer(server, server.Name, login, version12, tags, SqlManagementTestUtilities.DefaultLocation); + + ServerAzureADAdministrator newAdmin = new ServerAzureADAdministrator("DSEngAll", "5e90ef3b-9b42-4777-819b-25c36961ea4d", "72f988bf-86f1-41af-91ab-2d7cd011db47", "sqlcrudtest-3421", "2c647056-bab2-4175-b172-493ff049eb29"); + ServerAzureADAdministrator createResult = sqlClient.Servers.CreateOrUpdateAzureADAdministrator(resourceGroup.Name, server.Name, newAdmin); + + + Assert.Equal(aadAdmin, createResult.Login); + + + ServerAzureADAdministrator getResult = sqlClient.Servers.GetAzureADAdministrator(resourceGroup.Name, server.Name); + Assert.Equal(aadAdmin, getResult.Login); + + sqlClient.Servers.DeleteAzureADAdministrator(resourceGroup.Name, server.Name); + + List admins = sqlClient.Servers.ListAzureADAdministrator(resourceGroup.Name,server.Name) as List; + Assert.True(admins == null || admins.Count == 0); + + }); + } + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.AzureRmSqlServerActiveDirectoryAdministratorTest/TestSetServerActiveDirectoryAdministrator.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.AzureRmSqlServerActiveDirectoryAdministratorTest/TestSetServerActiveDirectoryAdministrator.json new file mode 100644 index 000000000000..f55956a9f023 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.AzureRmSqlServerActiveDirectoryAdministratorTest/TestSetServerActiveDirectoryAdministrator.json @@ -0,0 +1,763 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/sqlcrudtest-3644?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"sqlcrudtest-3644\": \"2017-05-10 16:59:17Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "99" + ], + "x-ms-client-request-id": [ + "1ccd1734-493d-4e89-872e-056f2f3d7c15" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.1.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644\",\r\n \"name\": \"sqlcrudtest-3644\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"sqlcrudtest-3644\": \"2017-05-10 16:59:17Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "239" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 May 2017 16:59:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "6e5489d2-7f6d-4d4a-8f7b-63afc26d4b2d" + ], + "x-ms-correlation-request-id": [ + "6e5489d2-7f6d-4d4a-8f7b-63afc26d4b2d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T165919Z:6e5489d2-7f6d-4d4a-8f7b-63afc26d4b2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMjMzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "184" + ], + "x-ms-client-request-id": [ + "5793ea8f-9014-476b-9c07-4d74d55aa600" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.3.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233\",\r\n \"name\": \"sqlcrudtest-2233\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-2233.database.windows.net\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"externalAdministratorLogin\": null,\r\n \"externalAdministratorSid\": null,\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "503" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 10 May 2017 16:59:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "819786bc-8cb3-44a9-a3d5-75e8bd60d712" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "a32644d4-d14f-4a4f-a484-b0e409afde80" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T165958Z:a32644d4-d14f-4a4f-a484-b0e409afde80" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administrators/activedirectory?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMjMzL2FkbWluaXN0cmF0b3JzL2FjdGl2ZWRpcmVjdG9yeT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"login\": \"DSEngAll\",\r\n \"sid\": \"5e90ef3b-9b42-4777-819b-25c36961ea4d\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"administratorType\": \"ActiveDirectory\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "207" + ], + "x-ms-client-request-id": [ + "f4815181-c44a-458c-9599-12359633510a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.3.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateActiveDirectoryAdministrator\",\r\n \"operationId\": \"0d0be590-0eda-43ae-8a0e-c3c9d00ee51e\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2017-05-10T16:59:59.121Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "161" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 10 May 2017 16:59:59 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administratorOperationResults/0d0be590-0eda-43ae-8a0e-c3c9d00ee51e?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0d0be590-0eda-43ae-8a0e-c3c9d00ee51e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "90a8d88f-d85a-4b7e-ac30-a9f27450c5fd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T165959Z:90a8d88f-d85a-4b7e-ac30-a9f27450c5fd" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administratorOperationResults/0d0be590-0eda-43ae-8a0e-c3c9d00ee51e?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMjMzL2FkbWluaXN0cmF0b3JPcGVyYXRpb25SZXN1bHRzLzBkMGJlNTkwLTBlZGEtNDNhZS04YTBlLWMzYzlkMDBlZTUxZT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.3.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administratorOperationResults/ActiveDirectory\",\r\n \"name\": \"ActiveDirectory\",\r\n \"type\": \"Microsoft.Sql/servers/administrators\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"administratorType\": \"ActiveDirectory\",\r\n \"login\": \"DSEngAll\",\r\n \"sid\": \"5e90ef3b-9b42-4777-819b-25c36961ea4d\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "461" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:00:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f890a86e-66ad-4099-bbf9-46e8606498b8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "e9d2fe3a-fe4c-45d1-b9f1-8ecc859ebb58" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170030Z:e9d2fe3a-fe4c-45d1-b9f1-8ecc859ebb58" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administrators/activedirectory?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMjMzL2FkbWluaXN0cmF0b3JzL2FjdGl2ZWRpcmVjdG9yeT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2a39485b-4225-493d-a925-dda7658e5742" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.3.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/providers/Microsoft.Sql/administrators/activedirectory\",\r\n \"name\": \"activedirectory\",\r\n \"type\": \"Microsoft.Sql/servers/administrators\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"administratorType\": \"ActiveDirectory\",\r\n \"login\": \"DSEngAll\",\r\n \"sid\": \"5e90ef3b-9b42-4777-819b-25c36961ea4d\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:00:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "49b07cea-9a97-4788-a125-bbcc2f89664c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "a66941f4-9fda-46f1-86da-a07c25e64654" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170031Z:a66941f4-9fda-46f1-86da-a07c25e64654" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administrators/activedirectory?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMjMzL2FkbWluaXN0cmF0b3JzL2FjdGl2ZWRpcmVjdG9yeT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3f28e828-80e1-4de3-b7f9-1a34822df6e7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.3.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropActiveDirectoryAdministrator\",\r\n \"operationId\": \"6d106cb6-e777-46fd-a069-77fab3bb7f38\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2017-05-10T17:00:31.604Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "159" + ], + "Content-Type": [ + "application/xml; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:00:31 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administratorOperationResults/6d106cb6-e777-46fd-a069-77fab3bb7f38?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6d106cb6-e777-46fd-a069-77fab3bb7f38" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "1.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "f7223483-a93d-4659-a6a5-8fa3353f1132" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170032Z:f7223483-a93d-4659-a6a5-8fa3353f1132" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administratorOperationResults/6d106cb6-e777-46fd-a069-77fab3bb7f38?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMjMzL2FkbWluaXN0cmF0b3JPcGVyYXRpb25SZXN1bHRzLzZkMTA2Y2I2LWU3NzctNDZmZC1hMDY5LTc3ZmFiM2JiN2YzOD9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.3.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:01:02 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9cfaeb89-af72-4884-b66f-53fb0bac7a6d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "48d22ea0-c3ea-4d06-a0c2-14449c89c46a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170103Z:48d22ea0-c3ea-4d06-a0c2-14449c89c46a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/sqlcrudtest-3644/providers/Microsoft.Sql/servers/sqlcrudtest-2233/administrators?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMjMzL2FkbWluaXN0cmF0b3JzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0a4f9f6c-0f04-496c-a63d-0302c42c9ada" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.3.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:01:03 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f57aa087-aaed-4bce-9f1f-e826f181d24e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "df9ecd80-52c5-45fa-9742-ae28bd4ae235" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170104Z:df9ecd80-52c5-45fa-9742-ae28bd4ae235" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/sqlcrudtest-3644?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTM2NDQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9dc3f973-648f-40c6-8460-eb7a3caaf26d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.1.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:01:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "49dd8b47-a9b3-422c-bd74-c21c360b31b6" + ], + "x-ms-correlation-request-id": [ + "49dd8b47-a9b3-422c-bd74-c21c360b31b6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170106Z:49dd8b47-a9b3-422c-bd74-c21c360b31b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4RFVsVkVWRVZUVkRveVJETTJORFF0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.1.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:01:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "ff07a224-2911-4747-87ee-9e8e3be0280b" + ], + "x-ms-correlation-request-id": [ + "ff07a224-2911-4747-87ee-9e8e3be0280b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170136Z:ff07a224-2911-4747-87ee-9e8e3be0280b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4RFVsVkVWRVZUVkRveVJETTJORFF0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.1.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:02:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "80d19564-71c4-4df4-a58f-e04ef86cd186" + ], + "x-ms-correlation-request-id": [ + "80d19564-71c4-4df4-a58f-e04ef86cd186" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170206Z:80d19564-71c4-4df4-a58f-e04ef86cd186" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4RFVsVkVWRVZUVkRveVJETTJORFF0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.1.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:02:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "230db8d3-94a0-4fd0-bf5d-346d4846fb2d" + ], + "x-ms-correlation-request-id": [ + "230db8d3-94a0-4fd0-bf5d-346d4846fb2d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170237Z:230db8d3-94a0-4fd0-bf5d-346d4846fb2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2NDQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmM2NDcwNTYtYmFiMi00MTc1LWIxNzItNDkzZmYwNDllYjI5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUVVV4RFVsVkVWRVZUVkRveVJETTJORFF0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.03", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.1.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 May 2017 17:03:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "955ebeb3-73aa-409c-8e37-531e76887773" + ], + "x-ms-correlation-request-id": [ + "955ebeb3-73aa-409c-8e37-531e76887773" + ], + "x-ms-routing-request-id": [ + "WESTUS:20170510T170307Z:955ebeb3-73aa-409c-8e37-531e76887773" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "sqlcrudtest-3644" + ], + "TestSetServerActiveDirectoryAdministrator": [ + "sqlcrudtest-2233" + ] + }, + "Variables": { + "SubscriptionId": "2c647056-bab2-4175-b172-493ff049eb29" + } +} \ No newline at end of file From c589c8e40df122cc4e63803f2c31226a31605021 Mon Sep 17 00:00:00 2001 From: jaczhan Date: Thu, 11 May 2017 09:48:14 -0700 Subject: [PATCH 3/6] Update Sql.Tests.csproj --- src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 01e0cc2e7ffe..22f6d03f224e 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -27,7 +27,6 @@ - - \ No newline at end of file + From 4549c0f7707602a16301637d4a7678e18997c20b Mon Sep 17 00:00:00 2001 From: jaczhan Date: Thu, 11 May 2017 09:48:14 -0700 Subject: [PATCH 4/6] Update Sql.Tests.csproj --- .../Management.Sql/Microsoft.Azure.Management.Sql.csproj | 3 --- src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj index 5908e6725900..2ed8de31f6c5 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -10,7 +10,4 @@ net452;netstandard1.4 - - - \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 01e0cc2e7ffe..39afa8142332 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -26,8 +26,4 @@ - - - - - \ No newline at end of file + From 4a79d095d26a3cc4ff04b1227c336a83520f1096 Mon Sep 17 00:00:00 2001 From: jaczhan Date: Thu, 11 May 2017 14:02:20 -0700 Subject: [PATCH 5/6] Update Sql.Tests.csproj --- src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 22f6d03f224e..39afa8142332 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -26,7 +26,4 @@ - - - From 8fab6676ef8b91a7e522c04c656f4b9f48a69461 Mon Sep 17 00:00:00 2001 From: jaczhan Date: Thu, 11 May 2017 14:04:29 -0700 Subject: [PATCH 6/6] Update Sql.Tests.csproj --- src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 39afa8142332..528ffc66fe2a 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -8,9 +8,6 @@ netcoreapp1.1 - - -