diff --git a/global.json b/global.json index b3bc428c4cdb..1457d8710890 100644 --- a/global.json +++ b/global.json @@ -27,5 +27,8 @@ "src/ResourceManagement/Insights/Microsoft.Azure.Insights", "src/ResourceManagement/AnalysisServices/Microsoft.Azure.Management.Analysis", "src/ResourceManagement/Monitor/Microsoft.Azure.Monitor" - ] + ], + "sdk": { + "version": "1.0.0-preview2-003121" + } } \ No newline at end of file diff --git a/src/ClientRuntime/global.json b/src/ClientRuntime/global.json index 25fb11a0a6d5..9dc789665a0e 100644 --- a/src/ClientRuntime/global.json +++ b/src/ClientRuntime/global.json @@ -1,5 +1,8 @@ { "projects": [ "Microsoft.Rest.ClientRuntime", "Microsoft.Rest.ClientRuntime.Azure.Authentication", "Microsoft.Rest.ClientRuntime.Etw", "Microsoft.Rest.ClientRuntime.Tests", "Microsoft.Rest.ClientRuntime.Azure", "Microsoft.Rest.ClientRuntime.Azure.Tests", - "Microsoft.Rest.ClientRuntime.Log4Net", "Microsoft.Rest.ClientRuntime.Tracing.Tests" ] + "Microsoft.Rest.ClientRuntime.Log4Net", "Microsoft.Rest.ClientRuntime.Tracing.Tests" ], + "sdk": { + "version": "1.0.0-preview2-003121" + } } \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs new file mode 100644 index 000000000000..455d32f2da87 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs @@ -0,0 +1,499 @@ +// 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 +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabaseBlobAuditingPoliciesOperations operations. + /// + internal partial class DatabaseBlobAuditingPoliciesOperations : IServiceOperations, IDatabaseBlobAuditingPoliciesOperations + { + /// + /// Initializes a new instance of the DatabaseBlobAuditingPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabaseBlobAuditingPoliciesOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a blob auditing policy associated with a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy is defined. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a blob auditing policy for a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy will be + /// defined. + /// + /// + /// The name of the database blob auditing policy. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (databaseBlobAuditingPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseBlobAuditingPolicy"); + } + if (databaseBlobAuditingPolicy != null) + { + databaseBlobAuditingPolicy.Validate(); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("databaseBlobAuditingPolicy", databaseBlobAuditingPolicy); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(databaseBlobAuditingPolicy != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(databaseBlobAuditingPolicy, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs new file mode 100644 index 000000000000..23a37ccc8028 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs @@ -0,0 +1,129 @@ +// 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 +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DatabaseBlobAuditingPoliciesOperations. + /// + public static partial class DatabaseBlobAuditingPoliciesOperationsExtensions + { + /// + /// Gets a blob auditing policy associated with a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy is defined. + /// + public static DatabaseBlobAuditingPolicy Get(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a blob auditing policy associated with a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy is defined. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a blob auditing policy for a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy will be + /// defined. + /// + /// + /// The name of the database blob auditing policy. + /// + public static DatabaseBlobAuditingPolicy CreateOrUpdate(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, databaseBlobAuditingPolicy).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a blob auditing policy for a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy will be + /// defined. + /// + /// + /// The name of the database blob auditing policy. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, databaseBlobAuditingPolicy, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs new file mode 100644 index 000000000000..c317ae9c492f --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs @@ -0,0 +1,500 @@ +// 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 +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabaseThreatDetectionPoliciesOperations operations. + /// + internal partial class DatabaseThreatDetectionPoliciesOperations : IServiceOperations, IDatabaseThreatDetectionPoliciesOperations + { + /// + /// Initializes a new instance of the DatabaseThreatDetectionPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabaseThreatDetectionPoliciesOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a Threat Detection policy associated with a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + string apiVersion = "2014-04-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a Threat Detection policy for a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// The database Threat Detection policy. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (databaseSecurityAlertPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseSecurityAlertPolicy"); + } + if (databaseSecurityAlertPolicy != null) + { + databaseSecurityAlertPolicy.Validate(); + } + string apiVersion = "2014-04-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("databaseSecurityAlertPolicy", databaseSecurityAlertPolicy); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(databaseSecurityAlertPolicy != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(databaseSecurityAlertPolicy, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs new file mode 100644 index 000000000000..d70c3a30a540 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs @@ -0,0 +1,131 @@ +// 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 +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DatabaseThreatDetectionPoliciesOperations. + /// + public static partial class DatabaseThreatDetectionPoliciesOperationsExtensions + { + /// + /// Gets a Threat Detection policy associated with a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy is + /// defined. + /// + public static DatabaseSecurityAlertPolicy Get(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a Threat Detection policy associated with a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a Threat Detection policy for a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// The database Threat Detection policy. + /// + public static DatabaseSecurityAlertPolicy CreateOrUpdate(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, databaseSecurityAlertPolicy).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a Threat Detection policy for a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// The database Threat Detection policy. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, databaseSecurityAlertPolicy, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs index 92363832961e..a3426787f194 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -199,9 +199,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -216,6 +216,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -253,11 +255,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -384,9 +394,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -401,6 +411,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -448,7 +460,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -485,7 +497,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -645,9 +657,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -662,6 +674,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -709,7 +723,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -746,7 +760,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -899,9 +913,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -916,6 +930,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -963,7 +979,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1000,7 +1016,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1129,9 +1145,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1146,6 +1162,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1183,11 +1201,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -1314,9 +1340,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1331,6 +1357,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1378,7 +1406,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1415,7 +1443,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1515,9 +1543,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1532,6 +1560,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1579,7 +1609,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1616,7 +1646,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1717,9 +1747,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1734,6 +1764,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1781,7 +1813,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1818,7 +1850,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1928,9 +1960,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1945,6 +1977,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1992,7 +2026,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2029,7 +2063,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2130,9 +2164,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2147,6 +2181,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2194,7 +2230,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2231,7 +2267,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2262,9 +2298,9 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the database for which setting the transparent data encryption /// applies. /// - /// - /// The status of the database transparent data encryption. Possible values - /// include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// /// /// Headers that will be added to request. @@ -2287,7 +2323,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2305,12 +2341,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - string apiVersion = "2014-04-01"; - TransparentDataEncryption parameters = new TransparentDataEncryption(); - if (status != null) + if (parameters == null) { - parameters.Status = status; + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + string apiVersion = "2014-04-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2343,9 +2378,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2360,6 +2395,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2377,7 +2414,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -2413,7 +2450,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2450,7 +2487,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2468,7 +2505,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2569,9 +2606,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2586,6 +2623,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2633,7 +2672,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2670,7 +2709,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2771,9 +2810,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2788,6 +2827,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2835,7 +2876,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2872,7 +2913,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2990,9 +3031,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3007,6 +3048,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3024,7 +3067,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -3060,7 +3103,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -3097,7 +3140,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -3210,9 +3253,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3227,6 +3270,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3244,7 +3289,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -3280,7 +3325,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -3317,7 +3362,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -3424,9 +3469,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3441,6 +3486,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3478,11 +3525,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 204 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -3607,9 +3662,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3624,6 +3679,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3661,11 +3718,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 204 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -3780,9 +3845,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3797,6 +3862,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3834,11 +3901,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -3953,9 +4028,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3970,6 +4045,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4007,11 +4084,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 202 && (int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -4143,9 +4228,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -4160,6 +4245,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4177,7 +4264,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -4213,7 +4300,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -4250,7 +4337,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -4268,7 +4355,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -4287,4 +4374,3 @@ internal DatabasesOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs index a4ac85caca0e..350be3a0cf98 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -181,7 +181,7 @@ public static void DeleteReplicationLink(this IDatabasesOperations operations, s /// public static async Task DeleteReplicationLinkAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -286,7 +286,7 @@ public static void FailoverReplicationLink(this IDatabasesOperations operations, /// public static async Task FailoverReplicationLinkAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.FailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.FailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -339,7 +339,7 @@ public static void FailoverReplicationLinkAllowDataLoss(this IDatabasesOperation /// public static async Task FailoverReplicationLinkAllowDataLossAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.FailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.FailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -432,7 +432,7 @@ public static void PauseDataWarehouse(this IDatabasesOperations operations, stri /// public static async Task PauseDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.PauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.PauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -477,7 +477,7 @@ public static void ResumeDataWarehouse(this IDatabasesOperations operations, str /// public static async Task ResumeDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.ResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.ResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -628,7 +628,7 @@ public static void Delete(this IDatabasesOperations operations, string resourceG /// public static async Task DeleteAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -902,13 +902,13 @@ public static IEnumerable ListServiceTierAdvisors(this IData /// The name of the database for which setting the transparent data encryption /// applies. /// - /// - /// The status of the database transparent data encryption. Possible values - /// include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// - public static TransparentDataEncryption CreateOrUpdateTransparentDataEncryptionConfiguration(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?)) + public static TransparentDataEncryption CreateOrUpdateTransparentDataEncryptionConfiguration(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters) { - return operations.CreateOrUpdateTransparentDataEncryptionConfigurationAsync(resourceGroupName, serverName, databaseName, status).GetAwaiter().GetResult(); + return operations.CreateOrUpdateTransparentDataEncryptionConfigurationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } /// @@ -928,16 +928,16 @@ public static IEnumerable ListServiceTierAdvisors(this IData /// The name of the database for which setting the transparent data encryption /// applies. /// - /// - /// The status of the database transparent data encryption. Possible values - /// include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateTransparentDataEncryptionConfigurationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateTransparentDataEncryptionConfigurationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, status, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1197,7 +1197,7 @@ public static void BeginFailoverReplicationLink(this IDatabasesOperations operat /// public static async Task BeginFailoverReplicationLinkAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginFailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginFailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1250,7 +1250,7 @@ public static void BeginFailoverReplicationLinkAllowDataLoss(this IDatabasesOper /// public static async Task BeginFailoverReplicationLinkAllowDataLossAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginFailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginFailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1295,7 +1295,7 @@ public static void BeginPauseDataWarehouse(this IDatabasesOperations operations, /// public static async Task BeginPauseDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginPauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginPauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1340,7 +1340,7 @@ public static void BeginResumeDataWarehouse(this IDatabasesOperations operations /// public static async Task BeginResumeDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1403,4 +1403,3 @@ public static Database BeginCreateOrUpdate(this IDatabasesOperations operations, } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs index b13ca86960b2..c32acd9fd7fe 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -160,9 +160,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -177,6 +177,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -214,11 +216,19 @@ internal ElasticPoolsOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -336,9 +346,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -353,6 +363,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -400,7 +412,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -437,7 +449,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -529,9 +541,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -546,6 +558,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -593,7 +607,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -630,7 +644,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -731,9 +745,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -748,6 +762,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -795,7 +811,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -832,7 +848,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -933,9 +949,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -950,6 +966,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -997,7 +1015,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1034,7 +1052,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1144,9 +1162,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1161,6 +1179,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1208,7 +1228,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1245,7 +1265,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1346,9 +1366,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1363,6 +1383,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1410,7 +1432,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1447,7 +1469,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1560,9 +1582,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1577,6 +1599,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1594,7 +1618,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -1630,7 +1654,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1667,7 +1691,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1685,7 +1709,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1704,4 +1728,3 @@ internal ElasticPoolsOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs index 032d79fb0997..5b0f1409861c 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -119,7 +119,7 @@ public static void Delete(this IElasticPoolsOperations operations, string resour /// public static async Task DeleteAsync(this IElasticPoolsOperations operations, string resourceGroupName, string serverName, string elasticPoolName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, elasticPoolName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, elasticPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -466,4 +466,3 @@ public static ElasticPool BeginCreateOrUpdate(this IElasticPoolsOperations opera } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs new file mode 100644 index 000000000000..bc6211a41239 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs @@ -0,0 +1,92 @@ +// 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 +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabaseBlobAuditingPoliciesOperations operations. + /// + public partial interface IDatabaseBlobAuditingPoliciesOperations + { + /// + /// Gets a blob auditing policy associated with a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy is + /// defined. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a blob auditing policy for a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database blob audit policy will + /// be defined. + /// + /// + /// The name of the database blob auditing policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs new file mode 100644 index 000000000000..c6d274c74d11 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs @@ -0,0 +1,92 @@ +// 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 +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabaseThreatDetectionPoliciesOperations operations. + /// + public partial interface IDatabaseThreatDetectionPoliciesOperations + { + /// + /// Gets a Threat Detection policy associated with a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy + /// is defined. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a Threat Detection policy for a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database for which database Threat Detection policy + /// is defined. + /// + /// + /// The database Threat Detection policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs index dbf23eee5e6a..fee2ab92ef12 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -570,9 +570,9 @@ public partial interface IDatabasesOperations /// The name of the database for which setting the transparent data /// encryption applies. /// - /// - /// The status of the database transparent data encryption. Possible - /// values include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// /// /// The headers that will be added to request. @@ -589,7 +589,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a database's transparent data encryption configuration. /// @@ -873,4 +873,3 @@ public partial interface IDatabasesOperations Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs index 59eb6694f9cc..15506976935d 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -300,4 +300,3 @@ public partial interface IElasticPoolsOperations Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string elasticPoolName, ElasticPool parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs index fd5e4d8b4204..698ce30aadac 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -116,4 +116,3 @@ public partial interface IImportExportOperations Task> GetByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs index ec15efa53477..456c1cc635ac 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -175,4 +175,3 @@ public partial interface IRecommendedElasticPoolsOperations Task>> ListMetricsWithHttpMessagesAsync(string resourceGroupName, string serverName, string recommendedElasticPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs index a10ece32416b..3ebf3d0953a1 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -410,4 +410,3 @@ public partial interface IServersOperations Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequestParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs index 4a84ce395ad8..ed05e6303b35 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -35,12 +35,12 @@ public partial interface ISqlManagementClient : System.IDisposable /// /// Gets or sets json serialization settings. /// - Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; } + JsonSerializerSettings SerializationSettings { get; } /// /// Gets or sets json deserialization settings. /// - Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; } + JsonSerializerSettings DeserializationSettings { get; } /// /// Credentials needed for the client to connect to Azure. @@ -95,6 +95,16 @@ public partial interface ISqlManagementClient : System.IDisposable /// IRecommendedElasticPoolsOperations RecommendedElasticPools { get; } + /// + /// Gets the IDatabaseThreatDetectionPoliciesOperations. + /// + IDatabaseThreatDetectionPoliciesOperations DatabaseThreatDetectionPolicies { get; } + + /// + /// Gets the IDatabaseBlobAuditingPoliciesOperations. + /// + IDatabaseBlobAuditingPoliciesOperations DatabaseBlobAuditingPolicies { get; } + /// /// Lists all of the available SQL Rest API operations. /// @@ -108,4 +118,3 @@ public partial interface ISqlManagementClient : System.IDisposable } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs index 9f4bc0efd326..5630bde6f9fa 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -125,9 +125,9 @@ internal ImportExportOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -142,6 +142,8 @@ internal ImportExportOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -189,7 +191,7 @@ internal ImportExportOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -226,7 +228,7 @@ internal ImportExportOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -323,9 +325,9 @@ internal ImportExportOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -340,6 +342,8 @@ internal ImportExportOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -387,7 +391,7 @@ internal ImportExportOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -424,7 +428,7 @@ internal ImportExportOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -531,9 +535,9 @@ internal ImportExportOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -548,6 +552,8 @@ internal ImportExportOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -595,7 +601,7 @@ internal ImportExportOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -632,7 +638,7 @@ internal ImportExportOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -651,4 +657,3 @@ internal ImportExportOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs index aebe5e1d9166..f1f4583737ae 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -171,4 +171,3 @@ public static ImportExportOperationResponse GetByDatabase(this IImportExportOper } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs index f3d71bbe3f4e..ef037c17ef81 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for AuthenticationType. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum AuthenticationType { [EnumMember(Value = "SQL")] @@ -28,4 +28,3 @@ public enum AuthenticationType ADPassword } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/BlobAuditingPolicyState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/BlobAuditingPolicyState.cs new file mode 100644 index 000000000000..aa1d3ae54663 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/BlobAuditingPolicyState.cs @@ -0,0 +1,30 @@ +// 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 Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for BlobAuditingPolicyState. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BlobAuditingPolicyState + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs index 77bd14ad14bd..4ef2b66914ea 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database table column. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Column : Resource { /// /// Initializes a new instance of the Column class. /// - public Column() { } + public Column() + { + CustomInit(); + } /// /// Initializes a new instance of the Column class. @@ -42,13 +45,19 @@ public Column() { } : base(location, name, id, type, tags) { ColumnType = columnType; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the type of database table column. /// [JsonProperty(PropertyName = "properties.columnType")] - public string ColumnType { get; protected set; } + public string ColumnType { get; private set; } /// /// Validate the object. @@ -62,4 +71,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs index fba03890bbb5..e58644e02248 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for CreateMode. @@ -24,6 +24,6 @@ public static class CreateMode public const string PointInTimeRestore = "PointInTimeRestore"; public const string Recovery = "Recovery"; public const string Restore = "Restore"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs index 6676a199ee94..bfaf04a4de7c 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Database : Resource { /// /// Initializes a new instance of the Database class. /// - public Database() { } + public Database() + { + CustomInit(); + } /// /// Initializes a new instance of the Database class. @@ -52,24 +55,68 @@ public Database() { } /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// Specifies the type of database to create. - /// If createMode is not set to Default, sourceDatabaseId must be - /// specified. If createMode is set to PointInTimeRestore, then - /// restorePointInTime must be specified. If createMode is set to - /// Restore, then sourceDatabaseDeletionDate must be specified. - /// Possible values include: 'Copy', 'Default', 'NonReadableSecondary', - /// 'OnlineSecondary', 'PointInTimeRestore', 'Recovery', - /// 'Restore' - /// Conditional. If createMode is not - /// set to Default, then this value must be specified. Specifies the + /// Specifies the mode of database creation. + /// + /// Default: regular database creation. + /// + /// Copy: creates a database as a copy of an existing database. + /// sourceDatabaseId must be specified as the resource ID of the source + /// database. + /// + /// OnlineSecondary/NonReadableSecondary: creates a database as a + /// (readable or nonreadable) secondary replica of an existing + /// database. sourceDatabaseId must be specified as the resource ID of + /// the existing primary database. + /// + /// PointInTimeRestore: Creates a database by restoring a point in time + /// backup of an existing database. sourceDatabaseId must be specified + /// as the resource ID of the existing database, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a database by restoring a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverable database + /// resource ID to restore. + /// + /// Restore: Creates a database by restoring a backup of a deleted + /// database. sourceDatabaseId must be specified. If sourceDatabaseId + /// is the database's original resource ID, then + /// sourceDatabaseDeletionDate must be specified. Otherwise + /// sourceDatabaseId must be the restorable dropped database resource + /// ID and sourceDatabaseDeletionDate is ignored. restorePointInTime + /// may also be specified to restore from an earlier point in time. + /// + /// RestoreLongTermRetentionBackup: Creates a database by restoring + /// from a long term retention vault. + /// recoveryServicesRecoveryPointResourceId must be specified as the + /// recovery point resource ID. + /// + /// Copy, NonReadableSecondary, OnlineSecondary and + /// RestoreLongTermRetentionBackup are not supported for DataWarehouse + /// edition. Possible values include: 'Copy', 'Default', + /// 'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore', + /// 'Recovery', 'Restore', 'RestoreLongTermRetentionBackup' + /// Conditional. If createMode is Copy, + /// NonReadableSecondary, OnlineSecondary, PointInTimeRestore, + /// Recovery, or Restore, then this value is required. Specifies the /// resource ID of the source database. If createMode is /// NonReadableSecondary or OnlineSecondary, the name of the source - /// database must be the same as this new database. - /// Conditional. If createMode is set - /// to PointInTimeRestore, then this value must be specified. Specifies - /// the point in time (ISO8601 format) of the source database that will - /// be restored to create the new database. Must be greater than or - /// equal to the source database's earliestRestoreDate value. + /// database must be the same as the new database being + /// created. + /// Conditional. If createMode + /// is Restore and sourceDatabaseId is the deleted database's original + /// resource id when it existed (as opposed to its current restorable + /// dropped database id), then this value is required. Specifies the + /// time that the database was deleted. + /// Conditional. If createMode is + /// PointInTimeRestore, this value is required. If createMode is + /// Restore, this value is optional. Specifies the point in time + /// (ISO8601 format) of the source database that will be restored to + /// create the new database. Must be greater than or equal to the + /// source database's earliestRestoreDate value. + /// Conditional. + /// If createMode is RestoreLongTermRetentionBackup, then this value is + /// required. Specifies the resource ID of the recovery point to + /// restore from. /// The edition of the database. The /// DatabaseEditions enumeration contains all the valid editions. If /// createMode is NonReadableSecondary or OnlineSecondary, this value @@ -104,7 +151,8 @@ public Database() { } /// The name of the elastic pool the /// database is in. If elasticPoolName and /// requestedServiceObjectiveName are both updated, the value of - /// requestedServiceObjectiveName is ignored. + /// requestedServiceObjectiveName is ignored. Not supported for + /// DataWarehouse edition. /// The default secondary region /// for this database. /// The list of service tier advisors @@ -116,15 +164,16 @@ public Database() { } /// database. /// The id indicating the failover group /// containing this database. - /// Conditional. If the database is a + /// Conditional. If the database is a /// geo-secondary, readScale indicates whether read-only connections - /// are allowed to this database or not. Possible values include: - /// 'Enabled', 'Disabled' + /// are allowed to this database or not. Not supported for + /// DataWarehouse edition. Possible values include: 'Enabled', + /// 'Disabled' /// Indicates the name of the sample schema to /// apply when creating this database. If createMode is not Default, - /// this value is ignored. Possible values include: - /// 'AdventureWorksLT' - public Database(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string kind = default(string), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), string databaseId = default(string), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList schemas = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), System.Guid? failoverGroupId = default(System.Guid?), ReadScale? readScale = default(ReadScale?), string sampleName = default(string)) + /// this value is ignored. Not supported for DataWarehouse edition. + /// Possible values include: 'AdventureWorksLT' + public Database(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string kind = default(string), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), string databaseId = default(string), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? recoveryServicesRecoveryPointResourceId = default(System.DateTime?), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList schemas = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), System.Guid? failoverGroupId = default(System.Guid?), ReadScale? readScale = default(ReadScale?), string sampleName = default(string)) : base(location, name, id, type, tags) { Kind = kind; @@ -136,7 +185,9 @@ public Database() { } EarliestRestoreDate = earliestRestoreDate; CreateMode = createMode; SourceDatabaseId = sourceDatabaseId; + SourceDatabaseDeletionDate = sourceDatabaseDeletionDate; RestorePointInTime = restorePointInTime; + RecoveryServicesRecoveryPointResourceId = recoveryServicesRecoveryPointResourceId; Edition = edition; MaxSizeBytes = maxSizeBytes; RequestedServiceObjectiveId = requestedServiceObjectiveId; @@ -152,14 +203,20 @@ public Database() { } FailoverGroupId = failoverGroupId; ReadScale = readScale; SampleName = sampleName; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets kind of database. This is metadata used for the Azure portal /// experience. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Gets or sets the collation of the database. If createMode is not @@ -172,66 +229,119 @@ public Database() { } /// Gets the creation date of the database (ISO8601 format). /// [JsonProperty(PropertyName = "properties.creationDate")] - public System.DateTime? CreationDate { get; protected set; } + public System.DateTime? CreationDate { get; private set; } /// /// Gets the containment state of the database. /// [JsonProperty(PropertyName = "properties.containmentState")] - public long? ContainmentState { get; protected set; } + public long? ContainmentState { get; private set; } /// /// Gets the current service level objective ID of the database. This /// is the ID of the service level objective that is currently active. /// [JsonProperty(PropertyName = "properties.currentServiceObjectiveId")] - public System.Guid? CurrentServiceObjectiveId { get; protected set; } + public System.Guid? CurrentServiceObjectiveId { get; private set; } /// /// Gets the ID of the database. /// [JsonProperty(PropertyName = "properties.databaseId")] - public string DatabaseId { get; protected set; } + public string DatabaseId { get; private set; } /// /// Gets this records the earliest start date and time that restore is /// available for this database (ISO8601 format). /// [JsonProperty(PropertyName = "properties.earliestRestoreDate")] - public System.DateTime? EarliestRestoreDate { get; protected set; } + public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets specifies the type of database to create. If - /// createMode is not set to Default, sourceDatabaseId must be - /// specified. If createMode is set to PointInTimeRestore, then - /// restorePointInTime must be specified. If createMode is set to - /// Restore, then sourceDatabaseDeletionDate must be specified. - /// Possible values include: 'Copy', 'Default', 'NonReadableSecondary', - /// 'OnlineSecondary', 'PointInTimeRestore', 'Recovery', 'Restore' + /// Gets or sets specifies the mode of database creation. + /// + /// Default: regular database creation. + /// + /// Copy: creates a database as a copy of an existing database. + /// sourceDatabaseId must be specified as the resource ID of the source + /// database. + /// + /// OnlineSecondary/NonReadableSecondary: creates a database as a + /// (readable or nonreadable) secondary replica of an existing + /// database. sourceDatabaseId must be specified as the resource ID of + /// the existing primary database. + /// + /// PointInTimeRestore: Creates a database by restoring a point in time + /// backup of an existing database. sourceDatabaseId must be specified + /// as the resource ID of the existing database, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a database by restoring a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverable database + /// resource ID to restore. + /// + /// Restore: Creates a database by restoring a backup of a deleted + /// database. sourceDatabaseId must be specified. If sourceDatabaseId + /// is the database's original resource ID, then + /// sourceDatabaseDeletionDate must be specified. Otherwise + /// sourceDatabaseId must be the restorable dropped database resource + /// ID and sourceDatabaseDeletionDate is ignored. restorePointInTime + /// may also be specified to restore from an earlier point in time. + /// + /// RestoreLongTermRetentionBackup: Creates a database by restoring + /// from a long term retention vault. + /// recoveryServicesRecoveryPointResourceId must be specified as the + /// recovery point resource ID. + /// + /// Copy, NonReadableSecondary, OnlineSecondary and + /// RestoreLongTermRetentionBackup are not supported for DataWarehouse + /// edition. Possible values include: 'Copy', 'Default', + /// 'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore', + /// 'Recovery', 'Restore', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] public string CreateMode { get; set; } /// - /// Gets or sets conditional. If createMode is not set to Default, then - /// this value must be specified. Specifies the resource ID of the - /// source database. If createMode is NonReadableSecondary or - /// OnlineSecondary, the name of the source database must be the same - /// as this new database. + /// Gets or sets conditional. If createMode is Copy, + /// NonReadableSecondary, OnlineSecondary, PointInTimeRestore, + /// Recovery, or Restore, then this value is required. Specifies the + /// resource ID of the source database. If createMode is + /// NonReadableSecondary or OnlineSecondary, the name of the source + /// database must be the same as the new database being created. /// [JsonProperty(PropertyName = "properties.sourceDatabaseId")] public string SourceDatabaseId { get; set; } /// - /// Gets or sets conditional. If createMode is set to - /// PointInTimeRestore, then this value must be specified. Specifies - /// the point in time (ISO8601 format) of the source database that will - /// be restored to create the new database. Must be greater than or - /// equal to the source database's earliestRestoreDate value. + /// Gets or sets conditional. If createMode is Restore and + /// sourceDatabaseId is the deleted database's original resource id + /// when it existed (as opposed to its current restorable dropped + /// database id), then this value is required. Specifies the time that + /// the database was deleted. + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseDeletionDate")] + public System.DateTime? SourceDatabaseDeletionDate { get; set; } + + /// + /// Gets or sets conditional. If createMode is PointInTimeRestore, this + /// value is required. If createMode is Restore, this value is + /// optional. Specifies the point in time (ISO8601 format) of the + /// source database that will be restored to create the new database. + /// Must be greater than or equal to the source database's + /// earliestRestoreDate value. /// [JsonProperty(PropertyName = "properties.restorePointInTime")] public System.DateTime? RestorePointInTime { get; set; } + /// + /// Gets or sets conditional. If createMode is + /// RestoreLongTermRetentionBackup, then this value is required. + /// Specifies the resource ID of the recovery point to restore from. + /// + [JsonProperty(PropertyName = "properties.recoveryServicesRecoveryPointResourceId")] + public System.DateTime? RecoveryServicesRecoveryPointResourceId { get; set; } + /// /// Gets or sets the edition of the database. The DatabaseEditions /// enumeration contains all the valid editions. If createMode is @@ -282,18 +392,19 @@ public Database() { } /// 'P4', 'P6', 'P11', 'P15', 'System', 'ElasticPool' /// [JsonProperty(PropertyName = "properties.serviceLevelObjective")] - public string ServiceLevelObjective { get; protected set; } + public string ServiceLevelObjective { get; private set; } /// /// Gets the status of the database. /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets or sets the name of the elastic pool the database is in. If /// elasticPoolName and requestedServiceObjectiveName are both updated, - /// the value of requestedServiceObjectiveName is ignored. + /// the value of requestedServiceObjectiveName is ignored. Not + /// supported for DataWarehouse edition. /// [JsonProperty(PropertyName = "properties.elasticPoolName")] public string ElasticPoolName { get; set; } @@ -302,44 +413,44 @@ public Database() { } /// Gets the default secondary region for this database. /// [JsonProperty(PropertyName = "properties.defaultSecondaryLocation")] - public string DefaultSecondaryLocation { get; protected set; } + public string DefaultSecondaryLocation { get; private set; } /// /// Gets the list of service tier advisors for this database. Expanded /// property /// [JsonProperty(PropertyName = "properties.serviceTierAdvisors")] - public IList ServiceTierAdvisors { get; protected set; } + public IList ServiceTierAdvisors { get; private set; } /// /// Gets the schemas from this database. /// [JsonProperty(PropertyName = "properties.schemas")] - public IList Schemas { get; protected set; } + public IList Schemas { get; private set; } /// /// Gets the transparent data encryption info for this database. /// [JsonProperty(PropertyName = "properties.transparentDataEncryption")] - public IList TransparentDataEncryption { get; protected set; } + public IList TransparentDataEncryption { get; private set; } /// /// Gets the recommended indices for this database. /// [JsonProperty(PropertyName = "properties.recommendedIndex")] - public IList RecommendedIndex { get; protected set; } + public IList RecommendedIndex { get; private set; } /// /// Gets the id indicating the failover group containing this database. /// [JsonProperty(PropertyName = "properties.failoverGroupId")] - public System.Guid? FailoverGroupId { get; protected set; } + public System.Guid? FailoverGroupId { get; private set; } /// - /// Gets or sets conditional. If the database is a geo-secondary, + /// Gets or sets conditional. If the database is a geo-secondary, /// readScale indicates whether read-only connections are allowed to - /// this database or not. Possible values include: 'Enabled', - /// 'Disabled' + /// this database or not. Not supported for DataWarehouse edition. + /// Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public ReadScale? ReadScale { get; set; } @@ -347,7 +458,8 @@ public Database() { } /// /// Gets or sets indicates the name of the sample schema to apply when /// creating this database. If createMode is not Default, this value is - /// ignored. Possible values include: 'AdventureWorksLT' + /// ignored. Not supported for DataWarehouse edition. Possible values + /// include: 'AdventureWorksLT' /// [JsonProperty(PropertyName = "properties.sampleName")] public string SampleName { get; set; } @@ -384,4 +496,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs new file mode 100644 index 000000000000..edf749a71eb6 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs @@ -0,0 +1,136 @@ +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Contains information about a database Blob Auditing policy. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseBlobAuditingPolicy : SqlTypedSubResource + { + /// + /// Initializes a new instance of the DatabaseBlobAuditingPolicy class. + /// + public DatabaseBlobAuditingPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseBlobAuditingPolicy class. + /// + /// Specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'Enabled', 'Disabled' + /// Resource name + /// The resource ID. + /// Resource type + /// Specifies the blob storage endpoint + /// (e.g. https://MyAccount.blob.core.windows.net). If state is + /// Enabled, storageEndpoint is required. + /// Specifies the identifier key + /// of the auditing storage account. If state is Enabled, + /// storageAccountAccessKey is required. + /// Specifies the number of days to keep in + /// the audit logs. + /// Specifies the Actions and + /// Actions-Groups to audit. + /// Specifies the blob + /// storage subscription Id. + /// Specifies whether + /// storageAccountAccessKey value is the storage’s secondary + /// key. + public DatabaseBlobAuditingPolicy(BlobAuditingPolicyState state, string name = default(string), string id = default(string), string type = default(string), string storageEndpoint = default(string), string storageAccountAccessKey = default(string), int? retentionDays = default(int?), IList auditActionsAndGroups = default(IList), string storageAccountSubscriptionId = default(string), bool? isStorageSecondaryKeyInUse = default(bool?)) + : base(name, id, type) + { + State = state; + StorageEndpoint = storageEndpoint; + StorageAccountAccessKey = storageAccountAccessKey; + RetentionDays = retentionDays; + AuditActionsAndGroups = auditActionsAndGroups; + StorageAccountSubscriptionId = storageAccountSubscriptionId; + IsStorageSecondaryKeyInUse = isStorageSecondaryKeyInUse; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.state")] + public BlobAuditingPolicyState State { get; set; } + + /// + /// Gets or sets specifies the blob storage endpoint (e.g. + /// https://MyAccount.blob.core.windows.net). If state is Enabled, + /// storageEndpoint is required. + /// + [JsonProperty(PropertyName = "properties.storageEndpoint")] + public string StorageEndpoint { get; set; } + + /// + /// Gets or sets specifies the identifier key of the auditing storage + /// account. If state is Enabled, storageAccountAccessKey is required. + /// + [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] + public string StorageAccountAccessKey { get; set; } + + /// + /// Gets or sets specifies the number of days to keep in the audit + /// logs. + /// + [JsonProperty(PropertyName = "properties.retentionDays")] + public int? RetentionDays { get; set; } + + /// + /// Gets or sets specifies the Actions and Actions-Groups to audit. + /// + [JsonProperty(PropertyName = "properties.auditActionsAndGroups")] + public IList AuditActionsAndGroups { get; set; } + + /// + /// Gets or sets specifies the blob storage subscription Id. + /// + [JsonProperty(PropertyName = "properties.storageAccountSubscriptionId")] + public string StorageAccountSubscriptionId { get; set; } + + /// + /// Gets or sets specifies whether storageAccountAccessKey value is the + /// storage’s secondary key. + /// + [JsonProperty(PropertyName = "properties.isStorageSecondaryKeyInUse")] + public bool? IsStorageSecondaryKeyInUse { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs index 36d268b7b4dd..4de445701532 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for DatabaseEditions. @@ -28,4 +28,3 @@ public static class DatabaseEditions public const string System = "System"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs index ab228a99cbf6..2c36275f7c24 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class DatabaseMetric : SqlSubResource /// /// Initializes a new instance of the DatabaseMetric class. /// - public DatabaseMetric() { } + public DatabaseMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the DatabaseMetric class. @@ -45,44 +48,49 @@ public DatabaseMetric() { } Limit = limit; Unit = unit; NextResetTime = nextResetTime; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the name of the resource. /// [JsonProperty(PropertyName = "resourceName")] - public string ResourceName { get; protected set; } + public string ResourceName { get; private set; } /// /// Gets the metric display name. /// [JsonProperty(PropertyName = "displayName")] - public string DisplayName { get; protected set; } + public string DisplayName { get; private set; } /// /// Gets the current value of the metric. /// [JsonProperty(PropertyName = "currentValue")] - public double? CurrentValue { get; protected set; } + public double? CurrentValue { get; private set; } /// /// Gets the current limit of the metric. /// [JsonProperty(PropertyName = "limit")] - public double? Limit { get; protected set; } + public double? Limit { get; private set; } /// /// Gets the units of the metric. /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; protected set; } + public string Unit { get; private set; } /// /// Gets the next reset time for the metric (ISO8601 format). /// [JsonProperty(PropertyName = "nextResetTime")] - public System.DateTime? NextResetTime { get; protected set; } + public System.DateTime? NextResetTime { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs new file mode 100644 index 000000000000..749e1e5ad2d1 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs @@ -0,0 +1,157 @@ +// 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; + + /// + /// Contains information about a database Threat Detection policy. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseSecurityAlertPolicy : SqlTypedSubResource + { + /// + /// Initializes a new instance of the DatabaseSecurityAlertPolicy + /// class. + /// + public DatabaseSecurityAlertPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseSecurityAlertPolicy + /// class. + /// + /// Specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'New', 'Enabled', 'Disabled' + /// Resource name + /// The resource ID. + /// Resource type + /// Specifies the comma-separated list of + /// alerts that are disabled, or empty string to disable no alerts. + /// Possible values include: 'Sql_Injection', + /// 'Sql_Injection_Vulnerability', 'Access_Anomaly', 'Usage_Anomaly', + /// 'Preview' + /// Specifies the semicolon-separated list + /// of e-mail addresses to which the alert is sent. + /// Specifies that the alert is sent + /// to the account administrators. Possible values include: 'Enabled', + /// 'Disabled' + /// Specifies the blob storage endpoint + /// (e.g. https://MyAccount.blob.core.windows.net). This blob storage + /// will hold all Threat Detection audit logs. If state is Enabled, + /// storageEndpoint is required. + /// Specifies the identifier key + /// of the Threat Detection audit storage account. If state is Enabled, + /// storageAccountAccessKey is required. + /// Specifies the number of days to keep in + /// the Threat Detection audit logs. + /// Specifies whether to use the default + /// server policy. Possible values include: 'Enabled', + /// 'Disabled' + public DatabaseSecurityAlertPolicy(SecurityAlertPolicyState state, string name = default(string), string id = default(string), string type = default(string), string disabledAlerts = default(string), string emailAddresses = default(string), SecurityAlertPolicyEmailAccountAdmins? emailAccountAdmins = default(SecurityAlertPolicyEmailAccountAdmins?), string storageEndpoint = default(string), string storageAccountAccessKey = default(string), int? retentionDays = default(int?), SecurityAlertPolicyUseServerDefault? useServerDefault = default(SecurityAlertPolicyUseServerDefault?)) + : base(name, id, type) + { + State = state; + DisabledAlerts = disabledAlerts; + EmailAddresses = emailAddresses; + EmailAccountAdmins = emailAccountAdmins; + StorageEndpoint = storageEndpoint; + StorageAccountAccessKey = storageAccountAccessKey; + RetentionDays = retentionDays; + UseServerDefault = useServerDefault; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'New', 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.state")] + public SecurityAlertPolicyState State { get; set; } + + /// + /// Gets or sets specifies the comma-separated list of alerts that are + /// disabled, or empty string to disable no alerts. Possible values + /// include: 'Sql_Injection', 'Sql_Injection_Vulnerability', + /// 'Access_Anomaly', 'Usage_Anomaly', 'Preview' + /// + [JsonProperty(PropertyName = "properties.disabledAlerts")] + public string DisabledAlerts { get; set; } + + /// + /// Gets or sets specifies the semicolon-separated list of e-mail + /// addresses to which the alert is sent. + /// + [JsonProperty(PropertyName = "properties.emailAddresses")] + public string EmailAddresses { get; set; } + + /// + /// Gets or sets specifies that the alert is sent to the account + /// administrators. Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.emailAccountAdmins")] + public SecurityAlertPolicyEmailAccountAdmins? EmailAccountAdmins { get; set; } + + /// + /// Gets or sets specifies the blob storage endpoint (e.g. + /// https://MyAccount.blob.core.windows.net). This blob storage will + /// hold all Threat Detection audit logs. If state is Enabled, + /// storageEndpoint is required. + /// + [JsonProperty(PropertyName = "properties.storageEndpoint")] + public string StorageEndpoint { get; set; } + + /// + /// Gets or sets specifies the identifier key of the Threat Detection + /// audit storage account. If state is Enabled, storageAccountAccessKey + /// is required. + /// + [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] + public string StorageAccountAccessKey { get; set; } + + /// + /// Gets or sets specifies the number of days to keep in the Threat + /// Detection audit logs. + /// + [JsonProperty(PropertyName = "properties.retentionDays")] + public int? RetentionDays { get; set; } + + /// + /// Gets or sets specifies whether to use the default server policy. + /// Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.useServerDefault")] + public SecurityAlertPolicyUseServerDefault? UseServerDefault { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs index 3f947de63680..15d9e0e32227 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ElasticPool : Resource { /// /// Initializes a new instance of the ElasticPool class. /// - public ElasticPool() { } + public ElasticPool() + { + CustomInit(); + } /// /// Initializes a new instance of the ElasticPool class. @@ -64,20 +67,26 @@ public ElasticPool() { } DatabaseDtuMin = databaseDtuMin; StorageMB = storageMB; Kind = kind; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the creation date of the elastic pool (ISO8601 format). /// [JsonProperty(PropertyName = "properties.creationDate")] - public System.DateTime? CreationDate { get; protected set; } + public System.DateTime? CreationDate { get; private set; } /// /// Gets the state of the elastic pool. Possible values include: /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; protected set; } + public string State { get; private set; } /// /// Gets or sets the edition of the elastic pool. Possible values @@ -115,7 +124,7 @@ public ElasticPool() { } /// portal experience. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Validate the object. @@ -129,4 +138,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs index 5b4802a0d06c..6191e7786f2e 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents the activity on an elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ElasticPoolActivity : Resource { /// /// Initializes a new instance of the ElasticPoolActivity class. /// - public ElasticPoolActivity() { } + public ElasticPoolActivity() + { + CustomInit(); + } /// /// Initializes a new instance of the ElasticPoolActivity class. @@ -94,127 +97,133 @@ public ElasticPoolActivity() { } RequestedDatabaseDtuGuarantee = requestedDatabaseDtuGuarantee; RequestedDatabaseDtuCap = requestedDatabaseDtuCap; RequestedDtuGuarantee = requestedDtuGuarantee; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the time the operation finished (ISO8601 format). /// [JsonProperty(PropertyName = "properties.endTime")] - public System.DateTime? EndTime { get; protected set; } + public System.DateTime? EndTime { get; private set; } /// /// Gets the error code if available. /// [JsonProperty(PropertyName = "properties.errorCode")] - public int? ErrorCode { get; protected set; } + public int? ErrorCode { get; private set; } /// /// Gets the error message if available. /// [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } /// /// Gets the error severity if available. /// [JsonProperty(PropertyName = "properties.errorSeverity")] - public int? ErrorSeverity { get; protected set; } + public int? ErrorSeverity { get; private set; } /// /// Gets the operation name. /// [JsonProperty(PropertyName = "properties.operation")] - public string Operation { get; protected set; } + public string Operation { get; private set; } /// /// Gets the unique operation ID. /// [JsonProperty(PropertyName = "properties.operationId")] - public string OperationId { get; protected set; } + public string OperationId { get; private set; } /// /// Gets the percentage complete if available. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public int? PercentComplete { get; protected set; } + public int? PercentComplete { get; private set; } /// /// Gets the requested max DTU per database if available. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuMax")] - public int? RequestedDatabaseDtuMax { get; protected set; } + public int? RequestedDatabaseDtuMax { get; private set; } /// /// Gets the requested min DTU per database if available. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuMin")] - public int? RequestedDatabaseDtuMin { get; protected set; } + public int? RequestedDatabaseDtuMin { get; private set; } /// /// Gets the requested DTU for the pool if available. /// [JsonProperty(PropertyName = "properties.requestedDtu")] - public int? RequestedDtu { get; protected set; } + public int? RequestedDtu { get; private set; } /// /// Gets the requested name for the elastic pool if available. /// [JsonProperty(PropertyName = "properties.requestedElasticPoolName")] - public string RequestedElasticPoolName { get; protected set; } + public string RequestedElasticPoolName { get; private set; } /// /// Gets the requested storage limit for the pool in GB if available. /// [JsonProperty(PropertyName = "properties.requestedStorageLimitInGB")] - public long? RequestedStorageLimitInGB { get; protected set; } + public long? RequestedStorageLimitInGB { get; private set; } /// /// Gets the name of the elastic pool. /// [JsonProperty(PropertyName = "properties.elasticPoolName")] - public string ElasticPoolName { get; protected set; } + public string ElasticPoolName { get; private set; } /// /// Gets the name of the server the elastic pool is in. /// [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the time the operation started (ISO8601 format). /// [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; protected set; } + public System.DateTime? StartTime { get; private set; } /// /// Gets the current state of the operation. /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; protected set; } + public string State { get; private set; } /// /// Gets the requested storage limit in MB. /// [JsonProperty(PropertyName = "properties.requestedStorageLimitInMB")] - public int? RequestedStorageLimitInMB { get; protected set; } + public int? RequestedStorageLimitInMB { get; private set; } /// /// Gets the requested per database DTU guarantee. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuGuarantee")] - public int? RequestedDatabaseDtuGuarantee { get; protected set; } + public int? RequestedDatabaseDtuGuarantee { get; private set; } /// /// Gets the requested per database DTU cap. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuCap")] - public int? RequestedDatabaseDtuCap { get; protected set; } + public int? RequestedDatabaseDtuCap { get; private set; } /// /// Gets the requested DTU guarantee. /// [JsonProperty(PropertyName = "properties.requestedDtuGuarantee")] - public int? RequestedDtuGuarantee { get; protected set; } + public int? RequestedDtuGuarantee { get; private set; } /// /// Validate the object. @@ -228,4 +237,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs index 7131e241be23..9cc670d02c98 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,14 +21,17 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents the activity on an elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ElasticPoolDatabaseActivity : Resource { /// /// Initializes a new instance of the ElasticPoolDatabaseActivity /// class. /// - public ElasticPoolDatabaseActivity() { } + public ElasticPoolDatabaseActivity() + { + CustomInit(); + } /// /// Initializes a new instance of the ElasticPoolDatabaseActivity @@ -81,99 +84,105 @@ public ElasticPoolDatabaseActivity() { } ServerName = serverName; StartTime = startTime; State = state; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the database name. /// [JsonProperty(PropertyName = "properties.databaseName")] - public string DatabaseName { get; protected set; } + public string DatabaseName { get; private set; } /// /// Gets the time the operation finished (ISO8601 format). /// [JsonProperty(PropertyName = "properties.endTime")] - public System.DateTime? EndTime { get; protected set; } + public System.DateTime? EndTime { get; private set; } /// /// Gets the error code if available. /// [JsonProperty(PropertyName = "properties.errorCode")] - public int? ErrorCode { get; protected set; } + public int? ErrorCode { get; private set; } /// /// Gets the error message if available. /// [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } /// /// Gets the error severity if available. /// [JsonProperty(PropertyName = "properties.errorSeverity")] - public int? ErrorSeverity { get; protected set; } + public int? ErrorSeverity { get; private set; } /// /// Gets the operation name. /// [JsonProperty(PropertyName = "properties.operation")] - public string Operation { get; protected set; } + public string Operation { get; private set; } /// /// Gets the unique operation ID. /// [JsonProperty(PropertyName = "properties.operationId")] - public string OperationId { get; protected set; } + public string OperationId { get; private set; } /// /// Gets the percentage complete if available. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public int? PercentComplete { get; protected set; } + public int? PercentComplete { get; private set; } /// /// Gets the name for the elastic pool the database is moving into if /// available. /// [JsonProperty(PropertyName = "properties.requestedElasticPoolName")] - public string RequestedElasticPoolName { get; protected set; } + public string RequestedElasticPoolName { get; private set; } /// /// Gets the name of the current elastic pool the database is in if /// available. /// [JsonProperty(PropertyName = "properties.currentElasticPoolName")] - public string CurrentElasticPoolName { get; protected set; } + public string CurrentElasticPoolName { get; private set; } /// /// Gets the name of the current service objective if available. /// [JsonProperty(PropertyName = "properties.currentServiceObjective")] - public string CurrentServiceObjective { get; protected set; } + public string CurrentServiceObjective { get; private set; } /// /// Gets the name of the requested service objective if available. /// [JsonProperty(PropertyName = "properties.requestedServiceObjective")] - public string RequestedServiceObjective { get; protected set; } + public string RequestedServiceObjective { get; private set; } /// /// Gets the name of the server the elastic pool is in. /// [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the time the operation started (ISO8601 format). /// [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; protected set; } + public System.DateTime? StartTime { get; private set; } /// /// Gets the current state of the operation. /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; protected set; } + public string State { get; private set; } /// /// Validate the object. @@ -187,4 +196,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs index a9b2bb8cb68c..fae5bf8a1ab8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ElasticPoolEditions. @@ -22,4 +22,3 @@ public static class ElasticPoolEditions public const string Premium = "Premium"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs index b7c4a66f4e72..8d7129a1ea00 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ElasticPoolState. @@ -22,4 +22,3 @@ public static class ElasticPoolState public const string Disabled = "Disabled"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs index 53db0bb7ec6d..b1dc6f6b5933 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class ExportRequestParameters /// /// Initializes a new instance of the ExportRequestParameters class. /// - public ExportRequestParameters() { } + public ExportRequestParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the ExportRequestParameters class. @@ -48,8 +51,14 @@ public ExportRequestParameters() { } AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; AuthenticationType = authenticationType; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the type of the storage key to use. Valid values are /// StorageAccessKey and SharedAccessKey. Possible values include: @@ -116,4 +125,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs index 68d3b5554d72..ed65589b4ee9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs @@ -2,31 +2,34 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + 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; /// /// Response for Import/Export Get operation. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ImportExportOperationResponse { /// /// Initializes a new instance of the ImportExportOperationResponse /// class. /// - public ImportExportOperationResponse() { } + public ImportExportOperationResponse() + { + CustomInit(); + } /// /// Initializes a new instance of the ImportExportOperationResponse @@ -62,80 +65,85 @@ public ImportExportOperationResponse() { } QueuedTime = queuedTime; BlobUri = blobUri; ErrorMessage = errorMessage; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the id returned from the server. /// [JsonProperty(PropertyName = "id")] - public string Id { get; protected set; } + public string Id { get; private set; } /// /// Gets the name returned from the server. /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the type returned from the server. /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "properties.requestType")] - public string RequestType { get; protected set; } + public string RequestType { get; private set; } /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "properties.requestId")] - public System.Guid? RequestId { get; protected set; } + public System.Guid? RequestId { get; private set; } /// /// Gets the name of the server. /// [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the name of the database. /// [JsonProperty(PropertyName = "properties.databaseName")] - public string DatabaseName { get; protected set; } + public string DatabaseName { get; private set; } /// /// Gets the status message returned from the server. /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets the operation status last modified time. /// [JsonProperty(PropertyName = "properties.lastModifiedTime")] - public string LastModifiedTime { get; protected set; } + public string LastModifiedTime { get; private set; } /// /// Gets the operation queued time. /// [JsonProperty(PropertyName = "properties.queuedTime")] - public string QueuedTime { get; protected set; } + public string QueuedTime { get; private set; } /// /// Gets the blob uri. /// [JsonProperty(PropertyName = "properties.blobUri")] - public string BlobUri { get; protected set; } + public string BlobUri { get; private set; } /// /// Gets the error message returned from the server. /// [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs index 8d9cef4e18a9..c0b1b93f95b2 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class ImportExportOperationResponsePropertiesModel /// Initializes a new instance of the /// ImportExportOperationResponsePropertiesModel class. /// - public ImportExportOperationResponsePropertiesModel() { } + public ImportExportOperationResponsePropertiesModel() + { + CustomInit(); + } /// /// Initializes a new instance of the @@ -53,62 +56,67 @@ public ImportExportOperationResponsePropertiesModel() { } QueuedTime = queuedTime; BlobUri = blobUri; ErrorMessage = errorMessage; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "requestType")] - public string RequestType { get; protected set; } + public string RequestType { get; private set; } /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "requestId")] - public System.Guid? RequestId { get; protected set; } + public System.Guid? RequestId { get; private set; } /// /// Gets the name of the server. /// [JsonProperty(PropertyName = "serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the name of the database. /// [JsonProperty(PropertyName = "databaseName")] - public string DatabaseName { get; protected set; } + public string DatabaseName { get; private set; } /// /// Gets the status message returned from the server. /// [JsonProperty(PropertyName = "status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets the operation status last modified time. /// [JsonProperty(PropertyName = "lastModifiedTime")] - public string LastModifiedTime { get; protected set; } + public string LastModifiedTime { get; private set; } /// /// Gets the operation queued time. /// [JsonProperty(PropertyName = "queuedTime")] - public string QueuedTime { get; protected set; } + public string QueuedTime { get; private set; } /// /// Gets the blob uri. /// [JsonProperty(PropertyName = "blobUri")] - public string BlobUri { get; protected set; } + public string BlobUri { get; private set; } /// /// Gets the error message returned from the server. /// [JsonProperty(PropertyName = "errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs index d3fea5fad863..dd44f66ce55f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs @@ -2,31 +2,34 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + 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; /// /// Import database parameters. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ImportExtensionRequestParameters { /// /// Initializes a new instance of the ImportExtensionRequestParameters /// class. /// - public ImportExtensionRequestParameters() { } + public ImportExtensionRequestParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the ImportExtensionRequestParameters @@ -56,6 +59,7 @@ public ImportExtensionRequestParameters() { } AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; AuthenticationType = authenticationType; + CustomInit(); } /// /// Static constructor for ImportExtensionRequestParameters class. @@ -65,6 +69,11 @@ static ImportExtensionRequestParameters() OperationMode = "Import"; } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the name of the extension. /// @@ -150,4 +159,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs index 49bea5820b3d..f9e191a77f38 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class ImportRequestParameters : ExportRequestParameters /// /// Initializes a new instance of the ImportRequestParameters class. /// - public ImportRequestParameters() { } + public ImportRequestParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the ImportRequestParameters class. @@ -55,8 +58,14 @@ public ImportRequestParameters() { } Edition = edition; ServiceObjectiveName = serviceObjectiveName; MaxSizeBytes = maxSizeBytes; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the name of the database to import. /// @@ -110,4 +119,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs index 8eedbe7180e3..fc6216ab7fd6 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class Operation /// /// Initializes a new instance of the Operation class. /// - public Operation() { } + public Operation() + { + CustomInit(); + } /// /// Initializes a new instance of the Operation class. @@ -35,8 +38,14 @@ public Operation() { } { Name = name; Display = display; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets operation name: {provider}/{resource}/{operation} /// @@ -51,4 +60,3 @@ public Operation() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs index c99d3ec23c7b..4bb1babe51d8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class OperationDisplay /// /// Initializes a new instance of the OperationDisplay class. /// - public OperationDisplay() { } + public OperationDisplay() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationDisplay class. @@ -38,8 +41,14 @@ public OperationDisplay() { } Provider = provider; Resource = resource; Operation = operation; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets service provider: Microsoft SQL Database. /// @@ -61,4 +70,3 @@ public OperationDisplay() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs index 2b0560d98607..b4357304e49f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class OperationImpact /// /// Initializes a new instance of the OperationImpact class. /// - public OperationImpact() { } + public OperationImpact() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationImpact class. @@ -40,32 +43,37 @@ public OperationImpact() { } Unit = unit; ChangeValueAbsolute = changeValueAbsolute; ChangeValueRelative = changeValueRelative; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the name of the impact dimension. /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the unit in which estimated impact to dimension is measured. /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; protected set; } + public string Unit { get; private set; } /// /// Gets the absolute impact to dimension. /// [JsonProperty(PropertyName = "changeValueAbsolute")] - public double? ChangeValueAbsolute { get; protected set; } + public double? ChangeValueAbsolute { get; private set; } /// /// Gets the relative impact to dimension (null if not applicable) /// [JsonProperty(PropertyName = "changeValueRelative")] - public double? ChangeValueRelative { get; protected set; } + public double? ChangeValueRelative { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs index 52311fe57078..bfa59c2e3868 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -25,7 +25,10 @@ public partial class OperationListResult /// /// Initializes a new instance of the OperationListResult class. /// - public OperationListResult() { } + public OperationListResult() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationListResult class. @@ -38,8 +41,14 @@ public OperationListResult() { } { Value = value; NextLink = nextLink; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets list of SQL operations supported by the SQL resource /// provider. @@ -56,4 +65,3 @@ public OperationListResult() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs index 6874c44162dd..229b1dcf1f69 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -52,4 +52,3 @@ IEnumerator IEnumerable.GetEnumerator() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs index 1adb6c3dc4c4..066c8fef753f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for ReadScale. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum ReadScale { [EnumMember(Value = "Enabled")] @@ -28,4 +28,3 @@ public enum ReadScale Disabled } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs index 2b08d7481216..f3c73a3c7eb9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a recommented elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class RecommendedElasticPool : Resource { /// /// Initializes a new instance of the RecommendedElasticPool class. /// - public RecommendedElasticPool() { } + public RecommendedElasticPool() + { + CustomInit(); + } /// /// Initializes a new instance of the RecommendedElasticPool class. @@ -54,11 +57,11 @@ public RecommendedElasticPool() { } /// Gets maximum observed DTU. /// Gets maximum observed storage in /// megabytes. - /// The list of databases in this pool. + /// The list of databases in this pool. /// Expanded property /// The list of databases housed in the server. /// Expanded property - public RecommendedElasticPool(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databasesProperty = default(IList), IList metrics = default(IList)) + public RecommendedElasticPool(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) : base(location, name, id, type, tags) { DatabaseEdition = databaseEdition; @@ -70,17 +73,23 @@ public RecommendedElasticPool() { } ObservationPeriodEnd = observationPeriodEnd; MaxObservedDtu = maxObservedDtu; MaxObservedStorageMB = maxObservedStorageMB; - DatabasesProperty = databasesProperty; + Databases = databases; Metrics = metrics; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the edition of the recommended elastic pool. The /// ElasticPoolEditions enumeration contains all the valid editions. /// Possible values include: 'Basic', 'Standard', 'Premium' /// [JsonProperty(PropertyName = "properties.databaseEdition")] - public string DatabaseEdition { get; protected set; } + public string DatabaseEdition { get; private set; } /// /// Gets or sets the DTU for the recommended elastic pool. @@ -110,37 +119,37 @@ public RecommendedElasticPool() { } /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodStart")] - public System.DateTime? ObservationPeriodStart { get; protected set; } + public System.DateTime? ObservationPeriodStart { get; private set; } /// /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodEnd")] - public System.DateTime? ObservationPeriodEnd { get; protected set; } + public System.DateTime? ObservationPeriodEnd { get; private set; } /// /// Gets maximum observed DTU. /// [JsonProperty(PropertyName = "properties.maxObservedDtu")] - public double? MaxObservedDtu { get; protected set; } + public double? MaxObservedDtu { get; private set; } /// /// Gets maximum observed storage in megabytes. /// [JsonProperty(PropertyName = "properties.maxObservedStorageMB")] - public double? MaxObservedStorageMB { get; protected set; } + public double? MaxObservedStorageMB { get; private set; } /// /// Gets the list of databases in this pool. Expanded property /// [JsonProperty(PropertyName = "properties.databases")] - public IList DatabasesProperty { get; protected set; } + public IList Databases { get; private set; } /// /// Gets the list of databases housed in the server. Expanded property /// [JsonProperty(PropertyName = "properties.metrics")] - public IList Metrics { get; protected set; } + public IList Metrics { get; private set; } /// /// Validate the object. @@ -151,9 +160,9 @@ public RecommendedElasticPool() { } public override void Validate() { base.Validate(); - if (DatabasesProperty != null) + if (Databases != null) { - foreach (var element in DatabasesProperty) + foreach (var element in Databases) { if (element != null) { @@ -164,4 +173,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs index 9160cebc65bf..4cabdbcd469a 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class RecommendedElasticPoolMetric /// Initializes a new instance of the RecommendedElasticPoolMetric /// class. /// - public RecommendedElasticPoolMetric() { } + public RecommendedElasticPoolMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the RecommendedElasticPoolMetric @@ -39,8 +42,14 @@ public RecommendedElasticPoolMetric() { } DateTime = dateTime; Dtu = dtu; SizeGB = sizeGB; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the time of metric (ISO8601 format). /// @@ -62,4 +71,3 @@ public RecommendedElasticPoolMetric() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs index ecc8d77ce70c..794c2958dbcf 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database recommended index. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class RecommendedIndex : Resource { /// /// Initializes a new instance of the RecommendedIndex class. /// - public RecommendedIndex() { } + public RecommendedIndex() + { + CustomInit(); + } /// /// Initializes a new instance of the RecommendedIndex class. @@ -79,15 +82,21 @@ public RecommendedIndex() { } IndexScript = indexScript; EstimatedImpact = estimatedImpact; ReportedImpact = reportedImpact; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the proposed index action. You can create a missing index, /// drop an unused index, or rebuild an existing index to improve its /// performance. Possible values include: 'Create', 'Drop', 'Rebuild' /// [JsonProperty(PropertyName = "properties.action")] - public RecommendedIndexActions? Action { get; protected set; } + public RecommendedIndexActions? Action { get; private set; } /// /// Gets the current recommendation state. Possible values include: @@ -95,21 +104,21 @@ public RecommendedIndex() { } /// 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' /// [JsonProperty(PropertyName = "properties.state")] - public RecommendedIndexStates? State { get; protected set; } + public RecommendedIndexStates? State { get; private set; } /// /// Gets the UTC datetime showing when this resource was created /// (ISO8601 format). /// [JsonProperty(PropertyName = "properties.created")] - public System.DateTime? Created { get; protected set; } + public System.DateTime? Created { get; private set; } /// /// Gets the UTC datetime of when was this resource last changed /// (ISO8601 format). /// [JsonProperty(PropertyName = "properties.lastModified")] - public System.DateTime? LastModified { get; protected set; } + public System.DateTime? LastModified { get; private set; } /// /// Gets the type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, @@ -117,49 +126,49 @@ public RecommendedIndex() { } /// 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' /// [JsonProperty(PropertyName = "properties.indexType")] - public RecommendedIndexTypes? IndexType { get; protected set; } + public RecommendedIndexTypes? IndexType { get; private set; } /// /// Gets the schema where table to build index over resides /// [JsonProperty(PropertyName = "properties.schema")] - public string Schema { get; protected set; } + public string Schema { get; private set; } /// /// Gets the table on which to build index. /// [JsonProperty(PropertyName = "properties.table")] - public string Table { get; protected set; } + public string Table { get; private set; } /// /// Gets columns over which to build index /// [JsonProperty(PropertyName = "properties.columns")] - public IList Columns { get; protected set; } + public IList Columns { get; private set; } /// /// Gets the list of column names to be included in the index /// [JsonProperty(PropertyName = "properties.includedColumns")] - public IList IncludedColumns { get; protected set; } + public IList IncludedColumns { get; private set; } /// /// Gets the full build index script /// [JsonProperty(PropertyName = "properties.indexScript")] - public string IndexScript { get; protected set; } + public string IndexScript { get; private set; } /// /// Gets the estimated impact of doing recommended index action. /// [JsonProperty(PropertyName = "properties.estimatedImpact")] - public IList EstimatedImpact { get; protected set; } + public IList EstimatedImpact { get; private set; } /// /// Gets the values reported after index action is complete. /// [JsonProperty(PropertyName = "properties.reportedImpact")] - public IList ReportedImpact { get; protected set; } + public IList ReportedImpact { get; private set; } /// /// Validate the object. @@ -173,4 +182,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs index a548b1a7038b..2e186b65f556 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RecommendedIndexActions. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RecommendedIndexActions { [EnumMember(Value = "Create")] @@ -30,4 +30,3 @@ public enum RecommendedIndexActions Rebuild } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs index 238086f39ccd..7e73ad0dce3b 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RecommendedIndexStates. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RecommendedIndexStates { [EnumMember(Value = "Active")] @@ -46,4 +46,3 @@ public enum RecommendedIndexStates Success } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs index 737d4e5a1d90..f8942e0aa74b 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RecommendedIndexTypes. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RecommendedIndexTypes { [EnumMember(Value = "CLUSTERED")] @@ -32,4 +32,3 @@ public enum RecommendedIndexTypes CLUSTEREDCOLUMNSTORE } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs index 29c9f64b193a..97c30f8942dd 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs @@ -2,30 +2,33 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + 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 a database replication link. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ReplicationLink : SqlSubResource { /// /// Initializes a new instance of the ReplicationLink class. /// - public ReplicationLink() { } + public ReplicationLink() + { + CustomInit(); + } /// /// Initializes a new instance of the ReplicationLink class. @@ -73,50 +76,56 @@ public ReplicationLink() { } StartTime = startTime; PercentComplete = percentComplete; ReplicationState = replicationState; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets location of the server that contains this firewall rule. /// [JsonProperty(PropertyName = "location")] - public string Location { get; protected set; } + public string Location { get; private set; } /// /// Gets type of resource this is. /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets legacy value indicating whether termination is allowed. /// Currently always returns true. /// [JsonProperty(PropertyName = "properties.isTerminationAllowed")] - public bool? IsTerminationAllowed { get; protected set; } + public bool? IsTerminationAllowed { get; private set; } /// /// Gets replication mode of this replication link. /// [JsonProperty(PropertyName = "properties.replicationMode")] - public string ReplicationMode { get; protected set; } + public string ReplicationMode { get; private set; } /// /// Gets the name of the server hosting the partner database. /// [JsonProperty(PropertyName = "properties.partnerServer")] - public string PartnerServer { get; protected set; } + public string PartnerServer { get; private set; } /// /// Gets the name of the partner database. /// [JsonProperty(PropertyName = "properties.partnerDatabase")] - public string PartnerDatabase { get; protected set; } + public string PartnerDatabase { get; private set; } /// /// Gets the Azure Region of the partner database. /// [JsonProperty(PropertyName = "properties.partnerLocation")] - public string PartnerLocation { get; protected set; } + public string PartnerLocation { get; private set; } /// /// Gets the role of the database in the replication link. Possible @@ -124,7 +133,7 @@ public ReplicationLink() { } /// 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.role")] - public ReplicationRole? Role { get; protected set; } + public ReplicationRole? Role { get; private set; } /// /// Gets the role of the partner database in the replication link. @@ -132,27 +141,26 @@ public ReplicationLink() { } /// 'NonReadableSecondary', 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.partnerRole")] - public ReplicationRole? PartnerRole { get; protected set; } + public ReplicationRole? PartnerRole { get; private set; } /// /// Gets the start time for the replication link. /// [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; protected set; } + public System.DateTime? StartTime { get; private set; } /// /// Gets the percentage of seeding complete for the replication link. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public int? PercentComplete { get; protected set; } + public int? PercentComplete { get; private set; } /// /// Gets the replication state for the replication link. Possible /// values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] - public string ReplicationState { get; protected set; } + public string ReplicationState { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs index fd99c0cfc0ca..c6ad5ebfe7d6 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for ReplicationRole. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum ReplicationRole { [EnumMember(Value = "Primary")] @@ -34,4 +34,3 @@ public enum ReplicationRole Copy } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs index 9fa5d1db98f6..f4d819c0c36b 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ReplicationState. @@ -23,4 +23,3 @@ public static class ReplicationState public const string SUSPENDED = "SUSPENDED"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs index 7e42b810d834..ef1055aa6406 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +26,10 @@ public partial class Resource : IResource /// /// Initializes a new instance of the Resource class. /// - public Resource() { } + public Resource() + { + CustomInit(); + } /// /// Initializes a new instance of the Resource class. @@ -43,25 +46,31 @@ public Resource() { } Type = type; Location = location; Tags = tags; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets resource name /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets resource ID /// [JsonProperty(PropertyName = "id")] - public string Id { get; protected set; } + public string Id { get; private set; } /// /// Gets resource type /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets or sets resource location @@ -90,4 +99,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs index 653693a2cccf..6bd3fb13e5e9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database restore point. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class RestorePoint : Resource { /// /// Initializes a new instance of the RestorePoint class. /// - public RestorePoint() { } + public RestorePoint() + { + CustomInit(); + } /// /// Initializes a new instance of the RestorePoint class. @@ -52,28 +55,34 @@ public RestorePoint() { } RestorePointType = restorePointType; RestorePointCreationDate = restorePointCreationDate; EarliestRestoreDate = earliestRestoreDate; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the restore point type of the database restore point. Possible /// values include: 'DISCRETE', 'CONTINUOUS' /// [JsonProperty(PropertyName = "properties.restorePointType")] - public RestorePointTypes? RestorePointType { get; protected set; } + public RestorePointTypes? RestorePointType { get; private set; } /// /// Gets restore point creation time (ISO8601 format). Populated when /// restorePointType = CONTINUOUS. Null otherwise. /// [JsonProperty(PropertyName = "properties.restorePointCreationDate")] - public System.DateTime? RestorePointCreationDate { get; protected set; } + public System.DateTime? RestorePointCreationDate { get; private set; } /// /// Gets earliest restore time (ISO8601 format). Populated when /// restorePointType = DISCRETE. Null otherwise. /// [JsonProperty(PropertyName = "properties.earliestRestoreDate")] - public System.DateTime? EarliestRestoreDate { get; protected set; } + public System.DateTime? EarliestRestoreDate { get; private set; } /// /// Validate the object. @@ -87,4 +96,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs index e417275b1001..418d20f5ddd3 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RestorePointTypes. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RestorePointTypes { [EnumMember(Value = "DISCRETE")] @@ -28,4 +28,3 @@ public enum RestorePointTypes CONTINUOUS } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs index ad5ad7b2ace7..c29c4a2b71e4 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for SampleName. @@ -20,4 +20,3 @@ public static class SampleName public const string AdventureWorksLT = "AdventureWorksLT"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs index 51ba2a2dcded..715f19d601b8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database schema. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Schema : Resource { /// /// Initializes a new instance of the Schema class. /// - public Schema() { } + public Schema() + { + CustomInit(); + } /// /// Initializes a new instance of the Schema class. @@ -42,13 +45,19 @@ public Schema() { } : base(location, name, id, type, tags) { Tables = tables; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the tables from this database. /// [JsonProperty(PropertyName = "properties.tables")] - public IList Tables { get; protected set; } + public IList
Tables { get; private set; } /// /// Validate the object. @@ -72,4 +81,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlert.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlert.cs new file mode 100644 index 000000000000..92e45ecfadbd --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlert.cs @@ -0,0 +1,26 @@ +// 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; + + /// + /// Defines values for SecurityAlert. + /// + public static class SecurityAlert + { + public const string SqlInjection = "Sql_Injection"; + public const string SqlInjectionVulnerability = "Sql_Injection_Vulnerability"; + public const string AccessAnomaly = "Access_Anomaly"; + public const string UsageAnomaly = "Usage_Anomaly"; + public const string Preview = "Preview"; + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs new file mode 100644 index 000000000000..fea00eaf6a3b --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs @@ -0,0 +1,30 @@ +// 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 Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SecurityAlertPolicyEmailAccountAdmins. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SecurityAlertPolicyEmailAccountAdmins + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyState.cs new file mode 100644 index 000000000000..fe6fd2f81c89 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyState.cs @@ -0,0 +1,32 @@ +// 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 Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SecurityAlertPolicyState. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SecurityAlertPolicyState + { + [EnumMember(Value = "New")] + New, + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs new file mode 100644 index 000000000000..9117b18e6102 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs @@ -0,0 +1,30 @@ +// 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 Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SecurityAlertPolicyUseServerDefault. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SecurityAlertPolicyUseServerDefault + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs index 94ce0b3719de..fc0ab41ee3c8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a server. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Server : Resource { /// /// Initializes a new instance of the Server class. /// - public Server() { } + public Server() + { + CustomInit(); + } /// /// Initializes a new instance of the Server class. @@ -70,20 +73,26 @@ public Server() { } ExternalAdministratorSid = externalAdministratorSid; ExternalAdministratorLogin = externalAdministratorLogin; State = state; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets kind of sql server. This is metadata used for the Azure /// portal experience. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Gets the fully qualified domain name of the server. /// [JsonProperty(PropertyName = "properties.fullyQualifiedDomainName")] - public string FullyQualifiedDomainName { get; protected set; } + public string FullyQualifiedDomainName { get; private set; } /// /// Gets or sets the version of the server. Possible values include: @@ -114,7 +123,7 @@ public Server() { } /// .../servers/{serverName}/administrators. /// [JsonProperty(PropertyName = "properties.externalAdministratorSid")] - public System.Guid? ExternalAdministratorSid { get; protected set; } + public System.Guid? ExternalAdministratorSid { get; private set; } /// /// Gets the display name of the Azure Active Directory object with @@ -123,14 +132,14 @@ public Server() { } /// .../servers/{serverName}/administrators /// [JsonProperty(PropertyName = "properties.externalAdministratorLogin")] - public string ExternalAdministratorLogin { get; protected set; } + public string ExternalAdministratorLogin { get; private set; } /// /// Gets the state of the server. Possible values include: 'Ready', /// 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public ServerState? State { get; protected set; } + public ServerState? State { get; private set; } /// /// Validate the object. @@ -144,4 +153,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs index 0d1dafa9a75d..089538a122af 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs @@ -2,30 +2,33 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + 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 a server firewall rule. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ServerFirewallRule : SqlSubResource { /// /// Initializes a new instance of the ServerFirewallRule class. /// - public ServerFirewallRule() { } + public ServerFirewallRule() + { + CustomInit(); + } /// /// Initializes a new instance of the ServerFirewallRule class. @@ -52,25 +55,31 @@ public ServerFirewallRule() { } Type = type; StartIpAddress = startIpAddress; EndIpAddress = endIpAddress; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets kind of server that contains this firewall rule. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Gets location of the server that contains this firewall rule. /// [JsonProperty(PropertyName = "location")] - public string Location { get; protected set; } + public string Location { get; private set; } /// /// Gets type of resource this is. /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets or sets the start IP address of the firewall rule. Must be @@ -107,4 +116,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs index 514b443b2e14..165386b6bc0a 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class ServerMetric /// /// Initializes a new instance of the ServerMetric class. /// - public ServerMetric() { } + public ServerMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the ServerMetric class. @@ -44,50 +47,55 @@ public ServerMetric() { } Limit = limit; Unit = unit; NextResetTime = nextResetTime; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets name of the server usage metric. /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the name of the resource. /// [JsonProperty(PropertyName = "resourceName")] - public string ResourceName { get; protected set; } + public string ResourceName { get; private set; } /// /// Gets the metric display name. /// [JsonProperty(PropertyName = "displayName")] - public string DisplayName { get; protected set; } + public string DisplayName { get; private set; } /// /// Gets the current value of the metric. /// [JsonProperty(PropertyName = "currentValue")] - public double? CurrentValue { get; protected set; } + public double? CurrentValue { get; private set; } /// /// Gets the current limit of the metric. /// [JsonProperty(PropertyName = "limit")] - public double? Limit { get; protected set; } + public double? Limit { get; private set; } /// /// Gets the units of the metric. /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; protected set; } + public string Unit { get; private set; } /// /// Gets the next reset time for the metric (ISO8601 format). /// [JsonProperty(PropertyName = "nextResetTime")] - public System.DateTime? NextResetTime { get; protected set; } + public System.DateTime? NextResetTime { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs index c2669c27745e..db7bcb0552b3 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for ServerState. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum ServerState { [EnumMember(Value = "Ready")] @@ -28,4 +28,3 @@ public enum ServerState Disabled } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs index 820962c3339e..4f9f632f75ba 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ServerVersion. @@ -21,4 +21,3 @@ public static class ServerVersion public const string OneTwoFullStopZero = "12.0"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs index b2a9f4ab297f..012855de145e 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs @@ -2,30 +2,33 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + 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 a database service objective. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ServiceObjective : SqlSubResource { /// /// Initializes a new instance of the ServiceObjective class. /// - public ServiceObjective() { } + public ServiceObjective() + { + CustomInit(); + } /// /// Initializes a new instance of the ServiceObjective class. @@ -50,40 +53,45 @@ public ServiceObjective() { } IsSystem = isSystem; Description = description; Enabled = enabled; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the name for the service objective. /// [JsonProperty(PropertyName = "properties.serviceObjectiveName")] - public string ServiceObjectiveName { get; protected set; } + public string ServiceObjectiveName { get; private set; } /// /// Gets whether the service level objective is the default service /// objective. /// [JsonProperty(PropertyName = "properties.isDefault")] - public bool? IsDefault { get; protected set; } + public bool? IsDefault { get; private set; } /// /// Gets whether the service level objective is a system service /// objective. /// [JsonProperty(PropertyName = "properties.isSystem")] - public bool? IsSystem { get; protected set; } + public bool? IsSystem { get; private set; } /// /// Gets the description for the service level objective. /// [JsonProperty(PropertyName = "properties.description")] - public string Description { get; protected set; } + public string Description { get; private set; } /// /// Gets whether the service level objective is enabled. /// [JsonProperty(PropertyName = "properties.enabled")] - public bool? Enabled { get; protected set; } + public bool? Enabled { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs index 2d48cb3b9fb5..9d7b728a8a13 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ServiceObjectiveName. @@ -33,4 +33,3 @@ public static class ServiceObjectiveName public const string ElasticPool = "ElasticPool"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs index 959cf5b3ee56..3468325dfa56 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a Service Tier Advisor. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ServiceTierAdvisor : SqlSubResource { /// /// Initializes a new instance of the ServiceTierAdvisor class. /// - public ServiceTierAdvisor() { } + public ServiceTierAdvisor() + { + CustomInit(); + } /// /// Initializes a new instance of the ServiceTierAdvisor class. @@ -107,132 +110,137 @@ public ServiceTierAdvisor() { } OverallRecommendationServiceLevelObjective = overallRecommendationServiceLevelObjective; OverallRecommendationServiceLevelObjectiveId = overallRecommendationServiceLevelObjectiveId; Confidence = confidence; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodStart")] - public System.DateTime? ObservationPeriodStart { get; protected set; } + public System.DateTime? ObservationPeriodStart { get; private set; } /// /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodEnd")] - public System.DateTime? ObservationPeriodEnd { get; protected set; } + public System.DateTime? ObservationPeriodEnd { get; private set; } /// /// Gets the activeTimeRatio for service tier advisor. /// [JsonProperty(PropertyName = "properties.activeTimeRatio")] - public double? ActiveTimeRatio { get; protected set; } + public double? ActiveTimeRatio { get; private set; } /// /// Gets or sets minDtu for service tier advisor. /// [JsonProperty(PropertyName = "properties.minDtu")] - public double? MinDtu { get; protected set; } + public double? MinDtu { get; private set; } /// /// Gets or sets avgDtu for service tier advisor. /// [JsonProperty(PropertyName = "properties.avgDtu")] - public double? AvgDtu { get; protected set; } + public double? AvgDtu { get; private set; } /// /// Gets or sets maxDtu for service tier advisor. /// [JsonProperty(PropertyName = "properties.maxDtu")] - public double? MaxDtu { get; protected set; } + public double? MaxDtu { get; private set; } /// /// Gets or sets maxSizeInGB for service tier advisor. /// [JsonProperty(PropertyName = "properties.maxSizeInGB")] - public double? MaxSizeInGB { get; protected set; } + public double? MaxSizeInGB { get; private set; } /// /// Gets or sets serviceLevelObjectiveUsageMetrics for the service tier /// advisor. /// [JsonProperty(PropertyName = "properties.serviceLevelObjectiveUsageMetrics")] - public IList ServiceLevelObjectiveUsageMetrics { get; protected set; } + public IList ServiceLevelObjectiveUsageMetrics { get; private set; } /// /// Gets or sets currentServiceLevelObjective for service tier advisor. /// [JsonProperty(PropertyName = "properties.currentServiceLevelObjective")] - public string CurrentServiceLevelObjective { get; protected set; } + public string CurrentServiceLevelObjective { get; private set; } /// /// Gets or sets currentServiceLevelObjectiveId for service tier /// advisor. /// [JsonProperty(PropertyName = "properties.currentServiceLevelObjectiveId")] - public System.Guid? CurrentServiceLevelObjectiveId { get; protected set; } + public System.Guid? CurrentServiceLevelObjectiveId { get; private set; } /// /// Gets or sets usageBasedRecommendationServiceLevelObjective for /// service tier advisor. /// [JsonProperty(PropertyName = "properties.usageBasedRecommendationServiceLevelObjective")] - public string UsageBasedRecommendationServiceLevelObjective { get; protected set; } + public string UsageBasedRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets usageBasedRecommendationServiceLevelObjectiveId for /// service tier advisor. /// [JsonProperty(PropertyName = "properties.usageBasedRecommendationServiceLevelObjectiveId")] - public System.Guid? UsageBasedRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? UsageBasedRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets databaseSizeBasedRecommendationServiceLevelObjective /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.databaseSizeBasedRecommendationServiceLevelObjective")] - public string DatabaseSizeBasedRecommendationServiceLevelObjective { get; protected set; } + public string DatabaseSizeBasedRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.databaseSizeBasedRecommendationServiceLevelObjectiveId")] - public System.Guid? DatabaseSizeBasedRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? DatabaseSizeBasedRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets disasterPlanBasedRecommendationServiceLevelObjective /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.disasterPlanBasedRecommendationServiceLevelObjective")] - public string DisasterPlanBasedRecommendationServiceLevelObjective { get; protected set; } + public string DisasterPlanBasedRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.disasterPlanBasedRecommendationServiceLevelObjectiveId")] - public System.Guid? DisasterPlanBasedRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? DisasterPlanBasedRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets overallRecommendationServiceLevelObjective for service /// tier advisor. /// [JsonProperty(PropertyName = "properties.overallRecommendationServiceLevelObjective")] - public string OverallRecommendationServiceLevelObjective { get; protected set; } + public string OverallRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets overallRecommendationServiceLevelObjectiveId for /// service tier advisor. /// [JsonProperty(PropertyName = "properties.overallRecommendationServiceLevelObjectiveId")] - public System.Guid? OverallRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? OverallRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets confidence for service tier advisor. /// [JsonProperty(PropertyName = "properties.confidence")] - public double? Confidence { get; protected set; } + public double? Confidence { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs index c66774c45fdd..b029dfbdcb41 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class SloUsageMetric /// /// Initializes a new instance of the SloUsageMetric class. /// - public SloUsageMetric() { } + public SloUsageMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the SloUsageMetric class. @@ -40,8 +43,14 @@ public SloUsageMetric() { } ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; InRangeTimeRatio = inRangeTimeRatio; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the serviceLevelObjective for SLO usage metric. /// Possible values include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', @@ -64,4 +73,3 @@ public SloUsageMetric() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs index c5346bf44a6e..e346fd059123 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class SqlSubResource /// /// Initializes a new instance of the SqlSubResource class. /// - public SqlSubResource() { } + public SqlSubResource() + { + CustomInit(); + } /// /// Initializes a new instance of the SqlSubResource class. @@ -33,20 +36,25 @@ public SqlSubResource() { } { 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; protected set; } + public string Name { get; private set; } /// /// Gets the resource ID. /// [JsonProperty(PropertyName = "id")] - public string Id { get; protected set; } + public string Id { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlTypedSubResource.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlTypedSubResource.cs new file mode 100644 index 000000000000..4f9cddfaf6ff --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlTypedSubResource.cs @@ -0,0 +1,55 @@ +// 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 SqlTypedSubResource : SqlSubResource + { + /// + /// Initializes a new instance of the SqlTypedSubResource class. + /// + public SqlTypedSubResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlTypedSubResource class. + /// + /// Resource name + /// The resource ID. + /// Resource type + public SqlTypedSubResource(string name = default(string), string id = default(string), string type = default(string)) + : base(name, id) + { + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs index 0f6972c3ea42..46e88403d8d4 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for StorageKeyType. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum StorageKeyType { [EnumMember(Value = "StorageAccessKey")] @@ -28,4 +28,3 @@ public enum StorageKeyType SharedAccessKey } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs index 8f1417dbab80..69909db858d8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database table. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Table : Resource { /// /// Initializes a new instance of the Table class. /// - public Table() { } + public Table() + { + CustomInit(); + } /// /// Initializes a new instance of the Table class. @@ -48,26 +51,32 @@ public Table() { } TableType = tableType; Columns = columns; RecommendedIndexes = recommendedIndexes; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the type of database table. Possible values include: /// 'BaseTable', 'View' /// [JsonProperty(PropertyName = "properties.tableType")] - public TableType? TableType { get; protected set; } + public TableType? TableType { get; private set; } /// /// Gets the columns from this table. /// [JsonProperty(PropertyName = "properties.columns")] - public IList Columns { get; protected set; } + public IList Columns { get; private set; } /// /// Gets the recommended indices for this table. /// [JsonProperty(PropertyName = "properties.recommendedIndexes")] - public IList RecommendedIndexes { get; protected set; } + public IList RecommendedIndexes { get; private set; } /// /// Validate the object. @@ -101,4 +110,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs index c6805a2c3320..47e740163487 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for TableType. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum TableType { [EnumMember(Value = "BaseTable")] @@ -28,4 +28,3 @@ public enum TableType View } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs index 86ea1f0a86bc..58ed7ee7380f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for TargetElasticPoolEditions. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum TargetElasticPoolEditions { [EnumMember(Value = "Basic")] @@ -30,4 +30,3 @@ public enum TargetElasticPoolEditions Premium } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs index df2de344333c..814a8d532136 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs @@ -2,30 +2,33 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + 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 a database transparent data encryption . /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class TransparentDataEncryption : SqlSubResource { /// /// Initializes a new instance of the TransparentDataEncryption class. /// - public TransparentDataEncryption() { } + public TransparentDataEncryption() + { + CustomInit(); + } /// /// Initializes a new instance of the TransparentDataEncryption class. @@ -38,8 +41,14 @@ public TransparentDataEncryption() { } : base(name, id) { Status = status; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the status of the database transparent data /// encryption. Possible values include: 'Enabled', 'Disabled' @@ -49,4 +58,3 @@ public TransparentDataEncryption() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs index 110d85cf1a25..c6ba41500cd9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs @@ -2,31 +2,34 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + 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 a database transparent data encryption Scan. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class TransparentDataEncryptionActivity : SqlSubResource { /// /// Initializes a new instance of the TransparentDataEncryptionActivity /// class. /// - public TransparentDataEncryptionActivity() { } + public TransparentDataEncryptionActivity() + { + CustomInit(); + } /// /// Initializes a new instance of the TransparentDataEncryptionActivity @@ -43,22 +46,27 @@ public TransparentDataEncryptionActivity() { } { Status = status; PercentComplete = percentComplete; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the status of the database. Possible values include: /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan /// for a database. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public double? PercentComplete { get; protected set; } + public double? PercentComplete { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs index ac521bd13c90..51513ef15a93 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for TransparentDataEncryptionActivityStates. @@ -21,4 +21,3 @@ public static class TransparentDataEncryptionActivityStates public const string Decrypting = "Decrypting"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs index c52653ac7e3b..d0c9c3b19f88 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for TransparentDataEncryptionStates. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum TransparentDataEncryptionStates { [EnumMember(Value = "Enabled")] @@ -28,4 +28,3 @@ public enum TransparentDataEncryptionStates Disabled } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs index db46a3df2ecd..0922308bf869 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs @@ -2,15 +2,15 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class UpgradeHint /// /// Initializes a new instance of the UpgradeHint class. /// - public UpgradeHint() { } + public UpgradeHint() + { + CustomInit(); + } /// /// Initializes a new instance of the UpgradeHint class. @@ -37,8 +40,14 @@ public UpgradeHint() { } { TargetServiceLevelObjective = targetServiceLevelObjective; TargetServiceLevelObjectiveId = targetServiceLevelObjectiveId; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets targetServiceLevelObjective for upgrade hint. /// @@ -53,4 +62,3 @@ public UpgradeHint() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs index f417c610e550..a91686f4beb5 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 Azure; - using Management; - using Sql; - using Rest; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +26,10 @@ public partial class UpgradeRecommendedElasticPoolProperties /// Initializes a new instance of the /// UpgradeRecommendedElasticPoolProperties class. /// - public UpgradeRecommendedElasticPoolProperties() { } + public UpgradeRecommendedElasticPoolProperties() + { + CustomInit(); + } /// /// Initializes a new instance of the @@ -60,8 +63,14 @@ public UpgradeRecommendedElasticPoolProperties() { } DatabaseDtuMax = databaseDtuMax; DatabaseCollection = databaseCollection; IncludeAllDatabases = includeAllDatabases; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the name of the recommended elastic pool being /// upgraded. @@ -134,4 +143,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs index 193e5e01070e..2700ed6742ef 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -134,9 +134,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -151,6 +151,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -198,7 +200,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -235,7 +237,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -345,9 +347,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -362,6 +364,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -409,7 +413,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -446,7 +450,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -538,9 +542,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -555,6 +559,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -602,7 +608,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -639,7 +645,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -740,9 +746,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -757,6 +763,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -804,7 +812,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -841,7 +849,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -942,9 +950,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -959,6 +967,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1006,7 +1016,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1043,7 +1053,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1062,4 +1072,3 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs index 2808c1b03aeb..b0e0c7f03abe 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -265,4 +265,3 @@ public static IEnumerable ListMetrics(this IRecomm } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs index 64b56154b5fa..4aa18d740752 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -146,9 +146,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -163,6 +163,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -180,7 +182,7 @@ internal ServersOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -216,7 +218,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -253,7 +255,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -271,7 +273,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -369,9 +371,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -386,6 +388,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -423,11 +427,19 @@ internal ServersOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -545,9 +557,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -562,6 +574,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -609,7 +623,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -646,7 +660,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -738,9 +752,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -755,6 +769,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -802,7 +818,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -839,7 +855,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -938,9 +954,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -955,6 +971,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1002,7 +1020,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1039,7 +1057,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1143,9 +1161,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1160,6 +1178,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1177,7 +1197,7 @@ internal ServersOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -1213,7 +1233,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1250,7 +1270,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1268,7 +1288,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1357,9 +1377,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1374,6 +1394,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1411,11 +1433,19 @@ internal ServersOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -1524,9 +1554,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1541,6 +1571,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1588,7 +1620,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1625,7 +1657,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1708,9 +1740,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1725,6 +1757,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1772,7 +1806,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1809,7 +1843,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1901,9 +1935,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1918,6 +1952,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1965,7 +2001,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2002,7 +2038,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2103,9 +2139,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2120,6 +2156,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2167,7 +2205,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2204,7 +2242,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2296,9 +2334,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2313,6 +2351,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2360,7 +2400,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2397,7 +2437,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2501,9 +2541,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2518,6 +2558,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2535,7 +2577,7 @@ internal ServersOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials @@ -2571,7 +2613,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2608,7 +2650,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2627,4 +2669,3 @@ internal ServersOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs index 542c38da904e..9059b2ab823a 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -119,7 +119,7 @@ public static void DeleteFirewallRule(this IServersOperations operations, string /// public static async Task DeleteFirewallRuleAsync(this IServersOperations operations, string resourceGroupName, string serverName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteFirewallRuleWithHttpMessagesAsync(resourceGroupName, serverName, firewallRuleName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteFirewallRuleWithHttpMessagesAsync(resourceGroupName, serverName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -372,7 +372,7 @@ public static void Delete(this IServersOperations operations, string resourceGro /// public static async Task DeleteAsync(this IServersOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -635,4 +635,3 @@ public static ImportExportOperationResponse BeginImportDatabase(this IServersOpe } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs index f258532d2230..cfc7da566c84 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs @@ -2,17 +2,17 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; using Models; using Newtonsoft.Json; using System.Collections; @@ -39,12 +39,12 @@ public partial class SqlManagementClient : ServiceClient, I /// /// Gets or sets json serialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; } + public JsonSerializerSettings SerializationSettings { get; private set; } /// /// Gets or sets json deserialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Credentials needed for the client to connect to Azure. @@ -98,13 +98,23 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IRecommendedElasticPoolsOperations RecommendedElasticPools { get; private set; } + /// + /// Gets the IDatabaseThreatDetectionPoliciesOperations. + /// + public virtual IDatabaseThreatDetectionPoliciesOperations DatabaseThreatDetectionPolicies { get; private set; } + + /// + /// Gets the IDatabaseBlobAuditingPoliciesOperations. + /// + public virtual IDatabaseBlobAuditingPoliciesOperations DatabaseBlobAuditingPolicies { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected SqlManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) + protected SqlManagementClient(params DelegatingHandler[] handlers) : base(handlers) { Initialize(); } @@ -118,7 +128,7 @@ protected SqlManagementClient(params System.Net.Http.DelegatingHandler[] handler /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected SqlManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) + protected SqlManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { Initialize(); } @@ -135,7 +145,7 @@ protected SqlManagementClient(System.Net.Http.HttpClientHandler rootHandler, par /// /// Thrown when a required parameter is null /// - protected SqlManagementClient(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + protected SqlManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -159,7 +169,7 @@ protected SqlManagementClient(System.Uri baseUri, params System.Net.Http.Delegat /// /// Thrown when a required parameter is null /// - protected SqlManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + protected SqlManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -180,7 +190,7 @@ protected SqlManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHand /// /// Thrown when a required parameter is null /// - public SqlManagementClient(ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public SqlManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { @@ -208,7 +218,7 @@ public SqlManagementClient(ServiceClientCredentials credentials, params System.N /// /// Thrown when a required parameter is null /// - public SqlManagementClient(ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public SqlManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { @@ -236,7 +246,7 @@ public SqlManagementClient(ServiceClientCredentials credentials, System.Net.Http /// /// Thrown when a required parameter is null /// - public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -272,7 +282,7 @@ public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credenti /// /// Thrown when a required parameter is null /// - public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -304,11 +314,13 @@ private void Initialize() ImportExportOperations = new ImportExportOperations(this); ElasticPools = new ElasticPoolsOperations(this); RecommendedElasticPools = new RecommendedElasticPoolsOperations(this); + DatabaseThreatDetectionPolicies = new DatabaseThreatDetectionPoliciesOperations(this); + DatabaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; - SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings + SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, @@ -316,20 +328,20 @@ private void Initialize() NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + Converters = new List { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); - DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings + DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + Converters = new List { new Iso8601TimeSpanConverter() } @@ -383,9 +395,9 @@ private void Initialize() _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (GenerateClientRequestId != null && GenerateClientRequestId.Value) @@ -400,6 +412,8 @@ private void Initialize() } _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -447,7 +461,7 @@ private void Initialize() ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -484,7 +498,7 @@ private void Initialize() { _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -503,4 +517,3 @@ private void Initialize() } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs index 21f13bae02ae..aed8a280d8d9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs @@ -2,16 +2,16 @@ // 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.0.0 +// 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 { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Threading; using System.Threading.Tasks; @@ -51,4 +51,3 @@ public static OperationListResult ListOperations(this ISqlManagementClient opera } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Properties/AssemblyInfo.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Properties/AssemblyInfo.cs index 49fe5852abb4..d49fb9978b9e 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Properties/AssemblyInfo.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Properties/AssemblyInfo.cs @@ -22,7 +22,7 @@ [assembly: AssemblyTitle("Microsoft Azure SQL Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure SQL.")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.3.0.0")] diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd index ea5429eb4475..c282c757389c 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd @@ -4,9 +4,8 @@ :: @echo off -set autoRestVersion=1.0.0-Nightly20161212 if "%1" == "" ( - set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b379c30fcb506b1bd643f6085b4bf318b8164b16/arm-sql/compositeSql.json" + set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0d62469f9de90a07686ae78b609918e4de9de04f/arm-sql/compositeSql.json" ) else ( set specFile="%1" ) @@ -14,4 +13,5 @@ set repoRoot=%~dp0..\..\..\.. set generateFolder=%~dp0Generated if exist %generateFolder% rd /S /Q %generateFolder% -call "%repoRoot%\tools\autorest.composite.gen.cmd" %specFile% Microsoft.Azure.Management.Sql %autoRestVersion% %generateFolder% "-FT 1" + +autorest --latest -Modeler CompositeSwagger -CodeGenerator Azure.CSharp -Namespace Microsoft.Azure.Management.Sql -Input %specFile% -outputDirectory %generateFolder% -Header MICROSOFT_MIT %~5 \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/project.json b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/project.json index ea76ed113cfe..fbe225a48e84 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/project.json +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/project.json @@ -1,5 +1,5 @@ { - "version": "1.2.0-preview", + "version": "1.3.0-preview", "authors": [ "Microsoft" ], "packOptions": { diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/BlobAuditingTest.cs b/src/ResourceManagement/SqlManagement/Sql.Tests/BlobAuditingTest.cs new file mode 100644 index 000000000000..f6ed53577be8 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/BlobAuditingTest.cs @@ -0,0 +1,183 @@ +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Azure.Test.HttpRecorder; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Xunit; + +namespace Sql.Tests +{ + /// + /// Contains tests for the lifecycle of a server blob auditing policy + /// + public class BlobAuditingTest + { + [Fact] + public void TestBlobAuditingApis() + { + string testPrefix = "server-blob-auditing-test-"; + string testName = this.GetType().FullName; + + SqlManagementTestUtilities.RunTestInNewV12Server(testName, "TestBlobAuditing", testPrefix, + (resClient, sqlClient, resourceGroup, server) => + { + // create some databases in server + Database[] databases = SqlManagementTestUtilities.CreateDatabasesAsync( + sqlClient, resourceGroup.Name, server, testPrefix, 2).Result; + + IList auditActionsAndGroups = new List { "SCHEMA_OBJECT_ACCESS_GROUP", "UPDATE on database::testdb by public" }; + +#if false // Commented out due to issues with async operation response + + // ******* Server blob auditing ******* + ServerBlobAuditingPolicy defaultServerPolicyResponse = sqlClient.ServerBlobAuditingPolicies.Get(resourceGroup.Name, server.Name); + + // Verify that the initial Get request contains the default policy. + VerifyServerAuditingPolicyInformation(GetDefaultServerBlobAuditingProperties(), defaultServerPolicyResponse); + + // Modify the policy properties, send and receive and see it its still ok + IList auditActionsAndGroups = new List { "SCHEMA_OBJECT_ACCESS_GROUP", "UPDATE on database::testdb by public" }; + ServerBlobAuditingPolicy updatedServerPolicy = new ServerBlobAuditingPolicy + { + State = BlobAuditingPolicyState.Disabled, + RetentionDays = 8, + StorageAccountAccessKey = "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==", + StorageEndpoint = "https://MyAccount.blob.core.windows.net/", + AuditActionsAndGroups = auditActionsAndGroups, + StorageAccountSubscriptionId = "00000000-1234-0000-5678-000000000000", + IsStorageSecondaryKeyInUse = false + }; + + //Set blob auditing policy for server + sqlClient.ServerBlobAuditingPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, updatedServerPolicy); + + //Get blob auditing server policy + var getUpdatedServerPolicyResponse = sqlClient.ServerBlobAuditingPolicies.Get(resourceGroup.Name, server.Name); + + // Verify that the Get request contains the updated policy. + VerifyServerAuditingPolicyInformation(updatedServerPolicy, getUpdatedServerPolicyResponse); +#endif + + // ******* Database blob auditing ******* + + string dbName = databases[0].Name; + DatabaseBlobAuditingPolicy defaultDatabasePolicyResponse = sqlClient.DatabaseBlobAuditingPolicies.Get(resourceGroup.Name, server.Name, dbName); + + // Verify that the initial Get request contains the default policy. + VerifyDatabaseAuditingPolicyInformation(GetDefaultDatabaseBlobAuditingProperties(), defaultDatabasePolicyResponse); + + // Modify the policy properties, send and receive and see it its still ok + DatabaseBlobAuditingPolicy updatedDatabasePolicy = new DatabaseBlobAuditingPolicy + { + State = BlobAuditingPolicyState.Disabled, + RetentionDays = 5, + StorageAccountAccessKey = "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==", + StorageEndpoint = "https://MyAccount.blob.core.windows.net/", + AuditActionsAndGroups = auditActionsAndGroups, + StorageAccountSubscriptionId = "00000000-1234-0000-5678-000000000000", + IsStorageSecondaryKeyInUse = false + }; + sqlClient.DatabaseBlobAuditingPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, updatedDatabasePolicy); + + var getUpdatedDatabasePolicyResponse = sqlClient.DatabaseBlobAuditingPolicies.Get(resourceGroup.Name, server.Name, dbName); + // Verify that the Get request contains the updated policy. + VerifyDatabaseAuditingPolicyInformation(updatedDatabasePolicy, getUpdatedDatabasePolicyResponse); + }); + } + +#if false // Commented out due to issues with async operation response + + /// + /// Verify that the received properties match their expected values + /// + /// The expected value of the properties object + /// The properties object that needs to be checked + private void VerifyServerAuditingPolicyInformation(ServerBlobAuditingPolicy expected, ServerBlobAuditingPolicy actual) + { + Assert.Equal(expected.State, actual.State); + Assert.Equal(expected.RetentionDays, actual.RetentionDays); + Assert.Equal(expected.StorageEndpoint, actual.StorageEndpoint); + Assert.Equal(string.Empty, actual.StorageAccountAccessKey); + if (expected.AuditActionsAndGroups == null) + { + Assert.Equal(null, actual.AuditActionsAndGroups); + } + else + { + Assert.Equal(expected.AuditActionsAndGroups.Count, actual.AuditActionsAndGroups.Count); + actual.AuditActionsAndGroups.ForEach(s => Assert.True(expected.AuditActionsAndGroups.Any(es => es.Equals(s)))); + } + Assert.Equal(expected.StorageAccountSubscriptionId, actual.StorageAccountSubscriptionId); + Assert.Equal(expected.IsStorageSecondaryKeyInUse, actual.IsStorageSecondaryKeyInUse); + } + + /// + /// Returns a ServerBlobAuditingPolicy object that holds the default settings for a server blob auditing policy + /// + /// A ServerBlobAuditingPolicy object with the default server audit policy settings + private ServerBlobAuditingPolicy GetDefaultServerBlobAuditingProperties() + { + ServerBlobAuditingPolicy properties = new ServerBlobAuditingPolicy + { + State = BlobAuditingPolicyState.Disabled, + RetentionDays = 0, + StorageAccountAccessKey = string.Empty, + StorageEndpoint = string.Empty, + AuditActionsAndGroups = new List(), + StorageAccountSubscriptionId = "00000000-0000-0000-0000-000000000000", + IsStorageSecondaryKeyInUse = false, + }; + + return properties; + } + +#endif + + /// + /// Verify that the received properties match their expected values + /// + /// The expected value of the properties object + /// The properties object that needs to be checked + private void VerifyDatabaseAuditingPolicyInformation(DatabaseBlobAuditingPolicy expected, DatabaseBlobAuditingPolicy actual) + { + Assert.Equal(expected.State, actual.State); + Assert.Equal(expected.RetentionDays, actual.RetentionDays); + Assert.Equal(expected.StorageEndpoint, actual.StorageEndpoint); + Assert.Equal(string.Empty, actual.StorageAccountAccessKey); + if (expected.AuditActionsAndGroups == null) + { + Assert.Equal(null, actual.AuditActionsAndGroups); + } + else + { + Assert.Equal(expected.AuditActionsAndGroups.Count, actual.AuditActionsAndGroups.Count); + actual.AuditActionsAndGroups.ForEach(s => Assert.True(expected.AuditActionsAndGroups.Any(es => es.Equals(s)))); + } + Assert.Equal(expected.StorageAccountSubscriptionId, actual.StorageAccountSubscriptionId); + Assert.Equal(expected.IsStorageSecondaryKeyInUse, actual.IsStorageSecondaryKeyInUse); + } + + /// + /// Returns a BlobAuditingProperties object that holds the default settings for a database blob auditing policy + /// + /// A BlobAuditingProperties object with the default database audit policy settings + private DatabaseBlobAuditingPolicy GetDefaultDatabaseBlobAuditingProperties() + { + DatabaseBlobAuditingPolicy properties = new DatabaseBlobAuditingPolicy + { + State = BlobAuditingPolicyState.Disabled, + RetentionDays = 0, + StorageAccountAccessKey = string.Empty, + StorageEndpoint = string.Empty, + AuditActionsAndGroups = new List(), + StorageAccountSubscriptionId = "00000000-0000-0000-0000-000000000000", + IsStorageSecondaryKeyInUse = false, + }; + + return properties; + } + } +} diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/DatabaseCrudScenarioTests.cs b/src/ResourceManagement/SqlManagement/Sql.Tests/DatabaseCrudScenarioTests.cs index ff570d344ca7..8bbd661d44a9 100644 --- a/src/ResourceManagement/SqlManagement/Sql.Tests/DatabaseCrudScenarioTests.cs +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/DatabaseCrudScenarioTests.cs @@ -193,24 +193,12 @@ public void TestGetAndListDatabase() string suiteName = this.GetType().FullName; SqlManagementTestUtilities.RunTestInNewV12Server(suiteName, "TestGetAndListDatabase", testPrefix, (resClient, sqlClient, resourceGroup, server) => { - // Begin creating some small databases to run the get/List tests on. - // - List> createDbTasks = new List>(); - for (int i = 0; i < 4; i++) - { - string name = SqlManagementTestUtilities.GenerateName(testPrefix); - createDbTasks.Add(sqlClient.Databases.CreateOrUpdateAsync(resourceGroup.Name, server.Name, name, - new Database() - { - Location = server.Location - })); - } + // Create some small databases to run the get/List tests on. + Database[] databases = SqlManagementTestUtilities.CreateDatabasesAsync( + sqlClient, resourceGroup.Name, server, testPrefix, 4).Result; - // Wait for all databases to be created. - IDictionary inputs = - Task.WhenAll(createDbTasks.ToArray()) - .Result - .ToDictionary( + // Organize into a dictionary for better lookup later + IDictionary inputs = databases.ToDictionary( keySelector: d => d.Name, elementSelector: d => d); diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.BlobAuditingTest/TestBlobAuditing.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.BlobAuditingTest/TestBlobAuditing.json new file mode 100644 index 000000000000..396870db9ace --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.BlobAuditingTest/TestBlobAuditing.json @@ -0,0 +1,1090 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-blob-auditing-test-7677?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Nz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"server-blob-auditing-test-7677\": \"2017-03-11 02:04:32Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "113" + ], + "x-ms-client-request-id": [ + "c2b4478b-11ad-4b1d-96f4-90fcb61f6903" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677\",\r\n \"name\": \"server-blob-auditing-test-7677\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"server-blob-auditing-test-7677\": \"2017-03-11 02:04:32Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "281" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:04:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b809b1f0-a365-4761-8547-64f86de8d648" + ], + "x-ms-correlation-request-id": [ + "b809b1f0-a365-4761-8547-64f86de8d648" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020435Z:b809b1f0-a365-4761-8547-64f86de8d648" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Nz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "61f1c380-bd38-4c66-a06e-56bd5771f48d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057\",\r\n \"name\": \"server-blob-auditing-test-1057\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"server-blob-auditing-test-1057.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": [ + "580" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:05:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "389e5284-44eb-4d4b-a55d-2641bd68735c" + ], + "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": [ + "5316e44d-def0-4972-bba7-664d3fb90f61" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020511Z:5316e44d-def0-4972-bba7-664d3fb90f61" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC03ODc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "d6a38c5e-0f7e-485b-85e7-50a88d20e33f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T18:05:13.154-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:05:12 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/operationResults/80de9388-76e0-416e-b4ad-395a2e1557e2?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "80de9388-76e0-416e-b4ad-395a2e1557e2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/azureAsyncOperation/80de9388-76e0-416e-b4ad-395a2e1557e2?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "43590fea-6ffb-4829-bf48-decd6131ff3a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020513Z:43590fea-6ffb-4829-bf48-decd6131ff3a" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC04Nzg0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "7d5fefd3-a802-45c9-ab6a-7f44a70d34a2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T18:05:14.701-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:05:14 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784/operationResults/4024ff64-bc01-4a91-9c3c-4fb313d69774?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "4024ff64-bc01-4a91-9c3c-4fb313d69774" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784/azureAsyncOperation/4024ff64-bc01-4a91-9c3c-4fb313d69774?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "16b03468-3bcc-41ed-a25e-41be724c36f7" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020514Z:16b03468-3bcc-41ed-a25e-41be724c36f7" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/azureAsyncOperation/80de9388-76e0-416e-b4ad-395a2e1557e2?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC03ODc2L2F6dXJlQXN5bmNPcGVyYXRpb24vODBkZTkzODgtNzZlMC00MTZlLWI0YWQtMzk1YTJlMTU1N2UyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"80de9388-76e0-416e-b4ad-395a2e1557e2\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:05:44 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0226ac9e-3428-4a77-8066-86db78f77446" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/azureAsyncOperation/80de9388-76e0-416e-b4ad-395a2e1557e2?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "66b2fb3d-e69b-4a48-a1a0-6dc2e3127dd5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020544Z:66b2fb3d-e69b-4a48-a1a0-6dc2e3127dd5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/azureAsyncOperation/80de9388-76e0-416e-b4ad-395a2e1557e2?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC03ODc2L2F6dXJlQXN5bmNPcGVyYXRpb24vODBkZTkzODgtNzZlMC00MTZlLWI0YWQtMzk1YTJlMTU1N2UyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"80de9388-76e0-416e-b4ad-395a2e1557e2\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:14 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c481c26d-33f7-468c-acf8-dd4a893a1971" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/azureAsyncOperation/80de9388-76e0-416e-b4ad-395a2e1557e2?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "669ca02e-b271-40b8-9e47-db97462ed05e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020615Z:669ca02e-b271-40b8-9e47-db97462ed05e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784/azureAsyncOperation/4024ff64-bc01-4a91-9c3c-4fb313d69774?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC04Nzg0L2F6dXJlQXN5bmNPcGVyYXRpb24vNDAyNGZmNjQtYmMwMS00YTkxLTljM2MtNGZiMzEzZDY5Nzc0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"4024ff64-bc01-4a91-9c3c-4fb313d69774\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:05:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3cdbdcce-89b9-4c02-918b-51e21769a5dd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784/azureAsyncOperation/4024ff64-bc01-4a91-9c3c-4fb313d69774?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "98cc66e1-a49d-4262-b957-68d2a222522e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020545Z:98cc66e1-a49d-4262-b957-68d2a222522e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784/azureAsyncOperation/4024ff64-bc01-4a91-9c3c-4fb313d69774?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC04Nzg0L2F6dXJlQXN5bmNPcGVyYXRpb24vNDAyNGZmNjQtYmMwMS00YTkxLTljM2MtNGZiMzEzZDY5Nzc0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"4024ff64-bc01-4a91-9c3c-4fb313d69774\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d85adfba-74ea-47a4-b3ab-a3b01493ddf2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784/azureAsyncOperation/4024ff64-bc01-4a91-9c3c-4fb313d69774?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "b61477ae-2018-42a1-81f1-a8e558f9c182" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020616Z:b61477ae-2018-42a1-81f1-a8e558f9c182" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC03ODc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876\",\r\n \"name\": \"server-blob-auditing-test-7876\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"177e246a-28d6-4143-94f4-0b9840b66bfa\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T02:05:13.453Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T02:16:01.35Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f157c8f0-a8ca-4785-a427-26a793b0f392" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "2c2aab32-a1f9-4145-8c56-ba8e5a90d05d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020616Z:2c2aab32-a1f9-4145-8c56-ba8e5a90d05d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC04Nzg0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-8784\",\r\n \"name\": \"server-blob-auditing-test-8784\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"d59f3586-6f81-41ac-8efa-7993a3fb8a77\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T02:05:14.967Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T02:15:47.687Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:16 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0288670f-a620-4992-b635-bd573578f5d2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "64cb25ff-1235-43e6-a701-ebb4bba9ef4f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020617Z:64cb25ff-1235-43e6-a701-ebb4bba9ef4f" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC03ODc2L2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e8b749b-b249-414c-b2fe-f6ae86ba6560" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0,\r\n \"auditActionsAndGroups\": [],\r\n \"storageAccountSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "204f9abb-624c-486d-9827-834968aeee5b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "cfb98c04-7e70-4e4a-a517-50252a0f3996" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020618Z:cfb98c04-7e70-4e4a-a517-50252a0f3996" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC03ODc2L2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8d6bb1e4-53a8-4219-9684-2345fc8d2f88" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2e80c5f4-24ef-4071-95ab-800604a2e974" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "0e5df406-4ac9-4409-83f5-b108a19d270e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020621Z:0e5df406-4ac9-4409-83f5-b108a19d270e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTA1Ny9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC03ODc2L2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "507" + ], + "x-ms-client-request-id": [ + "89a6a948-5e13-4dc0-87dc-047ad710634b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-7677/providers/Microsoft.Sql/servers/server-blob-auditing-test-1057/databases/server-blob-auditing-test-7876/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d3713542-7be9-4e1c-9101-804f64d1cfa2" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c7d95d85-d84f-431e-ad80-c51297912088" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020620Z:c7d95d85-d84f-431e-ad80-c51297912088" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-blob-auditing-test-7677?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNzY3Nz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b183b23a-3f74-4f8b-83b3-4e123fdab0a6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "258b4b5d-956f-4d40-9b29-681de104e984" + ], + "x-ms-correlation-request-id": [ + "258b4b5d-956f-4d40-9b29-681de104e984" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020624Z:258b4b5d-956f-4d40-9b29-681de104e984" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVOelkzTnkxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:06:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "0f6e45ec-1698-4aff-a173-137f731916c3" + ], + "x-ms-correlation-request-id": [ + "0f6e45ec-1698-4aff-a173-137f731916c3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020655Z:0f6e45ec-1698-4aff-a173-137f731916c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVOelkzTnkxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:07:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "3c16ac4f-a61a-4c6f-ba27-fbf79f40fc9d" + ], + "x-ms-correlation-request-id": [ + "3c16ac4f-a61a-4c6f-ba27-fbf79f40fc9d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020725Z:3c16ac4f-a61a-4c6f-ba27-fbf79f40fc9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVOelkzTnkxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:07:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "7c3cbf05-77c0-40cf-ae02-f2b455dd1a05" + ], + "x-ms-correlation-request-id": [ + "7c3cbf05-77c0-40cf-ae02-f2b455dd1a05" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020756Z:7c3cbf05-77c0-40cf-ae02-f2b455dd1a05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJENzY3Ny1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVOelkzTnkxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:08:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "d2d37010-d1ad-4b00-9882-893f22c889d0" + ], + "x-ms-correlation-request-id": [ + "d2d37010-d1ad-4b00-9882-893f22c889d0" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020826Z:d2d37010-d1ad-4b00-9882-893f22c889d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "server-blob-auditing-test-7677" + ], + "RunTestInNewV12Server": [ + "server-blob-auditing-test-1057" + ], + "CreateDatabasesAsync": [ + "server-blob-auditing-test-7876", + "server-blob-auditing-test-8784" + ] + }, + "Variables": { + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.BlobAuditingTest/TestServerBlobAuditing.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.BlobAuditingTest/TestServerBlobAuditing.json new file mode 100644 index 000000000000..4bad829d095f --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.BlobAuditingTest/TestServerBlobAuditing.json @@ -0,0 +1,1090 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-blob-auditing-test-3094?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5ND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"server-blob-auditing-test-3094\": \"2017-03-11 01:22:11Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "113" + ], + "x-ms-client-request-id": [ + "0a8b19e8-78f7-412c-95da-4b8736a2a51a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094\",\r\n \"name\": \"server-blob-auditing-test-3094\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"server-blob-auditing-test-3094\": \"2017-03-11 01:22:11Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "281" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:22:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "d4010685-e767-424f-bdf6-e52d9e0bbf8b" + ], + "x-ms-correlation-request-id": [ + "d4010685-e767-424f-bdf6-e52d9e0bbf8b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012213Z:d4010685-e767-424f-bdf6-e52d9e0bbf8b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNj9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "aee5d242-0139-4c9b-905d-f09e4660ab1f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716\",\r\n \"name\": \"server-blob-auditing-test-6716\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"server-blob-auditing-test-6716.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": [ + "580" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:22:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d4415ba6-7d1b-4710-afd7-8399e2c99131" + ], + "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": [ + "7cb3f405-6def-480f-8a4e-6ac2130f1c74" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012248Z:7cb3f405-6def-480f-8a4e-6ac2130f1c74" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC02OTIzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "06c33f53-7fb4-4f93-bb91-17e401da4dce" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T17:22:50.079-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:22:49 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/operationResults/3670d882-a7b3-4af4-82be-383a5614e23e?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "3670d882-a7b3-4af4-82be-383a5614e23e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/azureAsyncOperation/3670d882-a7b3-4af4-82be-383a5614e23e?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "1682d2ac-e4ef-41a4-be04-aa4046fbc764" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012250Z:1682d2ac-e4ef-41a4-be04-aa4046fbc764" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC00NDIyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "09abe725-61d2-4e9d-8e48-8c7e503d5828" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T17:22:49.647-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:22:50 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422/operationResults/b335a86b-bec4-45ae-86d2-2912d7c3191c?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b335a86b-bec4-45ae-86d2-2912d7c3191c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422/azureAsyncOperation/b335a86b-bec4-45ae-86d2-2912d7c3191c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "7c143411-51d7-4912-bd7b-7d6de2f4f172" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012251Z:7c143411-51d7-4912-bd7b-7d6de2f4f172" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/azureAsyncOperation/3670d882-a7b3-4af4-82be-383a5614e23e?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC02OTIzL2F6dXJlQXN5bmNPcGVyYXRpb24vMzY3MGQ4ODItYTdiMy00YWY0LTgyYmUtMzgzYTU2MTRlMjNlP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"3670d882-a7b3-4af4-82be-383a5614e23e\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:20 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d4e1c6cc-7938-491a-8fdb-daba91514cda" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/azureAsyncOperation/3670d882-a7b3-4af4-82be-383a5614e23e?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "1e7b4e98-f210-4855-a52d-2e4edb7274c3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012321Z:1e7b4e98-f210-4855-a52d-2e4edb7274c3" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/azureAsyncOperation/3670d882-a7b3-4af4-82be-383a5614e23e?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC02OTIzL2F6dXJlQXN5bmNPcGVyYXRpb24vMzY3MGQ4ODItYTdiMy00YWY0LTgyYmUtMzgzYTU2MTRlMjNlP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"3670d882-a7b3-4af4-82be-383a5614e23e\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:51 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d6ac73b4-6f45-462c-9ebc-825dbd76eb67" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/azureAsyncOperation/3670d882-a7b3-4af4-82be-383a5614e23e?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "157c4c27-2c25-464b-93fb-56ec8b82a2dd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012351Z:157c4c27-2c25-464b-93fb-56ec8b82a2dd" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422/azureAsyncOperation/b335a86b-bec4-45ae-86d2-2912d7c3191c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC00NDIyL2F6dXJlQXN5bmNPcGVyYXRpb24vYjMzNWE4NmItYmVjNC00NWFlLTg2ZDItMjkxMmQ3YzMxOTFjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"b335a86b-bec4-45ae-86d2-2912d7c3191c\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:21 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b7426540-f5ba-42c4-ad13-caf7d8c5fbcc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422/azureAsyncOperation/b335a86b-bec4-45ae-86d2-2912d7c3191c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "a8c16e62-9486-45fb-8e82-9d2970036ce0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012321Z:a8c16e62-9486-45fb-8e82-9d2970036ce0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422/azureAsyncOperation/b335a86b-bec4-45ae-86d2-2912d7c3191c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC00NDIyL2F6dXJlQXN5bmNPcGVyYXRpb24vYjMzNWE4NmItYmVjNC00NWFlLTg2ZDItMjkxMmQ3YzMxOTFjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"b335a86b-bec4-45ae-86d2-2912d7c3191c\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8f94f1f4-2c1d-4727-9448-6c295ecea5ca" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422/azureAsyncOperation/b335a86b-bec4-45ae-86d2-2912d7c3191c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "ec22fd2a-a86b-4a28-a161-5cc52ccce429" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012352Z:ec22fd2a-a86b-4a28-a161-5cc52ccce429" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC02OTIzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923\",\r\n \"name\": \"server-blob-auditing-test-6923\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"4d62eb0f-93b5-4059-9db7-87587c58e625\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T01:22:50.33Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T01:33:22.853Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:51 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b3339e2a-2ebe-4c1a-b1f6-a930b968e34d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "94feb91e-d442-4284-a866-1dc3784f71da" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012352Z:94feb91e-d442-4284-a866-1dc3784f71da" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC00NDIyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-4422\",\r\n \"name\": \"server-blob-auditing-test-4422\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"e2b3efc4-79c3-4f06-a400-078ca7d1b253\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T01:22:49.897Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T01:33:33.437Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "652b5474-5efb-4419-a25d-e1bfc3a5e696" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "aae570ab-9cf0-4c6f-8acb-597b7761e29e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012353Z:aae570ab-9cf0-4c6f-8acb-597b7761e29e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC02OTIzL2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a13e62e7-1293-4250-837e-af04988f175a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0,\r\n \"auditActionsAndGroups\": [],\r\n \"storageAccountSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e0ea1edf-bbbe-4a9e-b7b7-0b0b46662620" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "c9f3218b-3245-46ec-92d6-49546a72bd51" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012354Z:c9f3218b-3245-46ec-92d6-49546a72bd51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC02OTIzL2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7d31c6a7-cfa1-4e59-a428-ab683f672354" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4f97eb4a-69ea-49e1-a858-b7aa8cdbc3d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "a400874d-82e6-4d2f-abe9-8561d28e1d3b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012356Z:a400874d-82e6-4d2f-abe9-8561d28e1d3b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5NC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtNjcxNi9kYXRhYmFzZXMvc2VydmVyLWJsb2ItYXVkaXRpbmctdGVzdC02OTIzL2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "507" + ], + "x-ms-client-request-id": [ + "9b1bacfc-313f-4eb9-8c2a-9c8378bc9b90" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-blob-auditing-test-3094/providers/Microsoft.Sql/servers/server-blob-auditing-test-6716/databases/server-blob-auditing-test-6923/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "22fccd80-9b96-422f-bf4c-973a0dbe7011" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "41180861-22b4-472d-bd0d-13f9ba8ad3f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012355Z:41180861-22b4-472d-bd0d-13f9ba8ad3f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-blob-auditing-test-3094?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMzA5ND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "34c47869-d5bb-4a2b-927b-32b5e23b8c8d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:23:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "cbc0cb78-1362-4556-901e-331bbd7ea095" + ], + "x-ms-correlation-request-id": [ + "cbc0cb78-1362-4556-901e-331bbd7ea095" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012358Z:cbc0cb78-1362-4556-901e-331bbd7ea095" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNekE1TkMxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:24:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "692f032b-bffb-48da-8e24-4b6f87b83a4e" + ], + "x-ms-correlation-request-id": [ + "692f032b-bffb-48da-8e24-4b6f87b83a4e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012428Z:692f032b-bffb-48da-8e24-4b6f87b83a4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNekE1TkMxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:24:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "b498416b-401d-4c6e-aa9d-89be5f564ce4" + ], + "x-ms-correlation-request-id": [ + "b498416b-401d-4c6e-aa9d-89be5f564ce4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012459Z:b498416b-401d-4c6e-aa9d-89be5f564ce4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNekE1TkMxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:25:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "4c7f623c-1285-4fa0-8323-758c0d624067" + ], + "x-ms-correlation-request-id": [ + "4c7f623c-1285-4fa0-8323-758c0d624067" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012529Z:4c7f623c-1285-4fa0-8323-758c0d624067" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMzA5NC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNekE1TkMxS1FWQkJUa1ZCVTFRaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW1waGNHRnVaV0Z6ZENKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:25:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "3cc098dc-0081-4282-bbf7-107e052e857c" + ], + "x-ms-correlation-request-id": [ + "3cc098dc-0081-4282-bbf7-107e052e857c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T012559Z:3cc098dc-0081-4282-bbf7-107e052e857c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "server-blob-auditing-test-3094" + ], + "RunTestInNewV12Server": [ + "server-blob-auditing-test-6716" + ], + "CreateDatabasesAsync": [ + "server-blob-auditing-test-6923", + "server-blob-auditing-test-4422" + ] + }, + "Variables": { + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseBlobAuditingTest/TestDatabaseBlobAuditing.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseBlobAuditingTest/TestDatabaseBlobAuditing.json new file mode 100644 index 000000000000..797d0f728909 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseBlobAuditingTest/TestDatabaseBlobAuditing.json @@ -0,0 +1,842 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/database-blob-auditing-test-5245?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"database-blob-auditing-test-5245\": \"2017-03-11 00:13:51Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "115" + ], + "x-ms-client-request-id": [ + "155fe0f4-728e-4c52-8884-ba7e50142c95" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245\",\r\n \"name\": \"database-blob-auditing-test-5245\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"database-blob-auditing-test-5245\": \"2017-03-11 00:13:51Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "287" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:13:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "143a9405-7d6f-49cd-969c-b752855060a8" + ], + "x-ms-correlation-request-id": [ + "143a9405-7d6f-49cd-969c-b752855060a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001353Z:143a9405-7d6f-49cd-969c-b752855060a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5Mjk/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "1fcfeb5e-dc1e-4892-9ac7-84c2f03ef053" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929\",\r\n \"name\": \"database-blob-auditing-test-7929\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"database-blob-auditing-test-7929.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": [ + "588" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:14:44 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d9b5a234-a103-4746-a01a-8bfbf70075fb" + ], + "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": [ + "2c3e9da2-d000-4fa9-b7c0-bd88040d6d97" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001444Z:2c3e9da2-d000-4fa9-b7c0-bd88040d6d97" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5MjkvZGF0YWJhc2VzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC04NDcxP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "08d67a98-f917-4f9f-bc32-28ef16cabea0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T16:14:46.064-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:14:45 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/operationResults/4305fe9c-b14f-4168-a385-5b003ab2e3fb?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "4305fe9c-b14f-4168-a385-5b003ab2e3fb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/azureAsyncOperation/4305fe9c-b14f-4168-a385-5b003ab2e3fb?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "71bde0c3-7faf-4568-b9ba-aade732c3fa5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001446Z:71bde0c3-7faf-4568-b9ba-aade732c3fa5" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/azureAsyncOperation/4305fe9c-b14f-4168-a385-5b003ab2e3fb?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5MjkvZGF0YWJhc2VzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC04NDcxL2F6dXJlQXN5bmNPcGVyYXRpb24vNDMwNWZlOWMtYjE0Zi00MTY4LWEzODUtNWIwMDNhYjJlM2ZiP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"4305fe9c-b14f-4168-a385-5b003ab2e3fb\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:15:16 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "96142162-c015-4a7f-98f6-8d89c8334dd4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/azureAsyncOperation/4305fe9c-b14f-4168-a385-5b003ab2e3fb?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "bebb4773-d8f6-4623-b5d0-38246ae74aff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001516Z:bebb4773-d8f6-4623-b5d0-38246ae74aff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/azureAsyncOperation/4305fe9c-b14f-4168-a385-5b003ab2e3fb?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5MjkvZGF0YWJhc2VzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC04NDcxL2F6dXJlQXN5bmNPcGVyYXRpb24vNDMwNWZlOWMtYjE0Zi00MTY4LWEzODUtNWIwMDNhYjJlM2ZiP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"4305fe9c-b14f-4168-a385-5b003ab2e3fb\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:15:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "865f35e9-b070-4038-a09f-555dddbb6b68" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/azureAsyncOperation/4305fe9c-b14f-4168-a385-5b003ab2e3fb?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "0288c999-bc7b-4985-b01a-9c927589ad88" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001547Z:0288c999-bc7b-4985-b01a-9c927589ad88" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5MjkvZGF0YWJhc2VzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC04NDcxP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471\",\r\n \"name\": \"database-blob-auditing-test-8471\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"cc9f7bb3-4148-48ee-93bc-256ed52ed406\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T00:14:46.407Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T00:25:37.87Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:15:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "26fcca07-8f28-4817-85fb-1b36680bd73d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "dd451500-7266-4c71-b0fa-db707546919a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001548Z:dd451500-7266-4c71-b0fa-db707546919a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5MjkvZGF0YWJhc2VzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC04NDcxL2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "42ee8cb5-7cb6-4aa8-9f9e-d00a56e8710d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0,\r\n \"auditActionsAndGroups\": [],\r\n \"storageAccountSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:15:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8cd1bf93-fd8f-41e2-b5d9-998b38ae7789" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "d7a7771f-9805-4675-a901-a7ea348d360f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001549Z:d7a7771f-9805-4675-a901-a7ea348d360f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5MjkvZGF0YWJhc2VzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC04NDcxL2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70eba0c5-4bd6-495e-9ab1-0f3652c61faa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:15:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cc76d573-a302-4992-b506-b1d675c3295b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "5234f838-288c-42df-a42c-5ca3f41102e8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001551Z:5234f838-288c-42df-a42c-5ca3f41102e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2UtYmxvYi1hdWRpdGluZy10ZXN0LTc5MjkvZGF0YWJhc2VzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC04NDcxL2F1ZGl0aW5nU2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "507" + ], + "x-ms-client-request-id": [ + "53a72b50-f7b3-41be-a969-6054965d8258" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/database-blob-auditing-test-5245/providers/Microsoft.Sql/servers/database-blob-auditing-test-7929/databases/database-blob-auditing-test-8471/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:15:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "845ea7e6-19f5-4637-b714-f863e6d6da4a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "b7f397e8-bf01-4627-a215-2e5aed6971fb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001550Z:b7f397e8-bf01-4627-a215-2e5aed6971fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/database-blob-auditing-test-5245?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL2RhdGFiYXNlLWJsb2ItYXVkaXRpbmctdGVzdC01MjQ1P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1c16add4-d843-40ca-9127-4307eedee8c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:15:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "f3f60145-933e-4ec8-8d0e-8d1c2e8a52ff" + ], + "x-ms-correlation-request-id": [ + "f3f60145-933e-4ec8-8d0e-8d1c2e8a52ff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001553Z:f3f60145-933e-4ec8-8d0e-8d1c2e8a52ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkVKTVQwSTZNa1JCVlVSSlZFbE9Sem95UkZSRlUxUTZNa1ExTWpRMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:16:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "ad745f6c-e156-4c4a-b461-2f975f48b44e" + ], + "x-ms-correlation-request-id": [ + "ad745f6c-e156-4c4a-b461-2f975f48b44e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001623Z:ad745f6c-e156-4c4a-b461-2f975f48b44e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkVKTVQwSTZNa1JCVlVSSlZFbE9Sem95UkZSRlUxUTZNa1ExTWpRMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:16:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "035eaea5-959b-4748-92f8-5bed5a068876" + ], + "x-ms-correlation-request-id": [ + "035eaea5-959b-4748-92f8-5bed5a068876" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001653Z:035eaea5-959b-4748-92f8-5bed5a068876" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkVKTVQwSTZNa1JCVlVSSlZFbE9Sem95UkZSRlUxUTZNa1ExTWpRMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:17:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "2d556649-44cd-422c-bdd5-daa38ed989e0" + ], + "x-ms-correlation-request-id": [ + "2d556649-44cd-422c-bdd5-daa38ed989e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001723Z:2d556649-44cd-422c-bdd5-daa38ed989e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyREJMT0I6MkRBVURJVElORzoyRFRFU1Q6MkQ1MjQ1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkVKTVQwSTZNa1JCVlVSSlZFbE9Sem95UkZSRlUxUTZNa1ExTWpRMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 00:17:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "134affa4-a237-4771-804d-c35d07f6fea1" + ], + "x-ms-correlation-request-id": [ + "134affa4-a237-4771-804d-c35d07f6fea1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170311T001754Z:134affa4-a237-4771-804d-c35d07f6fea1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "database-blob-auditing-test-5245" + ], + "RunTestInNewV12Server": [ + "database-blob-auditing-test-7929" + ], + "TestDatabaseBlobAuditingApis": [ + "database-blob-auditing-test-8471" + ] + }, + "Variables": { + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseCrudScenarioTests/TestGetAndListDatabase.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseCrudScenarioTests/TestGetAndListDatabase.json index f685b85a2202..672ca397ceb2 100644 --- a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseCrudScenarioTests/TestGetAndListDatabase.json +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseCrudScenarioTests/TestGetAndListDatabase.json @@ -1750,7 +1750,7 @@ "RunTestInNewV12Server": [ "sqlcrudtest-318" ], - "TestGetAndListDatabase": [ + "CreateDatabasesAsync": [ "sqlcrudtest-1856", "sqlcrudtest-2783", "sqlcrudtest-7851", diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseSecurityAlertTest/TestDatabaseSecurityAlert.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseSecurityAlertTest/TestDatabaseSecurityAlert.json new file mode 100644 index 000000000000..372a976acd86 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseSecurityAlertTest/TestDatabaseSecurityAlert.json @@ -0,0 +1,845 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/database-security-alert-test-255?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"database-security-alert-test-255\": \"2017-03-09 07:29:34Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "115" + ], + "x-ms-client-request-id": [ + "459c46b9-48eb-48ad-b7a4-9352864459a4" + ], + "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/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255\",\r\n \"name\": \"database-security-alert-test-255\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"database-security-alert-test-255\": \"2017-03-09 07:29:34Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "287" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:29:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "7c44cb98-dcc0-4617-9255-cb4b7df236fa" + ], + "x-ms-correlation-request-id": [ + "7c44cb98-dcc0-4617-9255-cb4b7df236fa" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T072939Z:7c44cb98-dcc0-4617-9255-cb4b7df236fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "e9444aed-f427-4a39-85c3-f0a33825a45b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672\",\r\n \"name\": \"database-security-alert-test-8672\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"database-security-alert-test-8672.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": [ + "591" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:30:17 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b14b778c-c02f-4b42-902b-ca41dcf54c8d" + ], + "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": [ + "c8c59de0-33b2-4418-a694-1a14ac92c81c" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073018Z:c8c59de0-33b2-4418-a694-1a14ac92c81c" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyL2RhdGFiYXNlcy9kYXRhYmFzZS1zZWN1cml0eS1hbGVydC10ZXN0LTczMjQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "a99bcdf8-ec2c-4783-a02b-b0fe991f8b38" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:30:22.372+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:30:23 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/operationResults/a6e02c75-b3ab-4f90-8b83-3078b9f069a1?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a6e02c75-b3ab-4f90-8b83-3078b9f069a1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/azureAsyncOperation/a6e02c75-b3ab-4f90-8b83-3078b9f069a1?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "e396d3e1-583d-4299-91c7-804fba70128b" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073023Z:e396d3e1-583d-4299-91c7-804fba70128b" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/azureAsyncOperation/a6e02c75-b3ab-4f90-8b83-3078b9f069a1?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyL2RhdGFiYXNlcy9kYXRhYmFzZS1zZWN1cml0eS1hbGVydC10ZXN0LTczMjQvYXp1cmVBc3luY09wZXJhdGlvbi9hNmUwMmM3NS1iM2FiLTRmOTAtOGI4My0zMDc4YjlmMDY5YTE/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a6e02c75-b3ab-4f90-8b83-3078b9f069a1\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:30:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "99e5ab93-611b-46e8-9246-c9a221ff2717" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/azureAsyncOperation/a6e02c75-b3ab-4f90-8b83-3078b9f069a1?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "a7375600-d842-46a8-9a1c-731c58ca10ae" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073055Z:a7375600-d842-46a8-9a1c-731c58ca10ae" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/azureAsyncOperation/a6e02c75-b3ab-4f90-8b83-3078b9f069a1?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyL2RhdGFiYXNlcy9kYXRhYmFzZS1zZWN1cml0eS1hbGVydC10ZXN0LTczMjQvYXp1cmVBc3luY09wZXJhdGlvbi9hNmUwMmM3NS1iM2FiLTRmOTAtOGI4My0zMDc4YjlmMDY5YTE/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a6e02c75-b3ab-4f90-8b83-3078b9f069a1\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:31:26 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "80c1a51a-1635-4134-982b-032990034d20" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/azureAsyncOperation/a6e02c75-b3ab-4f90-8b83-3078b9f069a1?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "d73e2d5a-14ee-4db7-8848-fbb985e65fb1" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073127Z:d73e2d5a-14ee-4db7-8848-fbb985e65fb1" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyL2RhdGFiYXNlcy9kYXRhYmFzZS1zZWN1cml0eS1hbGVydC10ZXN0LTczMjQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324\",\r\n \"name\": \"database-security-alert-test-7324\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"e385b091-c0be-4bbe-8c1f-e1754c7e2e9a\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:30:22.7Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:41:09.737Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:31:28 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "451e1ce7-1f8f-481b-856e-3cba78b46b09" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "a653aac1-088b-476a-af7e-2525814c7c12" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073128Z:a653aac1-088b-476a-af7e-2525814c7c12" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyL2RhdGFiYXNlcy9kYXRhYmFzZS1zZWN1cml0eS1hbGVydC10ZXN0LTczMjQvc2VjdXJpdHlBbGVydFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e1dc1a7e-8ce8-4d0b-8561-9401296737a7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Enabled\",\r\n \"state\": \"New\",\r\n \"disabledAlerts\": \"Preview\",\r\n \"emailAddresses\": \"\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:31:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dda5a23f-1e1f-4fb5-9ebd-f1694f7eb5dc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "3808e140-7842-4000-ac7d-30039830df04" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073130Z:3808e140-7842-4000-ac7d-30039830df04" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyL2RhdGFiYXNlcy9kYXRhYmFzZS1zZWN1cml0eS1hbGVydC10ZXN0LTczMjQvc2VjdXJpdHlBbGVydFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c0c6b8ee-81bc-446a-bd01-6cad8147ed23" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Disabled\",\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:31:35 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "35c9c01c-c3a7-44ef-a68b-9cb7edb2e3a0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "90dc0367-d445-4213-82f2-f51ad2c8726b" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073135Z:90dc0367-d445-4213-82f2-f51ad2c8726b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2Utc2VjdXJpdHktYWxlcnQtdGVzdC04NjcyL2RhdGFiYXNlcy9kYXRhYmFzZS1zZWN1cml0eS1hbGVydC10ZXN0LTczMjQvc2VjdXJpdHlBbGVydFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5,\r\n \"useServerDefault\": \"Disabled\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "454" + ], + "x-ms-client-request-id": [ + "33df49c1-300f-470e-b9fe-5d3bf18c37cb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/database-security-alert-test-255/providers/Microsoft.Sql/servers/database-security-alert-test-8672/databases/database-security-alert-test-7324/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": null,\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Disabled\",\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:31:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6f262837-91eb-402d-b02a-64c680192767" + ], + "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": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "5feda7df-be5c-4e06-a8b2-0b125d71ecd2" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073134Z:5feda7df-be5c-4e06-a8b2-0b125d71ecd2" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/database-security-alert-test-255?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL2RhdGFiYXNlLXNlY3VyaXR5LWFsZXJ0LXRlc3QtMjU1P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4fbf3d41-42e8-4c31-8e47-d23792340087" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:31:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "6af22371-fe41-4924-9f9c-2ab9e6ee90cd" + ], + "x-ms-correlation-request-id": [ + "6af22371-fe41-4924-9f9c-2ab9e6ee90cd" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073140Z:6af22371-fe41-4924-9f9c-2ab9e6ee90cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkZORlExVlNTVlJaT2pKRVFVeEZVbFE2TWtSVVJWTlVPakpFTWpVMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:32:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "fc278446-2087-4803-a1e1-5b434a84ae50" + ], + "x-ms-correlation-request-id": [ + "fc278446-2087-4803-a1e1-5b434a84ae50" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073211Z:fc278446-2087-4803-a1e1-5b434a84ae50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkZORlExVlNTVlJaT2pKRVFVeEZVbFE2TWtSVVJWTlVPakpFTWpVMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:32:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "16755ee4-6f95-4658-81bf-1de64c4da490" + ], + "x-ms-correlation-request-id": [ + "16755ee4-6f95-4658-81bf-1de64c4da490" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073241Z:16755ee4-6f95-4658-81bf-1de64c4da490" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkZORlExVlNTVlJaT2pKRVFVeEZVbFE2TWtSVVJWTlVPakpFTWpVMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:33:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "9d56e83b-ce68-46bf-8770-6c61c7df1161" + ], + "x-ms-correlation-request-id": [ + "9d56e83b-ce68-46bf-8770-6c61c7df1161" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073312Z:9d56e83b-ce68-46bf-8770-6c61c7df1161" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRToyRFNFQ1VSSVRZOjJEQUxFUlQ6MkRURVNUOjJEMjU1LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVG95UkZORlExVlNTVlJaT2pKRVFVeEZVbFE2TWtSVVJWTlVPakpFTWpVMUxVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:33:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "3a08b20f-7fc4-4675-8032-cb3160b6cc26" + ], + "x-ms-correlation-request-id": [ + "3a08b20f-7fc4-4675-8032-cb3160b6cc26" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20170309T073343Z:3a08b20f-7fc4-4675-8032-cb3160b6cc26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "database-security-alert-test-255" + ], + "RunTestInNewV12Server": [ + "database-security-alert-test-8672" + ], + "TestDatabaseSecurityAlertApis": [ + "database-security-alert-test-7324" + ] + }, + "Variables": { + "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseSecurityAlertTest/TestDatabaseSecurityAlertg.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseSecurityAlertTest/TestDatabaseSecurityAlertg.json new file mode 100644 index 000000000000..4769a5709eba --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseSecurityAlertTest/TestDatabaseSecurityAlertg.json @@ -0,0 +1,653 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/databaseblobauditingtest-3021?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"databaseblobauditingtest-3021\": \"2017-03-02 10:21:59Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "112" + ], + "x-ms-client-request-id": [ + "f3ce3011-a6a2-41aa-9b1b-d51b8d145eb9" + ], + "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/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021\",\r\n \"name\": \"databaseblobauditingtest-3021\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"databaseblobauditingtest-3021\": \"2017-03-02 10:21:59Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "278" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:22:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "bef6a8b3-35b0-40d9-b7f4-1f3b114aa47c" + ], + "x-ms-correlation-request-id": [ + "bef6a8b3-35b0-40d9-b7f4-1f3b114aa47c" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102203Z:bef6a8b3-35b0-40d9-b7f4-1f3b114aa47c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2VibG9iYXVkaXRpbmd0ZXN0LTk5MjA/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "a112bf25-a3fa-4c33-bce8-a659a4ffc97d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920\",\r\n \"name\": \"databaseblobauditingtest-9920\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"databaseblobauditingtest-9920.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": [ + "576" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:22:54 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6336af75-a40b-4ba7-9d87-4eb1b3c85fb2" + ], + "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": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "b259f470-8070-4004-86de-9aa986161f1c" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102254Z:b259f470-8070-4004-86de-9aa986161f1c" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2VibG9iYXVkaXRpbmd0ZXN0LTk5MjAvZGF0YWJhc2VzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC02MTYzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "b4c500b7-4ea2-4b52-b687-d9ecfc6a4a50" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-02T12:22:59.057+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:22:57 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/operationResults/36159552-cd24-47d5-b2b4-b80e049b9518?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "36159552-cd24-47d5-b2b4-b80e049b9518" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/azureAsyncOperation/36159552-cd24-47d5-b2b4-b80e049b9518?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "1185993c-e58a-46aa-9b81-7876ef3957a8" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102257Z:1185993c-e58a-46aa-9b81-7876ef3957a8" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/azureAsyncOperation/36159552-cd24-47d5-b2b4-b80e049b9518?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2VibG9iYXVkaXRpbmd0ZXN0LTk5MjAvZGF0YWJhc2VzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC02MTYzL2F6dXJlQXN5bmNPcGVyYXRpb24vMzYxNTk1NTItY2QyNC00N2Q1LWIyYjQtYjgwZTA0OWI5NTE4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"36159552-cd24-47d5-b2b4-b80e049b9518\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:23:29 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e4cacdef-c455-4d80-9b14-9faf1dbb10f1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/azureAsyncOperation/36159552-cd24-47d5-b2b4-b80e049b9518?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14492" + ], + "x-ms-correlation-request-id": [ + "5574437a-119f-45d0-a165-c176216b689f" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102329Z:5574437a-119f-45d0-a165-c176216b689f" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/azureAsyncOperation/36159552-cd24-47d5-b2b4-b80e049b9518?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2VibG9iYXVkaXRpbmd0ZXN0LTk5MjAvZGF0YWJhc2VzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC02MTYzL2F6dXJlQXN5bmNPcGVyYXRpb24vMzYxNTk1NTItY2QyNC00N2Q1LWIyYjQtYjgwZTA0OWI5NTE4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"36159552-cd24-47d5-b2b4-b80e049b9518\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:24:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c31f73c3-5188-4f75-9d44-1273aacd51e4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/azureAsyncOperation/36159552-cd24-47d5-b2b4-b80e049b9518?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "4831aebf-ef83-4aab-a023-9fb1a2011d4b" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102419Z:4831aebf-ef83-4aab-a023-9fb1a2011d4b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2VibG9iYXVkaXRpbmd0ZXN0LTk5MjAvZGF0YWJhc2VzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC02MTYzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163\",\r\n \"name\": \"databaseblobauditingtest-6163\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"5ba7d181-658b-4435-ba05-80b486c268f4\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-02T10:22:59.293Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-02T10:33:40.34Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "950" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:24:29 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "664b0ded-84ea-4b0c-bc14-c91f3ee9252b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "b40006ee-e2b1-4a98-8683-9bb654a77c3a" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102429Z:b40006ee-e2b1-4a98-8683-9bb654a77c3a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvZGF0YWJhc2VibG9iYXVkaXRpbmd0ZXN0LTk5MjAvZGF0YWJhc2VzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC02MTYzL3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ea4fb0c-5580-4b91-a56b-5d74e2effccd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/databaseblobauditingtest-3021/providers/Microsoft.Sql/servers/databaseblobauditingtest-9920/databases/databaseblobauditingtest-6163/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Enabled\",\r\n \"state\": \"New\",\r\n \"disabledAlerts\": \"Preview\",\r\n \"emailAddresses\": \"\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "557" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:24:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9685bc7e-ef87-4d20-a933-ff4ed0ada18f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "2217b15b-4706-42f9-969d-9fdcec174e58" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102438Z:2217b15b-4706-42f9-969d-9fdcec174e58" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/databaseblobauditingtest-3021?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL2RhdGFiYXNlYmxvYmF1ZGl0aW5ndGVzdC0zMDIxP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c40c02a7-f19b-4a7c-b5ea-ad7028e41840" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:24:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRUJMT0JBVURJVElOR1RFU1Q6MkQzMDIxLUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "170b290f-350d-49b8-802b-702830e6b59f" + ], + "x-ms-correlation-request-id": [ + "170b290f-350d-49b8-802b-702830e6b59f" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102448Z:170b290f-350d-49b8-802b-702830e6b59f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRUJMT0JBVURJVElOR1RFU1Q6MkQzMDIxLUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVUpNVDBKQlZVUkpWRWxPUjFSRlUxUTZNa1F6TURJeExVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:25:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRUJMT0JBVURJVElOR1RFU1Q6MkQzMDIxLUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "d4d6fe52-ae79-4219-9dd8-74987655fb9e" + ], + "x-ms-correlation-request-id": [ + "d4d6fe52-ae79-4219-9dd8-74987655fb9e" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102523Z:d4d6fe52-ae79-4219-9dd8-74987655fb9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRUJMT0JBVURJVElOR1RFU1Q6MkQzMDIxLUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVUpNVDBKQlZVUkpWRWxPUjFSRlUxUTZNa1F6TURJeExVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:25:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRUJMT0JBVURJVElOR1RFU1Q6MkQzMDIxLUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-request-id": [ + "6023a5e6-c9bf-42ca-ae0b-643485ee7366" + ], + "x-ms-correlation-request-id": [ + "6023a5e6-c9bf-42ca-ae0b-643485ee7366" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102557Z:6023a5e6-c9bf-42ca-ae0b-643485ee7366" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1EQVRBQkFTRUJMT0JBVURJVElOR1RFU1Q6MkQzMDIxLUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFFUVZSQlFrRlRSVUpNVDBKQlZVUkpWRWxPUjFSRlUxUTZNa1F6TURJeExVcEJVRUZPUlVGVFZDSXNJbXB2WWt4dlkyRjBhVzl1SWpvaWFtRndZVzVsWVhOMEluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 02 Mar 2017 10:26:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "4c0abaae-b9d3-4f8c-b20f-616d4f3b919d" + ], + "x-ms-correlation-request-id": [ + "4c0abaae-b9d3-4f8c-b20f-616d4f3b919d" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20170302T102629Z:4c0abaae-b9d3-4f8c-b20f-616d4f3b919d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "databaseblobauditingtest-3021" + ], + "RunTestInNewV12Server": [ + "databaseblobauditingtest-9920" + ], + "TestDatabaseSecurityAlertgApis": [ + "databaseblobauditingtest-6163" + ] + }, + "Variables": { + "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerBlobAuditingTest/TestServerBlobAuditing.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerBlobAuditingTest/TestServerBlobAuditing.json new file mode 100644 index 000000000000..62ac5c7b1df0 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerBlobAuditingTest/TestServerBlobAuditing.json @@ -0,0 +1,3669 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/server-blob-auditing-test-18?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"server-blob-auditing-test-18\": \"2017-03-09 07:35:02Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "111" + ], + "x-ms-client-request-id": [ + "6e8fb39c-a71b-4b01-83bb-1374bd18d5aa" + ], + "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/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18\",\r\n \"name\": \"server-blob-auditing-test-18\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"server-blob-auditing-test-18\": \"2017-03-09 07:35:02Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "275" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:35:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "6d89172f-00f9-406d-a37d-99ff7f19ca29" + ], + "x-ms-correlation-request-id": [ + "6d89172f-00f9-406d-a37d-99ff7f19ca29" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073509Z:6d89172f-00f9-406d-a37d-99ff7f19ca29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDY/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "6af44398-1bc9-42c6-9852-14c311d5b44a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046\",\r\n \"name\": \"server-blob-auditing-test-8046\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"server-blob-auditing-test-8046.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": [ + "578" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:35:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "fa7dd281-1129-4997-9522-200be0f4b94c" + ], + "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": [ + "7cb9903c-69ee-4e79-bc1e-e6d6c0da7480" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073548Z:7cb9903c-69ee-4e79-bc1e-e6d6c0da7480" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "af3c2a26-20af-4ae8-bf16-8660d84c88fa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:35:53.702+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:35:51 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0/operationResults/a2749924-ea66-4a60-8303-40627f617a4c?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a2749924-ea66-4a60-8303-40627f617a4c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0/azureAsyncOperation/a2749924-ea66-4a60-8303-40627f617a4c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "4fef4e60-bf75-49e9-8329-fa7b432cb755" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073552Z:4fef4e60-bf75-49e9-8329-fa7b432cb755" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0/azureAsyncOperation/a2749924-ea66-4a60-8303-40627f617a4c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMC9henVyZUFzeW5jT3BlcmF0aW9uL2EyNzQ5OTI0LWVhNjYtNGE2MC04MzAzLTQwNjI3ZjYxN2E0Yz9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a2749924-ea66-4a60-8303-40627f617a4c\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:36:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8baea1d2-8cb1-471b-b258-b53df67a8766" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0/azureAsyncOperation/a2749924-ea66-4a60-8303-40627f617a4c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14708" + ], + "x-ms-correlation-request-id": [ + "7e892d61-b75f-4f1f-8cab-3dd3d2d6ff2c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073624Z:7e892d61-b75f-4f1f-8cab-3dd3d2d6ff2c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0/azureAsyncOperation/a2749924-ea66-4a60-8303-40627f617a4c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMC9henVyZUFzeW5jT3BlcmF0aW9uL2EyNzQ5OTI0LWVhNjYtNGE2MC04MzAzLTQwNjI3ZjYxN2E0Yz9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a2749924-ea66-4a60-8303-40627f617a4c\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:36:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "87d0f127-9d6d-401a-99ee-c52382ecae88" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0/azureAsyncOperation/a2749924-ea66-4a60-8303-40627f617a4c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14699" + ], + "x-ms-correlation-request-id": [ + "f59b76b5-0b8c-4e62-91b3-7b86e2ae1f5e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073656Z:f59b76b5-0b8c-4e62-91b3-7b86e2ae1f5e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db0\",\r\n \"name\": \"db0\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"e1ecd995-d5f2-42dd-812d-0b9e9994e5b8\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:35:54.017Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:46:40.46Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:36:56 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7a9b5f74-6e21-42b0-afb7-3deac7297f41" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14698" + ], + "x-ms-correlation-request-id": [ + "6765f99a-d6ea-4687-a91a-2d3679335f13" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073657Z:6765f99a-d6ea-4687-a91a-2d3679335f13" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "c752ba93-b5f4-4aa1-8b04-43bf756fbfd0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:37:03.204+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:37:01 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1/operationResults/711d445e-63d6-4073-bf31-21227e45c8c2?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "711d445e-63d6-4073-bf31-21227e45c8c2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1/azureAsyncOperation/711d445e-63d6-4073-bf31-21227e45c8c2?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "dba6c68a-b2af-4b51-8242-4e0e8ee73ce6" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073702Z:dba6c68a-b2af-4b51-8242-4e0e8ee73ce6" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1/azureAsyncOperation/711d445e-63d6-4073-bf31-21227e45c8c2?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMS9henVyZUFzeW5jT3BlcmF0aW9uLzcxMWQ0NDVlLTYzZDYtNDA3My1iZjMxLTIxMjI3ZTQ1YzhjMj9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"711d445e-63d6-4073-bf31-21227e45c8c2\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:37:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "02088c8e-1ff5-43a6-8d89-4cb91aba8aec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1/azureAsyncOperation/711d445e-63d6-4073-bf31-21227e45c8c2?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14694" + ], + "x-ms-correlation-request-id": [ + "1e2274af-07fe-4cfe-9a9f-284fe3f3e36d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073734Z:1e2274af-07fe-4cfe-9a9f-284fe3f3e36d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1/azureAsyncOperation/711d445e-63d6-4073-bf31-21227e45c8c2?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMS9henVyZUFzeW5jT3BlcmF0aW9uLzcxMWQ0NDVlLTYzZDYtNDA3My1iZjMxLTIxMjI3ZTQ1YzhjMj9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"711d445e-63d6-4073-bf31-21227e45c8c2\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:38:05 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c67b8465-0bab-4d63-99b8-de89f35154d9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1/azureAsyncOperation/711d445e-63d6-4073-bf31-21227e45c8c2?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14692" + ], + "x-ms-correlation-request-id": [ + "af4c3b27-42c9-4192-852a-8ed8039831c1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073805Z:af4c3b27-42c9-4192-852a-8ed8039831c1" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db1\",\r\n \"name\": \"db1\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"1962a3fc-3e0f-446a-abaa-a1e6cea9e5e7\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:37:03.423Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:47:46.493Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:38:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b2d83506-4685-434f-8f82-7ba526e5b692" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14691" + ], + "x-ms-correlation-request-id": [ + "dcf79a68-1fd4-44d7-ba82-730630745677" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073807Z:dcf79a68-1fd4-44d7-ba82-730630745677" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMj9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "0a09acbe-96bd-4bb4-8f29-53b0c3a5ddf4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:38:12.34+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:38:12 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2/operationResults/a2f4fac2-d88e-4075-b2ef-8ac443b3f035?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a2f4fac2-d88e-4075-b2ef-8ac443b3f035" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2/azureAsyncOperation/a2f4fac2-d88e-4075-b2ef-8ac443b3f035?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "19776f1a-f6c7-475b-b255-ab36c7a469d4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073812Z:19776f1a-f6c7-475b-b255-ab36c7a469d4" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2/azureAsyncOperation/a2f4fac2-d88e-4075-b2ef-8ac443b3f035?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMi9henVyZUFzeW5jT3BlcmF0aW9uL2EyZjRmYWMyLWQ4OGUtNDA3NS1iMmVmLThhYzQ0M2IzZjAzNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a2f4fac2-d88e-4075-b2ef-8ac443b3f035\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:38:43 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "99efdabe-e9c7-48de-aef1-cebb7572cfa4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2/azureAsyncOperation/a2f4fac2-d88e-4075-b2ef-8ac443b3f035?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14690" + ], + "x-ms-correlation-request-id": [ + "a220679a-b87e-44d3-93d0-b743d773c138" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073844Z:a220679a-b87e-44d3-93d0-b743d773c138" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2/azureAsyncOperation/a2f4fac2-d88e-4075-b2ef-8ac443b3f035?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMi9henVyZUFzeW5jT3BlcmF0aW9uL2EyZjRmYWMyLWQ4OGUtNDA3NS1iMmVmLThhYzQ0M2IzZjAzNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a2f4fac2-d88e-4075-b2ef-8ac443b3f035\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:39:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0fcd5cea-2114-4753-b1e3-130a85ac3b81" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2/azureAsyncOperation/a2f4fac2-d88e-4075-b2ef-8ac443b3f035?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14687" + ], + "x-ms-correlation-request-id": [ + "d871ffe4-d486-460f-a17c-760a1f169cd0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073915Z:d871ffe4-d486-460f-a17c-760a1f169cd0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMj9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db2\",\r\n \"name\": \"db2\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"4245f900-a364-4edf-bab7-ad4c7ba84603\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:38:12.7Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:48:50.533Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:39:16 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "815e109c-7f95-45ff-a994-ca0c43614b42" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14686" + ], + "x-ms-correlation-request-id": [ + "90c20bac-c0e8-44ea-8a4d-2a5e81d226ff" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073917Z:90c20bac-c0e8-44ea-8a4d-2a5e81d226ff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "c67f17d7-a1e5-4b3f-bb61-cc433d59df7f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:39:22.287+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:39:21 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3/operationResults/d5893bff-0627-4fe8-b8a3-a1e835cdd248?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d5893bff-0627-4fe8-b8a3-a1e835cdd248" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3/azureAsyncOperation/d5893bff-0627-4fe8-b8a3-a1e835cdd248?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "d20632bc-902e-4fcc-b517-690f459dc74a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073922Z:d20632bc-902e-4fcc-b517-690f459dc74a" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3/azureAsyncOperation/d5893bff-0627-4fe8-b8a3-a1e835cdd248?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMy9henVyZUFzeW5jT3BlcmF0aW9uL2Q1ODkzYmZmLTA2MjctNGZlOC1iOGEzLWExZTgzNWNkZDI0OD9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"d5893bff-0627-4fe8-b8a3-a1e835cdd248\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:39:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f41bcf40-0d16-4228-9cea-bb2c41f9db24" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3/azureAsyncOperation/d5893bff-0627-4fe8-b8a3-a1e835cdd248?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14683" + ], + "x-ms-correlation-request-id": [ + "6c2bdb3f-ad44-4f10-b254-c0d5332efbbb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T073953Z:6c2bdb3f-ad44-4f10-b254-c0d5332efbbb" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3/azureAsyncOperation/d5893bff-0627-4fe8-b8a3-a1e835cdd248?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMy9henVyZUFzeW5jT3BlcmF0aW9uL2Q1ODkzYmZmLTA2MjctNGZlOC1iOGEzLWExZTgzNWNkZDI0OD9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"d5893bff-0627-4fe8-b8a3-a1e835cdd248\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:40:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c0a428e-3a99-4ad5-bbc3-fb13573a6d9e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3/azureAsyncOperation/d5893bff-0627-4fe8-b8a3-a1e835cdd248?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14734" + ], + "x-ms-correlation-request-id": [ + "d4b12aee-5474-4601-9e86-2c816a255f8f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074025Z:d4b12aee-5474-4601-9e86-2c816a255f8f" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db3\",\r\n \"name\": \"db3\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"e267b483-6207-4ad3-8db2-ee10f07bb4c4\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:39:22.523Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:50:03.57Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:40:26 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "651eee47-9812-4602-a032-afebab39dbc3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14733" + ], + "x-ms-correlation-request-id": [ + "48b6abb7-9b53-4e3a-8670-571922726ff8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074027Z:48b6abb7-9b53-4e3a-8670-571922726ff8" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiND9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "338d8f81-774f-41fd-b05d-d4e58ec121c6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:40:32.756+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:40:31 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4/operationResults/21ae1511-873d-497f-a7ff-08d6c382c330?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "21ae1511-873d-497f-a7ff-08d6c382c330" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4/azureAsyncOperation/21ae1511-873d-497f-a7ff-08d6c382c330?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "c47f10f8-63e9-4b5f-ad1a-fe77fa0ebf5f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074031Z:c47f10f8-63e9-4b5f-ad1a-fe77fa0ebf5f" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4/azureAsyncOperation/21ae1511-873d-497f-a7ff-08d6c382c330?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNC9henVyZUFzeW5jT3BlcmF0aW9uLzIxYWUxNTExLTg3M2QtNDk3Zi1hN2ZmLTA4ZDZjMzgyYzMzMD9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"21ae1511-873d-497f-a7ff-08d6c382c330\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:41:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3391654f-95d8-4563-9227-b1aae602a6a5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4/azureAsyncOperation/21ae1511-873d-497f-a7ff-08d6c382c330?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14729" + ], + "x-ms-correlation-request-id": [ + "2d85b63c-9c75-4e2f-85a2-b6a7c921ed61" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074103Z:2d85b63c-9c75-4e2f-85a2-b6a7c921ed61" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4/azureAsyncOperation/21ae1511-873d-497f-a7ff-08d6c382c330?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNC9henVyZUFzeW5jT3BlcmF0aW9uLzIxYWUxNTExLTg3M2QtNDk3Zi1hN2ZmLTA4ZDZjMzgyYzMzMD9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"21ae1511-873d-497f-a7ff-08d6c382c330\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:41:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "226e19bd-6df9-4951-a986-0d52b377fd22" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4/azureAsyncOperation/21ae1511-873d-497f-a7ff-08d6c382c330?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14727" + ], + "x-ms-correlation-request-id": [ + "35c0903b-3662-4531-ac6e-50074e340050" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074134Z:35c0903b-3662-4531-ac6e-50074e340050" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiND9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db4\",\r\n \"name\": \"db4\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"da197e2a-2fa4-460d-aa27-ad6d516f6bc3\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:40:32.99Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:51:18.493Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:41:36 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c70abb59-910c-44be-8abb-e1bad80dd7fe" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14726" + ], + "x-ms-correlation-request-id": [ + "eb0e85d5-b4a8-468f-95eb-a9e088095f7e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074136Z:eb0e85d5-b4a8-468f-95eb-a9e088095f7e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "cdd44d51-867e-4be4-8967-b4aa6e248f37" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:41:42.259+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:41:41 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5/operationResults/5a0d857b-bf76-4637-a864-d253c91a8227?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5a0d857b-bf76-4637-a864-d253c91a8227" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5/azureAsyncOperation/5a0d857b-bf76-4637-a864-d253c91a8227?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "300948be-56b7-4abe-8143-467258f8a84c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074141Z:300948be-56b7-4abe-8143-467258f8a84c" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5/azureAsyncOperation/5a0d857b-bf76-4637-a864-d253c91a8227?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNS9henVyZUFzeW5jT3BlcmF0aW9uLzVhMGQ4NTdiLWJmNzYtNDYzNy1hODY0LWQyNTNjOTFhODIyNz9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"5a0d857b-bf76-4637-a864-d253c91a8227\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:42:12 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3044ae58-b364-4286-af2f-6156fb47b834" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5/azureAsyncOperation/5a0d857b-bf76-4637-a864-d253c91a8227?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14722" + ], + "x-ms-correlation-request-id": [ + "cd4d27b4-47ef-4618-8c4f-c9e56294b834" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074212Z:cd4d27b4-47ef-4618-8c4f-c9e56294b834" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5/azureAsyncOperation/5a0d857b-bf76-4637-a864-d253c91a8227?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNS9henVyZUFzeW5jT3BlcmF0aW9uLzVhMGQ4NTdiLWJmNzYtNDYzNy1hODY0LWQyNTNjOTFhODIyNz9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"5a0d857b-bf76-4637-a864-d253c91a8227\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:42:44 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e00a497d-93a2-4b11-a014-b2882d6209f5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5/azureAsyncOperation/5a0d857b-bf76-4637-a864-d253c91a8227?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "c2bd880a-1da7-48d6-91bb-fc163240199d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074244Z:c2bd880a-1da7-48d6-91bb-fc163240199d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db5\",\r\n \"name\": \"db5\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"be73428c-8e52-4e9f-a95c-7267081b905f\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:41:42.477Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:52:26.287Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:42:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2b189653-13b2-438f-b098-37846383368f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "ada89943-4663-42a6-af93-3d4977b04b96" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074246Z:ada89943-4663-42a6-af93-3d4977b04b96" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNj9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "b15936f1-9008-406c-9cbd-60dbc962d3e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:42:52.129+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:42:51 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6/operationResults/988d301b-84b1-4824-a96e-5ba48965a79a?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "988d301b-84b1-4824-a96e-5ba48965a79a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6/azureAsyncOperation/988d301b-84b1-4824-a96e-5ba48965a79a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "4043255f-5758-4370-bd33-c73092ad8492" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074251Z:4043255f-5758-4370-bd33-c73092ad8492" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6/azureAsyncOperation/988d301b-84b1-4824-a96e-5ba48965a79a?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNi9henVyZUFzeW5jT3BlcmF0aW9uLzk4OGQzMDFiLTg0YjEtNDgyNC1hOTZlLTViYTQ4OTY1YTc5YT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"988d301b-84b1-4824-a96e-5ba48965a79a\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:43:22 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0e8a7090-f098-4076-97aa-0e2ce3334e2a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6/azureAsyncOperation/988d301b-84b1-4824-a96e-5ba48965a79a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "16457327-6b0a-4ac5-886c-edbb0c334548" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074323Z:16457327-6b0a-4ac5-886c-edbb0c334548" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6/azureAsyncOperation/988d301b-84b1-4824-a96e-5ba48965a79a?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNi9henVyZUFzeW5jT3BlcmF0aW9uLzk4OGQzMDFiLTg0YjEtNDgyNC1hOTZlLTViYTQ4OTY1YTc5YT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"988d301b-84b1-4824-a96e-5ba48965a79a\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:43:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ae2a3caa-fae6-41be-bdfa-621866d8fe37" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6/azureAsyncOperation/988d301b-84b1-4824-a96e-5ba48965a79a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "90c1181f-0249-40ec-97ea-0af4ddde8076" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074355Z:90c1181f-0249-40ec-97ea-0af4ddde8076" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNj9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db6\",\r\n \"name\": \"db6\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"00882850-c569-4b3a-bd85-74aeb44f970f\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:42:52.44Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:53:39.27Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:43:56 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fea15028-60c1-4c11-9777-735cc232996a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "7ca8bac9-3300-4e12-aaf9-3b24827c6904" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074357Z:7ca8bac9-3300-4e12-aaf9-3b24827c6904" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "e6497178-68c3-4bca-a2b8-8483363f8d3a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:44:00.71+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:44:00 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7/operationResults/6929bf8b-8e8f-41bf-a803-b4f87cdae905?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6929bf8b-8e8f-41bf-a803-b4f87cdae905" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7/azureAsyncOperation/6929bf8b-8e8f-41bf-a803-b4f87cdae905?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "b9bee427-4fe1-446e-bccc-1e1453a33bc9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074401Z:b9bee427-4fe1-446e-bccc-1e1453a33bc9" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7/azureAsyncOperation/6929bf8b-8e8f-41bf-a803-b4f87cdae905?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNy9henVyZUFzeW5jT3BlcmF0aW9uLzY5MjliZjhiLThlOGYtNDFiZi1hODAzLWI0Zjg3Y2RhZTkwNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"6929bf8b-8e8f-41bf-a803-b4f87cdae905\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:44:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d5f5e782-6b9d-4cc9-b685-1db19d94bf6c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7/azureAsyncOperation/6929bf8b-8e8f-41bf-a803-b4f87cdae905?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "2dd0cb59-212b-43d3-ac2f-22409d590420" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074433Z:2dd0cb59-212b-43d3-ac2f-22409d590420" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7/azureAsyncOperation/6929bf8b-8e8f-41bf-a803-b4f87cdae905?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNy9henVyZUFzeW5jT3BlcmF0aW9uLzY5MjliZjhiLThlOGYtNDFiZi1hODAzLWI0Zjg3Y2RhZTkwNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"6929bf8b-8e8f-41bf-a803-b4f87cdae905\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:45:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fba290b4-3d89-4503-9413-eb40c7c5759c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7/azureAsyncOperation/6929bf8b-8e8f-41bf-a803-b4f87cdae905?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "82e52a07-a4fb-43c8-9e02-6423e022a0b7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074505Z:82e52a07-a4fb-43c8-9e02-6423e022a0b7" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiNz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db7\",\r\n \"name\": \"db7\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"d4c3f98c-de53-438a-a836-da069e360c8d\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:44:00.993Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:54:42.177Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:45:06 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9278b222-ac6a-483f-913e-aa78dc4c07da" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "4b0177c6-dd28-46b1-b234-bae9368c8353" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074506Z:4b0177c6-dd28-46b1-b234-bae9368c8353" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "d69b76f9-d7db-4e82-83c7-404e7bff8c65" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:45:11.619+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:45:10 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8/operationResults/cb3e2cef-f00f-4fc5-9d20-774859c1546e?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "cb3e2cef-f00f-4fc5-9d20-774859c1546e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8/azureAsyncOperation/cb3e2cef-f00f-4fc5-9d20-774859c1546e?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "5dcd213d-7c13-40c6-ad81-591cb3515c79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074511Z:5dcd213d-7c13-40c6-ad81-591cb3515c79" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8/azureAsyncOperation/cb3e2cef-f00f-4fc5-9d20-774859c1546e?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOC9henVyZUFzeW5jT3BlcmF0aW9uL2NiM2UyY2VmLWYwMGYtNGZjNS05ZDIwLTc3NDg1OWMxNTQ2ZT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"cb3e2cef-f00f-4fc5-9d20-774859c1546e\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:45:42 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b62d730a-7c75-4d19-8eeb-cd911703e0c6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8/azureAsyncOperation/cb3e2cef-f00f-4fc5-9d20-774859c1546e?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "2339dc49-cfdf-42bc-841f-09b4dcb2b326" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074543Z:2339dc49-cfdf-42bc-841f-09b4dcb2b326" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8/azureAsyncOperation/cb3e2cef-f00f-4fc5-9d20-774859c1546e?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOC9henVyZUFzeW5jT3BlcmF0aW9uL2NiM2UyY2VmLWYwMGYtNGZjNS05ZDIwLTc3NDg1OWMxNTQ2ZT9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"cb3e2cef-f00f-4fc5-9d20-774859c1546e\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:46:14 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c9df47ff-fd70-4134-98cd-635ed44d2bdc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8/azureAsyncOperation/cb3e2cef-f00f-4fc5-9d20-774859c1546e?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "93e9d0eb-cb42-4b36-b72c-2f046df0baca" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074614Z:93e9d0eb-cb42-4b36-b72c-2f046df0baca" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db8\",\r\n \"name\": \"db8\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"da52101f-d65a-4c3d-95e6-29d0197bf914\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:45:11.917Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:55:49.783Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:46:16 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "093f738e-5a07-473f-bacd-b498b56d6dc1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "af01bbcb-79ac-4e2f-a96a-fac50466eced" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074616Z:af01bbcb-79ac-4e2f-a96a-fac50466eced" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "25840dff-5177-471d-a231-2cd3d315facc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:46:22.616+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:46:21 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9/operationResults/359aa281-0844-4ce3-9df9-38ae8b728d72?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "359aa281-0844-4ce3-9df9-38ae8b728d72" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9/azureAsyncOperation/359aa281-0844-4ce3-9df9-38ae8b728d72?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "4e6f1a8a-98df-4914-a5a1-bc8a61c93244" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074621Z:4e6f1a8a-98df-4914-a5a1-bc8a61c93244" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9/azureAsyncOperation/359aa281-0844-4ce3-9df9-38ae8b728d72?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOS9henVyZUFzeW5jT3BlcmF0aW9uLzM1OWFhMjgxLTA4NDQtNGNlMy05ZGY5LTM4YWU4YjcyOGQ3Mj9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"359aa281-0844-4ce3-9df9-38ae8b728d72\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:46:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0bfce3c0-a194-4f7e-82fa-1c8cb2c0f296" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9/azureAsyncOperation/359aa281-0844-4ce3-9df9-38ae8b728d72?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "efbe1afb-ca5d-40f3-8523-f4188b313452" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074652Z:efbe1afb-ca5d-40f3-8523-f4188b313452" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9/azureAsyncOperation/359aa281-0844-4ce3-9df9-38ae8b728d72?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOS9henVyZUFzeW5jT3BlcmF0aW9uLzM1OWFhMjgxLTA4NDQtNGNlMy05ZGY5LTM4YWU4YjcyOGQ3Mj9hcGktdmVyc2lvbj0yMDE0LTA0LTAxLVByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"359aa281-0844-4ce3-9df9-38ae8b728d72\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:47:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fd5a253d-b873-464e-90f1-e9a97796095e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9/azureAsyncOperation/359aa281-0844-4ce3-9df9-38ae8b728d72?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "fc2ffb57-5832-4aa0-97fd-4f9a1e8d6c98" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074724Z:fc2ffb57-5832-4aa0-97fd-4f9a1e8d6c98" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiOT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db9\",\r\n \"name\": \"db9\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"ef1ee986-d620-4bde-b181-e6f7ed2487f4\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:46:22.883Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:57:03.113Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:47:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b274b146-ea6e-46d4-b350-8ddf9a56db95" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "1e178d55-20d8-43d3-a909-749bd5ad4137" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074725Z:1e178d55-20d8-43d3-a909-749bd5ad4137" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTA/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "bab6b18c-d991-495f-b588-61d072524e6a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:47:31.081+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:47:30 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10/operationResults/bda013dd-bec0-43d4-bf99-13651484bc3d?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bda013dd-bec0-43d4-bf99-13651484bc3d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10/azureAsyncOperation/bda013dd-bec0-43d4-bf99-13651484bc3d?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "074f1acd-f5bd-4cdf-97c4-ad1593adee08" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074730Z:074f1acd-f5bd-4cdf-97c4-ad1593adee08" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10/azureAsyncOperation/bda013dd-bec0-43d4-bf99-13651484bc3d?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTAvYXp1cmVBc3luY09wZXJhdGlvbi9iZGEwMTNkZC1iZWMwLTQzZDQtYmY5OS0xMzY1MTQ4NGJjM2Q/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"bda013dd-bec0-43d4-bf99-13651484bc3d\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:48:01 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1387401b-e2e2-434e-aeac-2bf2e3b381ec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10/azureAsyncOperation/bda013dd-bec0-43d4-bf99-13651484bc3d?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "7e992658-60f2-477d-b366-5d840330a5e1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074802Z:7e992658-60f2-477d-b366-5d840330a5e1" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10/azureAsyncOperation/bda013dd-bec0-43d4-bf99-13651484bc3d?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTAvYXp1cmVBc3luY09wZXJhdGlvbi9iZGEwMTNkZC1iZWMwLTQzZDQtYmY5OS0xMzY1MTQ4NGJjM2Q/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"bda013dd-bec0-43d4-bf99-13651484bc3d\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:48:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8885000b-359d-466e-8d5c-3a56f72528e5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10/azureAsyncOperation/bda013dd-bec0-43d4-bf99-13651484bc3d?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14934" + ], + "x-ms-correlation-request-id": [ + "9ece312c-68e8-4047-9d35-2bdc02617eb5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074833Z:9ece312c-68e8-4047-9d35-2bdc02617eb5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTA/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db10\",\r\n \"name\": \"db10\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"2ca1d1a4-8bac-4cbf-9ac1-51875797b9f9\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:47:31.38Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:58:22.13Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:48:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "303a2c11-e595-4402-96e9-fe2443f3644a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14933" + ], + "x-ms-correlation-request-id": [ + "df6075c6-03ba-4626-88d6-aae38c29cafe" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074835Z:df6075c6-03ba-4626-88d6-aae38c29cafe" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTE/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "b1fbbc00-8267-4ce9-9472-da5b9f9afeff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:48:40.839+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:48:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11/operationResults/03c456a3-42a3-4dd5-8d73-8832751d039c?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "03c456a3-42a3-4dd5-8d73-8832751d039c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11/azureAsyncOperation/03c456a3-42a3-4dd5-8d73-8832751d039c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "551d9eb2-29f5-47f8-9f3c-75db8f4c15b0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074840Z:551d9eb2-29f5-47f8-9f3c-75db8f4c15b0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11/azureAsyncOperation/03c456a3-42a3-4dd5-8d73-8832751d039c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTEvYXp1cmVBc3luY09wZXJhdGlvbi8wM2M0NTZhMy00MmEzLTRkZDUtOGQ3My04ODMyNzUxZDAzOWM/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"03c456a3-42a3-4dd5-8d73-8832751d039c\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:49:11 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e2ccebb8-c5d3-4630-ae5e-24816fcaaa96" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11/azureAsyncOperation/03c456a3-42a3-4dd5-8d73-8832751d039c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "f3c140bc-893d-45d4-9d22-291c20a1ad3c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074911Z:f3c140bc-893d-45d4-9d22-291c20a1ad3c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11/azureAsyncOperation/03c456a3-42a3-4dd5-8d73-8832751d039c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTEvYXp1cmVBc3luY09wZXJhdGlvbi8wM2M0NTZhMy00MmEzLTRkZDUtOGQ3My04ODMyNzUxZDAzOWM/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"03c456a3-42a3-4dd5-8d73-8832751d039c\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:49:42 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69b46dd4-0682-4b5d-8361-ca3e49a1874b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11/azureAsyncOperation/03c456a3-42a3-4dd5-8d73-8832751d039c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14914" + ], + "x-ms-correlation-request-id": [ + "cadb53d6-e465-41ad-87d1-11e3fcad8046" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074943Z:cadb53d6-e465-41ad-87d1-11e3fcad8046" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvZGF0YWJhc2VzL2RiMTE/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/databases/db11\",\r\n \"name\": \"db11\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"202638b6-09e1-4bbf-b3f1-a3c4ee750e24\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:48:41.073Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T07:59:24.993Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:49:44 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eba19485-429b-4cf8-83d0-7ac54731bf62" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14912" + ], + "x-ms-correlation-request-id": [ + "dd3898a6-7a20-4d25-b0f5-d06b774e05de" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074944Z:dd3898a6-7a20-4d25-b0f5-d06b774e05de" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvYXVkaXRpbmdTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8f8250db-f3b5-4178-9b69-691003d1a803" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0,\r\n \"auditActionsAndGroups\": [],\r\n \"storageAccountSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:49:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "44f7944a-46fe-4ae5-8ff1-96eacab52fb7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14911" + ], + "x-ms-correlation-request-id": [ + "0e075d83-95c9-45f2-8ac8-e929ecf35caf" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074946Z:0e075d83-95c9-45f2-8ac8-e929ecf35caf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvYXVkaXRpbmdTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0c2635f9-7407-41df-9fc2-1a93e68e0942" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 8,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:50:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "67880f95-63e8-48ef-a149-fe1aef14250c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14904" + ], + "x-ms-correlation-request-id": [ + "9e5153b5-1bd4-4d46-a8ec-ee8fb41c783f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075023Z:9e5153b5-1bd4-4d46-a8ec-ee8fb41c783f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvYXVkaXRpbmdTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 8,\r\n \"auditActionsAndGroups\": [\r\n \"SCHEMA_OBJECT_ACCESS_GROUP\",\r\n \"UPDATE on database::testdb by public\"\r\n ],\r\n \"storageAccountSubscriptionId\": \"00000000-1234-0000-5678-000000000000\",\r\n \"isStorageSecondaryKeyInUse\": false\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "507" + ], + "x-ms-client-request-id": [ + "5b157683-8889-4515-9926-cfdd90c0331d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:49:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/default/operationResults/b9344cb1-38cd-4265-a37c-8f5a5e15dc7a?api-version=2015-05-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "146cf9db-2269-4c63-8f63-3976ed9e82d1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "4b64cea2-3d30-413b-b450-bf43dc6ccd7d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T074948Z:4b64cea2-3d30-413b-b450-bf43dc6ccd7d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/default/operationResults/b9344cb1-38cd-4265-a37c-8f5a5e15dc7a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvYXVkaXRpbmdTZXR0aW5ncy9kZWZhdWx0L29wZXJhdGlvblJlc3VsdHMvYjkzNDRjYjEtMzhjZC00MjY1LWEzN2MtOGY1YTVlMTVkYzdhP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/Default/operationResults/b9344cb1-38cd-4265-a37c-8f5a5e15dc7a\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/auditingSettings\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"operationId\": \"b9344cb1-38cd-4265-a37c-8f5a5e15dc7a\",\r\n \"state\": \"Succeeded\",\r\n \"startTime\": \"3/9/2017 7:49:46 AM\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:50:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5798995c-5b0d-487a-acfa-cdd443c5bb73" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14908" + ], + "x-ms-correlation-request-id": [ + "b5c04d9d-5d17-409d-9763-819416f56c2b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075020Z:b5c04d9d-5d17-409d-9763-819416f56c2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-blob-auditing-test-18/providers/Microsoft.Sql/servers/server-blob-auditing-test-8046/auditingSettings/default/operationResults?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItYmxvYi1hdWRpdGluZy10ZXN0LTgwNDYvYXVkaXRpbmdTZXR0aW5ncy9kZWZhdWx0L29wZXJhdGlvblJlc3VsdHM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf5650a2-4ce8-4037-b709-8fefc8159967" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:50:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "94590e2f-476a-42de-9da4-6ec2656d010e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14907" + ], + "x-ms-correlation-request-id": [ + "ae2e3c42-60a1-4414-9772-fee695c655b5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075021Z:ae2e3c42-60a1-4414-9772-fee695c655b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/server-blob-auditing-test-18?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1ibG9iLWF1ZGl0aW5nLXRlc3QtMTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5e2464aa-88b6-4d01-9141-9c54a8980ddd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:50:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "880e13de-018a-4599-9092-463c4876e24a" + ], + "x-ms-correlation-request-id": [ + "880e13de-018a-4599-9092-463c4876e24a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075027Z:880e13de-018a-4599-9092-463c4876e24a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNVGd0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:50:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14891" + ], + "x-ms-request-id": [ + "c191dc73-bb29-4b9b-9f4e-3d3a0fce8522" + ], + "x-ms-correlation-request-id": [ + "c191dc73-bb29-4b9b-9f4e-3d3a0fce8522" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075057Z:c191dc73-bb29-4b9b-9f4e-3d3a0fce8522" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNVGd0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:51:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14878" + ], + "x-ms-request-id": [ + "76447160-1e38-46a2-83f5-45fdadf60572" + ], + "x-ms-correlation-request-id": [ + "76447160-1e38-46a2-83f5-45fdadf60572" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075128Z:76447160-1e38-46a2-83f5-45fdadf60572" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNVGd0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:51:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14869" + ], + "x-ms-request-id": [ + "2233131c-b348-4a95-bd58-097b58b06b8c" + ], + "x-ms-correlation-request-id": [ + "2233131c-b348-4a95-bd58-097b58b06b8c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075159Z:2233131c-b348-4a95-bd58-097b58b06b8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRCTE9COjJEQVVESVRJTkc6MkRURVNUOjJEMTgtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JDVEU5Q09qSkVRVlZFU1ZSSlRrYzZNa1JVUlZOVU9qSkVNVGd0U2tGUVFVNUZRVk5VSWl3aWFtOWlURzlqWVhScGIyNGlPaUpxWVhCaGJtVmhjM1FpZlE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:52:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14855" + ], + "x-ms-request-id": [ + "2a2c4910-b698-491e-a08b-bf88e693e11f" + ], + "x-ms-correlation-request-id": [ + "2a2c4910-b698-491e-a08b-bf88e693e11f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075229Z:2a2c4910-b698-491e-a08b-bf88e693e11f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "server-blob-auditing-test-18" + ], + "RunTestInNewV12Server": [ + "server-blob-auditing-test-8046" + ] + }, + "Variables": { + "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerSecurityAlertTest/TestServerSecurityAlert.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerSecurityAlertTest/TestServerSecurityAlert.json new file mode 100644 index 000000000000..8b4d4a0c8372 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerSecurityAlertTest/TestServerSecurityAlert.json @@ -0,0 +1,3669 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/server-security-alert-test-1015?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTU/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"server-security-alert-test-1015\": \"2017-03-09 07:57:09Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "114" + ], + "x-ms-client-request-id": [ + "b9513052-d251-4c2d-a364-8e98ca4e559f" + ], + "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/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015\",\r\n \"name\": \"server-security-alert-test-1015\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"server-security-alert-test-1015\": \"2017-03-09 07:57:09Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "284" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:57:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "d734c766-6a63-4aec-9b57-670feb8bfe79" + ], + "x-ms-correlation-request-id": [ + "d734c766-6a63-4aec-9b57-670feb8bfe79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075713Z:d734c766-6a63-4aec-9b57-670feb8bfe79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "07d8cce0-7c90-4aa6-8247-b36f5e514fb3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153\",\r\n \"name\": \"server-security-alert-test-6153\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"server-security-alert-test-6153.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": [ + "584" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:57:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9f67cf10-aae3-4607-9cb3-8f3ccd86136e" + ], + "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": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "21d58346-9701-45cc-a41a-d35c8c557a91" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075747Z:21d58346-9701-45cc-a41a-d35c8c557a91" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjA/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "6666d3a7-3c3c-41ee-ae45-362938af323e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:57:50.982+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:57:50 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0/operationResults/a6c86310-935d-4cb0-9cc8-e4586691fd06?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a6c86310-935d-4cb0-9cc8-e4586691fd06" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0/azureAsyncOperation/a6c86310-935d-4cb0-9cc8-e4586691fd06?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "1e6e10ba-b78c-44c3-83eb-e5b4e172b6b3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075750Z:1e6e10ba-b78c-44c3-83eb-e5b4e172b6b3" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0/azureAsyncOperation/a6c86310-935d-4cb0-9cc8-e4586691fd06?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjAvYXp1cmVBc3luY09wZXJhdGlvbi9hNmM4NjMxMC05MzVkLTRjYjAtOWNjOC1lNDU4NjY5MWZkMDY/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a6c86310-935d-4cb0-9cc8-e4586691fd06\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:58:21 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "13ee9112-e567-4f32-9fa1-83fdfb104494" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0/azureAsyncOperation/a6c86310-935d-4cb0-9cc8-e4586691fd06?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-correlation-request-id": [ + "32bd41de-11da-4bc7-916e-9a28e90ada75" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075822Z:32bd41de-11da-4bc7-916e-9a28e90ada75" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0/azureAsyncOperation/a6c86310-935d-4cb0-9cc8-e4586691fd06?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjAvYXp1cmVBc3luY09wZXJhdGlvbi9hNmM4NjMxMC05MzVkLTRjYjAtOWNjOC1lNDU4NjY5MWZkMDY/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a6c86310-935d-4cb0-9cc8-e4586691fd06\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:58:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "876910cc-b97d-4fca-adb3-8bd0133c81fe" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0/azureAsyncOperation/a6c86310-935d-4cb0-9cc8-e4586691fd06?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "4073df51-8ae2-492b-9597-154ac9bc38ef" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075854Z:4073df51-8ae2-492b-9597-154ac9bc38ef" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjA/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db0\",\r\n \"name\": \"db0\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"c95edcf1-be4a-4d7f-95da-9b192a91f7d5\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:57:51.437Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:08:35.967Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:58:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b31e495b-51c5-4755-9db8-ceeba06dbd3e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14953" + ], + "x-ms-correlation-request-id": [ + "d6bc8396-53b8-4ed6-800b-f4cf5727b079" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075856Z:d6bc8396-53b8-4ed6-800b-f4cf5727b079" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjE/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "f47e4e73-e5c2-447c-b61e-740c35c12a03" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T09:59:01.639+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:59:00 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1/operationResults/a434f79d-9c85-4a05-82c3-0c0c49617082?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a434f79d-9c85-4a05-82c3-0c0c49617082" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1/azureAsyncOperation/a434f79d-9c85-4a05-82c3-0c0c49617082?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "81c64ca7-0b22-4261-81d0-de0c0a37cdfb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075900Z:81c64ca7-0b22-4261-81d0-de0c0a37cdfb" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1/azureAsyncOperation/a434f79d-9c85-4a05-82c3-0c0c49617082?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjEvYXp1cmVBc3luY09wZXJhdGlvbi9hNDM0Zjc5ZC05Yzg1LTRhMDUtODJjMy0wYzBjNDk2MTcwODI/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a434f79d-9c85-4a05-82c3-0c0c49617082\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 07:59:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c5128c9-9a56-45d8-9f7d-449f09f6fddd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1/azureAsyncOperation/a434f79d-9c85-4a05-82c3-0c0c49617082?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14952" + ], + "x-ms-correlation-request-id": [ + "a1f576e8-468b-4d00-982a-05c73273ae92" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T075932Z:a1f576e8-468b-4d00-982a-05c73273ae92" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1/azureAsyncOperation/a434f79d-9c85-4a05-82c3-0c0c49617082?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjEvYXp1cmVBc3luY09wZXJhdGlvbi9hNDM0Zjc5ZC05Yzg1LTRhMDUtODJjMy0wYzBjNDk2MTcwODI/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"a434f79d-9c85-4a05-82c3-0c0c49617082\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:00:02 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cfd85a10-760b-469f-a974-6b4cfdd930ac" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1/azureAsyncOperation/a434f79d-9c85-4a05-82c3-0c0c49617082?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-correlation-request-id": [ + "65f81168-a280-481e-a142-1ed48d1a4852" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080003Z:65f81168-a280-481e-a142-1ed48d1a4852" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjE/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db1\",\r\n \"name\": \"db1\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"c4674769-bc35-4bc9-af06-6b6ed3e74e65\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T07:59:01.953Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:09:33.867Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:00:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6979cdd5-f650-4f10-bd0c-a3121b57d513" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14948" + ], + "x-ms-correlation-request-id": [ + "2781e179-c608-4049-b8f4-84a640deee5c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080005Z:2781e179-c608-4049-b8f4-84a640deee5c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjI/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "4ad366b4-8cd3-4d28-a0ea-48b2b108e14d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:00:10.409+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:00:10 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2/operationResults/0060e7d8-56c6-4e6b-9d60-07794cdc1e69?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0060e7d8-56c6-4e6b-9d60-07794cdc1e69" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2/azureAsyncOperation/0060e7d8-56c6-4e6b-9d60-07794cdc1e69?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "b11285dd-5d51-488e-a012-def3e5927ab3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080010Z:b11285dd-5d51-488e-a012-def3e5927ab3" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2/azureAsyncOperation/0060e7d8-56c6-4e6b-9d60-07794cdc1e69?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjIvYXp1cmVBc3luY09wZXJhdGlvbi8wMDYwZTdkOC01NmM2LTRlNmItOWQ2MC0wNzc5NGNkYzFlNjk/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"0060e7d8-56c6-4e6b-9d60-07794cdc1e69\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:00:41 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "842d2859-25b7-4046-8d51-0aabfee0bbe4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2/azureAsyncOperation/0060e7d8-56c6-4e6b-9d60-07794cdc1e69?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14946" + ], + "x-ms-correlation-request-id": [ + "b5d7ca87-ff33-4a4f-a4da-2fec6c9a3405" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080041Z:b5d7ca87-ff33-4a4f-a4da-2fec6c9a3405" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2/azureAsyncOperation/0060e7d8-56c6-4e6b-9d60-07794cdc1e69?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjIvYXp1cmVBc3luY09wZXJhdGlvbi8wMDYwZTdkOC01NmM2LTRlNmItOWQ2MC0wNzc5NGNkYzFlNjk/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"0060e7d8-56c6-4e6b-9d60-07794cdc1e69\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:01:12 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d2ade397-e19f-4018-bfa5-e448f0c966d1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2/azureAsyncOperation/0060e7d8-56c6-4e6b-9d60-07794cdc1e69?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-correlation-request-id": [ + "11abbf29-0332-4590-9fe3-cfb802b6247d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080113Z:11abbf29-0332-4590-9fe3-cfb802b6247d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjI/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db2\",\r\n \"name\": \"db2\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"9a04e420-3202-476a-bbe1-e0565fee627b\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:00:10.707Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:10:48.147Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:01:14 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e6ae2923-32c2-4d14-bf09-a25a8e25bd6f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-correlation-request-id": [ + "0cc717d8-4c68-4813-800e-be0a09de7878" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080114Z:0cc717d8-4c68-4813-800e-be0a09de7878" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjM/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "750ed053-e8f5-4ced-9643-4700c7c181f4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:01:19.536+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:01:18 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3/operationResults/3435259c-99d8-4b2e-ba46-221a4c25714f?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "3435259c-99d8-4b2e-ba46-221a4c25714f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3/azureAsyncOperation/3435259c-99d8-4b2e-ba46-221a4c25714f?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "c961ce60-50d0-45ca-894e-344052791097" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080119Z:c961ce60-50d0-45ca-894e-344052791097" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3/azureAsyncOperation/3435259c-99d8-4b2e-ba46-221a4c25714f?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjMvYXp1cmVBc3luY09wZXJhdGlvbi8zNDM1MjU5Yy05OWQ4LTRiMmUtYmE0Ni0yMjFhNGMyNTcxNGY/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"3435259c-99d8-4b2e-ba46-221a4c25714f\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:01:49 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4060bb36-2f7c-4738-a8df-bbdda8714eef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3/azureAsyncOperation/3435259c-99d8-4b2e-ba46-221a4c25714f?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "a0cd83fd-9577-4f58-9756-31669366bcf7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080150Z:a0cd83fd-9577-4f58-9756-31669366bcf7" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3/azureAsyncOperation/3435259c-99d8-4b2e-ba46-221a4c25714f?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjMvYXp1cmVBc3luY09wZXJhdGlvbi8zNDM1MjU5Yy05OWQ4LTRiMmUtYmE0Ni0yMjFhNGMyNTcxNGY/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"3435259c-99d8-4b2e-ba46-221a4c25714f\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:02:22 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "556d0045-04da-4323-9d46-1732821edf30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3/azureAsyncOperation/3435259c-99d8-4b2e-ba46-221a4c25714f?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-correlation-request-id": [ + "556f0225-b648-4bdf-be5f-31daa67bbea8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080222Z:556f0225-b648-4bdf-be5f-31daa67bbea8" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjM/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db3\",\r\n \"name\": \"db3\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"23c8f704-5fd0-4bc8-9e98-9bbaa61e60c7\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:01:19.85Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:12:06.523Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:02:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "43f7e114-a79d-4f01-9c65-3dc9e8c50a84" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-correlation-request-id": [ + "4d8af2a3-3062-4b1a-b5d9-07cc58a58f59" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080224Z:4d8af2a3-3062-4b1a-b5d9-07cc58a58f59" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "45577c53-7c56-4f95-aaab-5afbcf4cbc4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:02:29.846+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:02:28 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4/operationResults/408cb62b-f6ad-4a1b-bb7c-8ac806547522?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "408cb62b-f6ad-4a1b-bb7c-8ac806547522" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4/azureAsyncOperation/408cb62b-f6ad-4a1b-bb7c-8ac806547522?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "7bfbb912-1ecc-416a-b2ad-033ece4331ac" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080228Z:7bfbb912-1ecc-416a-b2ad-033ece4331ac" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4/azureAsyncOperation/408cb62b-f6ad-4a1b-bb7c-8ac806547522?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjQvYXp1cmVBc3luY09wZXJhdGlvbi80MDhjYjYyYi1mNmFkLTRhMWItYmI3Yy04YWM4MDY1NDc1MjI/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"408cb62b-f6ad-4a1b-bb7c-8ac806547522\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:02:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f723ea61-d8f6-4354-a84c-a8d9040b5d76" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4/azureAsyncOperation/408cb62b-f6ad-4a1b-bb7c-8ac806547522?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14936" + ], + "x-ms-correlation-request-id": [ + "ed37eba9-87ee-481f-a6f6-8fab387f11c0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080300Z:ed37eba9-87ee-481f-a6f6-8fab387f11c0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4/azureAsyncOperation/408cb62b-f6ad-4a1b-bb7c-8ac806547522?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjQvYXp1cmVBc3luY09wZXJhdGlvbi80MDhjYjYyYi1mNmFkLTRhMWItYmI3Yy04YWM4MDY1NDc1MjI/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"408cb62b-f6ad-4a1b-bb7c-8ac806547522\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:03:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7612110f-23a8-4b9b-938b-eafe006d2324" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4/azureAsyncOperation/408cb62b-f6ad-4a1b-bb7c-8ac806547522?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14933" + ], + "x-ms-correlation-request-id": [ + "87a63c20-6ed4-4646-bbbc-43e40d058b39" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080331Z:87a63c20-6ed4-4646-bbbc-43e40d058b39" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db4\",\r\n \"name\": \"db4\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"7a83c683-507a-41d3-b115-15662883aa18\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:02:30.097Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:13:06.4Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:03:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "85acf75a-faf3-4347-b74d-7c62a8f635a5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14932" + ], + "x-ms-correlation-request-id": [ + "6c6de409-8a89-48f6-9a2f-ec077a9d5373" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080333Z:6c6de409-8a89-48f6-9a2f-ec077a9d5373" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjU/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "7569e3b7-c385-4e6f-9933-590fd355c649" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:03:39.488+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:03:37 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5/operationResults/df095356-2a2a-4877-8dfc-cc16efe553d7?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "df095356-2a2a-4877-8dfc-cc16efe553d7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5/azureAsyncOperation/df095356-2a2a-4877-8dfc-cc16efe553d7?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-correlation-request-id": [ + "931f23fb-bd71-490b-a8f6-5f34a92c2288" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080337Z:931f23fb-bd71-490b-a8f6-5f34a92c2288" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5/azureAsyncOperation/df095356-2a2a-4877-8dfc-cc16efe553d7?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjUvYXp1cmVBc3luY09wZXJhdGlvbi9kZjA5NTM1Ni0yYTJhLTQ4NzctOGRmYy1jYzE2ZWZlNTUzZDc/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"df095356-2a2a-4877-8dfc-cc16efe553d7\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:04:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b3e6c6a5-88b7-432a-bc36-cd84ffd8cb73" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5/azureAsyncOperation/df095356-2a2a-4877-8dfc-cc16efe553d7?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14930" + ], + "x-ms-correlation-request-id": [ + "a90d728a-4ff9-4f9a-9b38-464660fcbc8d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080409Z:a90d728a-4ff9-4f9a-9b38-464660fcbc8d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5/azureAsyncOperation/df095356-2a2a-4877-8dfc-cc16efe553d7?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjUvYXp1cmVBc3luY09wZXJhdGlvbi9kZjA5NTM1Ni0yYTJhLTQ4NzctOGRmYy1jYzE2ZWZlNTUzZDc/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"df095356-2a2a-4877-8dfc-cc16efe553d7\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:04:41 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b54e0e85-7115-488c-9476-a1f8a0f930be" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5/azureAsyncOperation/df095356-2a2a-4877-8dfc-cc16efe553d7?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14928" + ], + "x-ms-correlation-request-id": [ + "03df9484-c022-4ee6-82f0-dd744d3fcb8c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080441Z:03df9484-c022-4ee6-82f0-dd744d3fcb8c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjU/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db5\",\r\n \"name\": \"db5\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"0012411b-f09d-4a2a-8835-3d88c1a9c3e9\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:03:39.77Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:14:30.35Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:04:42 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d18894aa-39b9-4d93-b69e-bac8101726ed" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "86299af2-1856-41c9-b31a-ee261ae6e3a1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080443Z:86299af2-1856-41c9-b31a-ee261ae6e3a1" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjY/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "fc62bda2-12cf-41c2-a81f-fcac51775f95" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:04:49.398+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:04:47 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6/operationResults/7fd2fb2e-4edb-4c6f-833f-911fc76857c6?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7fd2fb2e-4edb-4c6f-833f-911fc76857c6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6/azureAsyncOperation/7fd2fb2e-4edb-4c6f-833f-911fc76857c6?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-correlation-request-id": [ + "1f28c98b-edef-4819-8ef8-27bf49d725e4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080447Z:1f28c98b-edef-4819-8ef8-27bf49d725e4" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6/azureAsyncOperation/7fd2fb2e-4edb-4c6f-833f-911fc76857c6?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjYvYXp1cmVBc3luY09wZXJhdGlvbi83ZmQyZmIyZS00ZWRiLTRjNmYtODMzZi05MTFmYzc2ODU3YzY/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"7fd2fb2e-4edb-4c6f-833f-911fc76857c6\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:05:18 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ae6b8e73-ae7b-4451-8d6f-b3ecc82fa71d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6/azureAsyncOperation/7fd2fb2e-4edb-4c6f-833f-911fc76857c6?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14925" + ], + "x-ms-correlation-request-id": [ + "ff84c2b0-edf9-43eb-954a-93f6dc162881" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080519Z:ff84c2b0-edf9-43eb-954a-93f6dc162881" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6/azureAsyncOperation/7fd2fb2e-4edb-4c6f-833f-911fc76857c6?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjYvYXp1cmVBc3luY09wZXJhdGlvbi83ZmQyZmIyZS00ZWRiLTRjNmYtODMzZi05MTFmYzc2ODU3YzY/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"7fd2fb2e-4edb-4c6f-833f-911fc76857c6\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:05:50 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "483f5b2f-23dc-4010-bd8c-6dc41e504bb0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6/azureAsyncOperation/7fd2fb2e-4edb-4c6f-833f-911fc76857c6?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14924" + ], + "x-ms-correlation-request-id": [ + "3c572a97-28e7-4397-8df8-a59f14a0dc06" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080550Z:3c572a97-28e7-4397-8df8-a59f14a0dc06" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjY/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db6\",\r\n \"name\": \"db6\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"db1a6e1b-4e96-48a6-8658-3e5ed37635eb\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:04:49.617Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:15:35.387Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:05:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b12c7dfd-bb11-4db7-b91e-8857ce8ebd97" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14923" + ], + "x-ms-correlation-request-id": [ + "9c9d04d8-b536-44e9-b3fb-5d29ebc00770" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080552Z:9c9d04d8-b536-44e9-b3fb-5d29ebc00770" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjc/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "fd31c664-114c-405a-9508-71da3dd93f0a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:05:57.471+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:05:56 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7/operationResults/35f51587-0b3a-407a-8594-42e63c0feded?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "35f51587-0b3a-407a-8594-42e63c0feded" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7/azureAsyncOperation/35f51587-0b3a-407a-8594-42e63c0feded?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-correlation-request-id": [ + "b1ba5afb-75d9-467e-8a8c-3c51a633159a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080557Z:b1ba5afb-75d9-467e-8a8c-3c51a633159a" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7/azureAsyncOperation/35f51587-0b3a-407a-8594-42e63c0feded?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjcvYXp1cmVBc3luY09wZXJhdGlvbi8zNWY1MTU4Ny0wYjNhLTQwN2EtODU5NC00MmU2M2MwZmVkZWQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"35f51587-0b3a-407a-8594-42e63c0feded\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:06:28 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0ca4fdfb-cdfa-4936-bb37-0be9b9fe0d0b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7/azureAsyncOperation/35f51587-0b3a-407a-8594-42e63c0feded?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14920" + ], + "x-ms-correlation-request-id": [ + "9d1ea693-96e2-4ce2-b6e6-6bf7afc8c06b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080628Z:9d1ea693-96e2-4ce2-b6e6-6bf7afc8c06b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7/azureAsyncOperation/35f51587-0b3a-407a-8594-42e63c0feded?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjcvYXp1cmVBc3luY09wZXJhdGlvbi8zNWY1MTU4Ny0wYjNhLTQwN2EtODU5NC00MmU2M2MwZmVkZWQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"35f51587-0b3a-407a-8594-42e63c0feded\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:06:59 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e54863de-e012-4fb2-8cc1-f7e320b47cd9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7/azureAsyncOperation/35f51587-0b3a-407a-8594-42e63c0feded?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14919" + ], + "x-ms-correlation-request-id": [ + "231505d8-6290-4aaf-9081-1b12fd8630b5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080700Z:231505d8-6290-4aaf-9081-1b12fd8630b5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjc/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db7\",\r\n \"name\": \"db7\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"4a2a009b-d543-4352-be0f-2483f03c39c9\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:05:57.72Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:16:29.643Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:07:00 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6fe4bccf-f7c2-4bd1-bcb3-7d708d284e32" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14917" + ], + "x-ms-correlation-request-id": [ + "901f5308-5ad4-4f1d-b39e-3bd09487a807" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080701Z:901f5308-5ad4-4f1d-b39e-3bd09487a807" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjg/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "e96c04d6-788b-479f-987c-00eada1ba5c2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:07:07.978+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:07:05 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8/operationResults/9ab57d83-15cc-4b10-95d9-10bb5f175bb0?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9ab57d83-15cc-4b10-95d9-10bb5f175bb0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8/azureAsyncOperation/9ab57d83-15cc-4b10-95d9-10bb5f175bb0?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-correlation-request-id": [ + "0f0cfb7c-b48a-427f-8d3c-402a2c5b8cf2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080706Z:0f0cfb7c-b48a-427f-8d3c-402a2c5b8cf2" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8/azureAsyncOperation/9ab57d83-15cc-4b10-95d9-10bb5f175bb0?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjgvYXp1cmVBc3luY09wZXJhdGlvbi85YWI1N2Q4My0xNWNjLTRiMTAtOTVkOS0xMGJiNWYxNzViYjA/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"9ab57d83-15cc-4b10-95d9-10bb5f175bb0\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:07:37 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f371023b-39a3-4ebf-92e0-558975775482" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8/azureAsyncOperation/9ab57d83-15cc-4b10-95d9-10bb5f175bb0?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14912" + ], + "x-ms-correlation-request-id": [ + "9c172e41-7730-42b4-afca-b92dd8b0c05e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080738Z:9c172e41-7730-42b4-afca-b92dd8b0c05e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8/azureAsyncOperation/9ab57d83-15cc-4b10-95d9-10bb5f175bb0?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjgvYXp1cmVBc3luY09wZXJhdGlvbi85YWI1N2Q4My0xNWNjLTRiMTAtOTVkOS0xMGJiNWYxNzViYjA/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"9ab57d83-15cc-4b10-95d9-10bb5f175bb0\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:08:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0af35954-1da0-4f29-9358-f1c26d36eeac" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8/azureAsyncOperation/9ab57d83-15cc-4b10-95d9-10bb5f175bb0?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14910" + ], + "x-ms-correlation-request-id": [ + "0c07ab33-8ea3-4683-8469-63e315c601b2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080809Z:0c07ab33-8ea3-4683-8469-63e315c601b2" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjg/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db8\",\r\n \"name\": \"db8\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"c8fca85d-d878-40e6-a160-cf7e35ccd4c4\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:07:08.243Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:17:46.177Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:08:10 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9be9307c-0afd-4350-8807-35c286c69a48" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14909" + ], + "x-ms-correlation-request-id": [ + "ff342477-1e77-414f-9a2d-4cd173c24af5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080811Z:ff342477-1e77-414f-9a2d-4cd173c24af5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjk/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "6d3f3aed-d801-48d7-be8d-48242ea6176c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:08:15.724+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:08:14 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9/operationResults/493ade85-b0cd-4e14-8876-a61c1bb364ae?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "493ade85-b0cd-4e14-8876-a61c1bb364ae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9/azureAsyncOperation/493ade85-b0cd-4e14-8876-a61c1bb364ae?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-correlation-request-id": [ + "f2e121d8-3145-4572-a33d-b069a84e4a7a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080815Z:f2e121d8-3145-4572-a33d-b069a84e4a7a" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9/azureAsyncOperation/493ade85-b0cd-4e14-8876-a61c1bb364ae?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjkvYXp1cmVBc3luY09wZXJhdGlvbi80OTNhZGU4NS1iMGNkLTRlMTQtODg3Ni1hNjFjMWJiMzY0YWU/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"493ade85-b0cd-4e14-8876-a61c1bb364ae\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:08:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c673a87b-c015-4807-94c5-d617e19a2d53" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9/azureAsyncOperation/493ade85-b0cd-4e14-8876-a61c1bb364ae?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14908" + ], + "x-ms-correlation-request-id": [ + "f4e43f7c-28a9-4776-908f-20b502bc911c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080847Z:f4e43f7c-28a9-4776-908f-20b502bc911c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9/azureAsyncOperation/493ade85-b0cd-4e14-8876-a61c1bb364ae?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjkvYXp1cmVBc3luY09wZXJhdGlvbi80OTNhZGU4NS1iMGNkLTRlMTQtODg3Ni1hNjFjMWJiMzY0YWU/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"493ade85-b0cd-4e14-8876-a61c1bb364ae\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:09:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c0ba3aeb-13b0-4253-970f-17ebbe10ea95" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9/azureAsyncOperation/493ade85-b0cd-4e14-8876-a61c1bb364ae?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14907" + ], + "x-ms-correlation-request-id": [ + "9b0eaa6f-c721-4162-9ce2-22bc9c871de0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080920Z:9b0eaa6f-c721-4162-9ce2-22bc9c871de0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjk/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db9\",\r\n \"name\": \"db9\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"3f0098bd-e552-4ba5-bc56-686b3e7544c4\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:08:15.99Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:18:56.833Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:09:21 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "209020a3-7540-4d95-b5e4-591bda936eb2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14906" + ], + "x-ms-correlation-request-id": [ + "67b4e450-be2e-49c1-95cd-22726dcfd896" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080922Z:67b4e450-be2e-49c1-95cd-22726dcfd896" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjEwP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "3a0dfd8c-76a4-4e92-b563-e13e42238394" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:09:26.59+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:09:25 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10/operationResults/e33d6643-c745-4730-b6a5-342bace46111?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e33d6643-c745-4730-b6a5-342bace46111" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10/azureAsyncOperation/e33d6643-c745-4730-b6a5-342bace46111?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-correlation-request-id": [ + "a251c200-52ff-4e95-a76d-84bcb82ff90a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080926Z:a251c200-52ff-4e95-a76d-84bcb82ff90a" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10/azureAsyncOperation/e33d6643-c745-4730-b6a5-342bace46111?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjEwL2F6dXJlQXN5bmNPcGVyYXRpb24vZTMzZDY2NDMtYzc0NS00NzMwLWI2YTUtMzQyYmFjZTQ2MTExP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"e33d6643-c745-4730-b6a5-342bace46111\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:09:58 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bb921342-6549-46a2-8a8f-855a189cf474" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10/azureAsyncOperation/e33d6643-c745-4730-b6a5-342bace46111?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14903" + ], + "x-ms-correlation-request-id": [ + "7e6cab72-d542-42d4-bec2-d60f32c456f5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T080958Z:7e6cab72-d542-42d4-bec2-d60f32c456f5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10/azureAsyncOperation/e33d6643-c745-4730-b6a5-342bace46111?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjEwL2F6dXJlQXN5bmNPcGVyYXRpb24vZTMzZDY2NDMtYzc0NS00NzMwLWI2YTUtMzQyYmFjZTQ2MTExP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"e33d6643-c745-4730-b6a5-342bace46111\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:10:29 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e33a19e2-857d-41d7-b30b-6ce57dd25cce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10/azureAsyncOperation/e33d6643-c745-4730-b6a5-342bace46111?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14902" + ], + "x-ms-correlation-request-id": [ + "bafbc83e-8849-49d7-aaaa-83c33561b446" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081029Z:bafbc83e-8849-49d7-aaaa-83c33561b446" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjEwP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db10\",\r\n \"name\": \"db10\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"9b02c097-ea72-41d2-8f17-28a3b765614c\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:09:26.87Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:20:09.793Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:10:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0528f0eb-622f-48c3-8bbb-4a8f97f9705b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14901" + ], + "x-ms-correlation-request-id": [ + "3a290a05-9d45-4b2e-a1f6-d2fa85c25bf4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081031Z:3a290a05-9d45-4b2e-a1f6-d2fa85c25bf4" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjExP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "062823f2-c1df-40cf-91a5-055512aa07d1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-09T10:10:36.084+02:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:10:35 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11/operationResults/0389909c-9344-4269-811e-d193ff4b9d2d?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0389909c-9344-4269-811e-d193ff4b9d2d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11/azureAsyncOperation/0389909c-9344-4269-811e-d193ff4b9d2d?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1183" + ], + "x-ms-correlation-request-id": [ + "4b4ccd5b-2f04-48a9-8020-3a09a681575e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081035Z:4b4ccd5b-2f04-48a9-8020-3a09a681575e" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11/azureAsyncOperation/0389909c-9344-4269-811e-d193ff4b9d2d?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjExL2F6dXJlQXN5bmNPcGVyYXRpb24vMDM4OTkwOWMtOTM0NC00MjY5LTgxMWUtZDE5M2ZmNGI5ZDJkP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"0389909c-9344-4269-811e-d193ff4b9d2d\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:11:06 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "710c9e44-d21a-4211-a0a0-c10cef450486" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11/azureAsyncOperation/0389909c-9344-4269-811e-d193ff4b9d2d?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14898" + ], + "x-ms-correlation-request-id": [ + "069488fd-44a4-4cd1-b2df-234101a74095" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081107Z:069488fd-44a4-4cd1-b2df-234101a74095" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11/azureAsyncOperation/0389909c-9344-4269-811e-d193ff4b9d2d?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjExL2F6dXJlQXN5bmNPcGVyYXRpb24vMDM4OTkwOWMtOTM0NC00MjY5LTgxMWUtZDE5M2ZmNGI5ZDJkP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"0389909c-9344-4269-811e-d193ff4b9d2d\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:11:38 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d570d765-4bd0-4b25-b9aa-eefd508314a9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11/azureAsyncOperation/0389909c-9344-4269-811e-d193ff4b9d2d?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14896" + ], + "x-ms-correlation-request-id": [ + "05e09e1b-2b13-4d16-acc8-a61b35d60d3b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081139Z:05e09e1b-2b13-4d16-acc8-a61b35d60d3b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL2RhdGFiYXNlcy9kYjExP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/databases/db11\",\r\n \"name\": \"db11\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"d815cfd1-cec4-4a1c-a9b0-333701b6e1df\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-09T08:10:36.397Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-09T08:21:24.21Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:11:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "786554ea-0c93-4fce-a632-9ee2a92f1c54" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14895" + ], + "x-ms-correlation-request-id": [ + "524cbe0d-1f40-4f2d-8e0a-e04d12af8ec8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081140Z:524cbe0d-1f40-4f2d-8e0a-e04d12af8ec8" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e301b3cc-bb23-43f1-95bc-8fce73b8d3cd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/securityAlertPolicies\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"New\",\r\n \"disabledAlerts\": \"Preview\",\r\n \"emailAddresses\": \"\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:11:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ddfae4c2-5bda-4e4d-9a1c-32888f491846" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14894" + ], + "x-ms-correlation-request-id": [ + "1bd7b5dd-d102-4b2d-aefa-aca8cc0c6ef8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081142Z:1bd7b5dd-d102-4b2d-aefa-aca8cc0c6ef8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "05f0be97-5162-4232-9b38-f44e105c29c2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/securityAlertPolicies\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Sql_Injection\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com;testServerPolicy@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 3\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:12:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5d777b11-5097-4cd3-91a9-3205d219bf05" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14890" + ], + "x-ms-correlation-request-id": [ + "19ab5df5-e17e-4564-ba81-279be0afbb84" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081219Z:19ab5df5-e17e-4564-ba81-279be0afbb84" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/default?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Sql_Injection\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com;testServerPolicy@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 3\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "432" + ], + "x-ms-client-request-id": [ + "75c26c3b-5d07-4c22-b973-a90b6a8a7fc9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:11:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/default/operationResults/f24bdfd9-89f6-4dda-a623-be2b2a48a0d4?api-version=2015-05-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "82e7ff35-f1e8-42c9-983c-a2d976c98f2e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1182" + ], + "x-ms-correlation-request-id": [ + "315807c9-45a1-4c12-9ff1-0212caf5d3df" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081144Z:315807c9-45a1-4c12-9ff1-0212caf5d3df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/default/operationResults/f24bdfd9-89f6-4dda-a623-be2b2a48a0d4?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0L29wZXJhdGlvblJlc3VsdHMvZjI0YmRmZDktODlmNi00ZGRhLWE2MjMtYmUyYjJhNDhhMGQ0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/Default/operationResults/f24bdfd9-89f6-4dda-a623-be2b2a48a0d4\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/securityAlertPolicies\",\r\n \"kind\": \"\",\r\n \"properties\": {\r\n \"operationId\": \"f24bdfd9-89f6-4dda-a623-be2b2a48a0d4\",\r\n \"state\": \"Succeeded\",\r\n \"startTime\": \"03/09/2017 08:11:46\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:12:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9496dd5-fc03-405c-8a45-bcc34c9adedc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14892" + ], + "x-ms-correlation-request-id": [ + "de97c261-ef78-4a94-b921-1a91509d0705" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081216Z:de97c261-ef78-4a94-b921-1a91509d0705" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/server-security-alert-test-1015/providers/Microsoft.Sql/servers/server-security-alert-test-6153/securityAlertPolicies/default/operationResults/?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MTUzL3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0L29wZXJhdGlvblJlc3VsdHMvP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9434492-7633-4755-b839-e5b532dd5416" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:12:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6cb2ff96-1bd5-4ebb-9479-e4028aaf8142" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14891" + ], + "x-ms-correlation-request-id": [ + "86f93f9e-d63f-4fe6-924a-21471158d5f7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081217Z:86f93f9e-d63f-4fe6-924a-21471158d5f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/server-security-alert-test-1015?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTEwMTU/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4baf0c92-8149-47a9-bd5d-1eea4523b5f6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:12:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1181" + ], + "x-ms-request-id": [ + "df5f7413-02ae-4da5-bc72-674602cb9dfb" + ], + "x-ms-correlation-request-id": [ + "df5f7413-02ae-4da5-bc72-674602cb9dfb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081223Z:df5f7413-02ae-4da5-bc72-674602cb9dfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV3TVRVdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:12:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14889" + ], + "x-ms-request-id": [ + "69b07917-e53e-45c7-940b-fdbf9e4e77c9" + ], + "x-ms-correlation-request-id": [ + "69b07917-e53e-45c7-940b-fdbf9e4e77c9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081254Z:69b07917-e53e-45c7-940b-fdbf9e4e77c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV3TVRVdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:13:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14886" + ], + "x-ms-request-id": [ + "f16c81f3-e279-4f7f-9a40-a63bb161b85a" + ], + "x-ms-correlation-request-id": [ + "f16c81f3-e279-4f7f-9a40-a63bb161b85a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081325Z:f16c81f3-e279-4f7f-9a40-a63bb161b85a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV3TVRVdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:13:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14883" + ], + "x-ms-request-id": [ + "13841dda-ea30-4c96-86d3-2eb45d182fe2" + ], + "x-ms-correlation-request-id": [ + "13841dda-ea30-4c96-86d3-2eb45d182fe2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081355Z:13841dda-ea30-4c96-86d3-2eb45d182fe2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDEwMTUtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV3TVRVdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Mar 2017 08:14:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14881" + ], + "x-ms-request-id": [ + "7dfe3ad6-332d-47ce-9354-cffa3bf3a537" + ], + "x-ms-correlation-request-id": [ + "7dfe3ad6-332d-47ce-9354-cffa3bf3a537" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20170309T081426Z:7dfe3ad6-332d-47ce-9354-cffa3bf3a537" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "server-security-alert-test-1015" + ], + "RunTestInNewV12Server": [ + "server-security-alert-test-6153" + ] + }, + "Variables": { + "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ThreatDetectionTest/TestServerSecurityAlert.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ThreatDetectionTest/TestServerSecurityAlert.json new file mode 100644 index 000000000000..05ee46697485 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ThreatDetectionTest/TestServerSecurityAlert.json @@ -0,0 +1,1093 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-security-alert-test-2054?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"server-security-alert-test-2054\": \"2017-03-11 01:54:43Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "114" + ], + "x-ms-client-request-id": [ + "86407fbf-9d71-434b-9c70-1fbf46da6a6d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054\",\r\n \"name\": \"server-security-alert-test-2054\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"server-security-alert-test-2054\": \"2017-03-11 01:54:43Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "284" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:54:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "f4c43119-b30f-49c1-8fa9-52aa711f3fa4" + ], + "x-ms-correlation-request-id": [ + "f4c43119-b30f-49c1-8fa9-52aa711f3fa4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015446Z:f4c43119-b30f-49c1-8fa9-52aa711f3fa4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "da4e6457-d71a-416e-9cab-c4f505b5c400" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759\",\r\n \"name\": \"server-security-alert-test-9759\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"server-security-alert-test-9759.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": [ + "584" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:55:21 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5a05d52e-b82f-481c-8ee4-ba3ddede732d" + ], + "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": [ + "77e6e59e-1b5b-49d4-a650-58106d1a16d5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015522Z:77e6e59e-1b5b-49d4-a650-58106d1a16d5" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NjY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "6a516583-d97c-4103-99ec-e1cfd66948fa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T17:55:25.279-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:55:23 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/operationResults/070d9cdc-c530-4e91-b29e-1639098a9ff8?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "070d9cdc-c530-4e91-b29e-1639098a9ff8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/azureAsyncOperation/070d9cdc-c530-4e91-b29e-1639098a9ff8?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "04b6471e-c4f9-4030-8af2-38981a658441" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015524Z:04b6471e-c4f9-4030-8af2-38981a658441" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02NjM0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "8ca4f1e7-dcd3-465c-82f9-8795631cd816" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T17:55:26.106-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:55:25 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634/operationResults/5b7e2ae2-16ea-4aa1-85c7-1480ea72934a?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5b7e2ae2-16ea-4aa1-85c7-1480ea72934a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634/azureAsyncOperation/5b7e2ae2-16ea-4aa1-85c7-1480ea72934a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "ba2633dd-fb92-459b-b9e9-f45b95aa3a08" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015526Z:ba2633dd-fb92-459b-b9e9-f45b95aa3a08" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/azureAsyncOperation/070d9cdc-c530-4e91-b29e-1639098a9ff8?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NjY2L2F6dXJlQXN5bmNPcGVyYXRpb24vMDcwZDljZGMtYzUzMC00ZTkxLWIyOWUtMTYzOTA5OGE5ZmY4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"070d9cdc-c530-4e91-b29e-1639098a9ff8\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:55:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "23a33912-044f-4917-82a1-564fd6d7895b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/azureAsyncOperation/070d9cdc-c530-4e91-b29e-1639098a9ff8?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "4c83de3d-b760-42b6-8e9a-01a5c7636f06" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015555Z:4c83de3d-b760-42b6-8e9a-01a5c7636f06" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/azureAsyncOperation/070d9cdc-c530-4e91-b29e-1639098a9ff8?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NjY2L2F6dXJlQXN5bmNPcGVyYXRpb24vMDcwZDljZGMtYzUzMC00ZTkxLWIyOWUtMTYzOTA5OGE5ZmY4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"070d9cdc-c530-4e91-b29e-1639098a9ff8\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:26 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bb87305e-eb6d-4300-8c1f-40355dafad52" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/azureAsyncOperation/070d9cdc-c530-4e91-b29e-1639098a9ff8?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "1b722524-1d30-4dc3-b5c1-5efdcbd3039a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015626Z:1b722524-1d30-4dc3-b5c1-5efdcbd3039a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634/azureAsyncOperation/5b7e2ae2-16ea-4aa1-85c7-1480ea72934a?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02NjM0L2F6dXJlQXN5bmNPcGVyYXRpb24vNWI3ZTJhZTItMTZlYS00YWExLTg1YzctMTQ4MGVhNzI5MzRhP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"5b7e2ae2-16ea-4aa1-85c7-1480ea72934a\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:55:56 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d4070778-218f-4c5f-909b-ea23f2eef3f2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634/azureAsyncOperation/5b7e2ae2-16ea-4aa1-85c7-1480ea72934a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "4fd27cde-7277-4f92-9db3-50cbe93828d5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015557Z:4fd27cde-7277-4f92-9db3-50cbe93828d5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634/azureAsyncOperation/5b7e2ae2-16ea-4aa1-85c7-1480ea72934a?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02NjM0L2F6dXJlQXN5bmNPcGVyYXRpb24vNWI3ZTJhZTItMTZlYS00YWExLTg1YzctMTQ4MGVhNzI5MzRhP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"5b7e2ae2-16ea-4aa1-85c7-1480ea72934a\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:28 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "247ab13c-04e4-4ada-904c-c106c5d1b0ef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634/azureAsyncOperation/5b7e2ae2-16ea-4aa1-85c7-1480ea72934a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "992459a0-e7d2-4c19-b996-bdbd678c3e8b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015628Z:992459a0-e7d2-4c19-b996-bdbd678c3e8b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NjY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666\",\r\n \"name\": \"server-security-alert-test-9666\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"1dcb7dc4-02b3-4b9f-9b4a-4f55cce920a4\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T01:55:25.56Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T02:06:20.97Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:27 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5deb2b23-4129-4d5a-8e34-54b509cfb742" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "c4421798-683f-42c2-ba20-6469293b2645" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015627Z:c4421798-683f-42c2-ba20-6469293b2645" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02NjM0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-6634\",\r\n \"name\": \"server-security-alert-test-6634\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"17da9de9-4a97-4156-a530-34499cb0d672\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T01:55:26.387Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T02:06:05.417Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:28 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "514e4507-4719-4c45-8b64-1188c1319a15" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "a0d51b8a-fe03-43ab-8786-8428bea02dfa" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015629Z:a0d51b8a-fe03-43ab-8786-8428bea02dfa" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NjY2L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53b5546d-af79-4892-a805-d1449f7be5ff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Enabled\",\r\n \"state\": \"New\",\r\n \"disabledAlerts\": \"Preview\",\r\n \"emailAddresses\": \"\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "db3c256f-1235-4774-832e-81e7eb67e048" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "265d63ef-6bdd-49aa-be27-38f742dbcf0a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015631Z:265d63ef-6bdd-49aa-be27-38f742dbcf0a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NjY2L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "201c825d-0a42-4e81-9c54-8c77e904caaa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Disabled\",\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c7b7b5e-c319-49f6-a443-4e604812b92c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "62c9379f-e719-4157-8e07-e0e36eb39a92" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015634Z:62c9379f-e719-4157-8e07-e0e36eb39a92" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NzU5L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05NjY2L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5,\r\n \"useServerDefault\": \"Enabled\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "453" + ], + "x-ms-client-request-id": [ + "69c1f1db-db5c-4cd4-affc-d7ec70340c1e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-2054/providers/Microsoft.Sql/servers/server-security-alert-test-9759/databases/server-security-alert-test-9666/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": null,\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Enabled\",\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9babd642-369a-4f48-b835-77567b2a25fb" + ], + "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": [ + "589f0162-b876-44ba-b488-eef2260a8431" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015633Z:589f0162-b876-44ba-b488-eef2260a8431" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-security-alert-test-2054?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTIwNTQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0635e1aa-09c9-4966-9015-5e901da1bc93" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:56:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "ce26ef80-475a-44ea-b821-90b6f0d524b1" + ], + "x-ms-correlation-request-id": [ + "ce26ef80-475a-44ea-b821-90b6f0d524b1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015638Z:ce26ef80-475a-44ea-b821-90b6f0d524b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREl3TlRRdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:57:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "5db0af42-bf72-4208-b948-c8132a4c8f7c" + ], + "x-ms-correlation-request-id": [ + "5db0af42-bf72-4208-b948-c8132a4c8f7c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015709Z:5db0af42-bf72-4208-b948-c8132a4c8f7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREl3TlRRdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:57:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "19bbf245-9791-4c4e-baa0-10c7869333c3" + ], + "x-ms-correlation-request-id": [ + "19bbf245-9791-4c4e-baa0-10c7869333c3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015739Z:19bbf245-9791-4c4e-baa0-10c7869333c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREl3TlRRdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:58:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "0e6b118f-06fa-46c8-9129-6ef40548a3b2" + ], + "x-ms-correlation-request-id": [ + "0e6b118f-06fa-46c8-9129-6ef40548a3b2" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015809Z:0e6b118f-06fa-46c8-9129-6ef40548a3b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDIwNTQtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREl3TlRRdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 01:58:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "ab6fe1cb-95d5-44b2-9e6a-dbebd52fd63c" + ], + "x-ms-correlation-request-id": [ + "ab6fe1cb-95d5-44b2-9e6a-dbebd52fd63c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T015840Z:ab6fe1cb-95d5-44b2-9e6a-dbebd52fd63c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "server-security-alert-test-2054" + ], + "RunTestInNewV12Server": [ + "server-security-alert-test-9759" + ], + "CreateDatabasesAsync": [ + "server-security-alert-test-9666", + "server-security-alert-test-6634" + ] + }, + "Variables": { + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ThreatDetectionTest/TestThreatDetection.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ThreatDetectionTest/TestThreatDetection.json new file mode 100644 index 000000000000..7fa45a7cecfc --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ThreatDetectionTest/TestThreatDetection.json @@ -0,0 +1,1035 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-security-alert-test-1140?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"server-security-alert-test-1140\": \"2017-03-11 02:08:27Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "114" + ], + "x-ms-client-request-id": [ + "c20ff080-38f6-460b-8a81-23fcf89145b7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140\",\r\n \"name\": \"server-security-alert-test-1140\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"server-security-alert-test-1140\": \"2017-03-11 02:08:27Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "284" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:08:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "9dd3441b-bf2b-45d8-8556-096aec5fd6f6" + ], + "x-ms-correlation-request-id": [ + "9dd3441b-bf2b-45d8-8556-096aec5fd6f6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020829Z:9dd3441b-bf2b-45d8-8556-096aec5fd6f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "216" + ], + "x-ms-client-request-id": [ + "f0c9c807-1252-4982-83d0-cd22003eb1e1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156\",\r\n \"name\": \"server-security-alert-test-9156\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"server-security-alert-test-9156.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": [ + "584" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:09:00 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a518349e-21eb-40bb-abb8-1c97fc20a0b4" + ], + "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": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "5d84047e-3aa9-4417-adb3-7f9840fbc9e7" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020901Z:5d84047e-3aa9-4417-adb3-7f9840fbc9e7" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MjU4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "5f0378ab-6dfd-459b-9838-8d825b9988f5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T18:09:01.502-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:09:02 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258/operationResults/7de7513f-64e3-46dd-b53b-ab5306a4358a?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7de7513f-64e3-46dd-b53b-ab5306a4358a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258/azureAsyncOperation/7de7513f-64e3-46dd-b53b-ab5306a4358a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "b5f58a2f-88d8-4481-a39d-d3a48b457ff9" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020903Z:b5f58a2f-88d8-4481-a39d-d3a48b457ff9" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC03NzU4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "6572a181-ab7e-4a07-abee-dd8c8349354e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2017-03-10T18:09:04.203-08:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:09:03 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/operationResults/30d5b1f7-e929-489b-972f-bec46657868a?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "30d5b1f7-e929-489b-972f-bec46657868a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/azureAsyncOperation/30d5b1f7-e929-489b-972f-bec46657868a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "c30fcc2e-c678-4205-aa6e-6ffe3cd2fdcc" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020904Z:c30fcc2e-c678-4205-aa6e-6ffe3cd2fdcc" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258/azureAsyncOperation/7de7513f-64e3-46dd-b53b-ab5306a4358a?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MjU4L2F6dXJlQXN5bmNPcGVyYXRpb24vN2RlNzUxM2YtNjRlMy00NmRkLWI1M2ItYWI1MzA2YTQzNThhP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"7de7513f-64e3-46dd-b53b-ab5306a4358a\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:09:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "44329c32-2089-491a-9b62-5723dc5e7030" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258/azureAsyncOperation/7de7513f-64e3-46dd-b53b-ab5306a4358a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "5328ad5c-a5d2-42ce-b6c0-46772670444f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020934Z:5328ad5c-a5d2-42ce-b6c0-46772670444f" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258/azureAsyncOperation/7de7513f-64e3-46dd-b53b-ab5306a4358a?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MjU4L2F6dXJlQXN5bmNPcGVyYXRpb24vN2RlNzUxM2YtNjRlMy00NmRkLWI1M2ItYWI1MzA2YTQzNThhP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"7de7513f-64e3-46dd-b53b-ab5306a4358a\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:10:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5eb88478-d325-41cf-a153-15f43c33f189" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258/azureAsyncOperation/7de7513f-64e3-46dd-b53b-ab5306a4358a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "7480a25f-5b0c-407c-85b5-af4ab31eb649" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021005Z:7480a25f-5b0c-407c-85b5-af4ab31eb649" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/azureAsyncOperation/30d5b1f7-e929-489b-972f-bec46657868a?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC03NzU4L2F6dXJlQXN5bmNPcGVyYXRpb24vMzBkNWIxZjctZTkyOS00ODliLTk3MmYtYmVjNDY2NTc4NjhhP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"30d5b1f7-e929-489b-972f-bec46657868a\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:09:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8fcdd679-a6fc-4958-a10d-7f6a178dfc5c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/azureAsyncOperation/30d5b1f7-e929-489b-972f-bec46657868a?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "cf448f70-20f0-429f-b66d-95487a66ffc2" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020935Z:cf448f70-20f0-429f-b66d-95487a66ffc2" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC03NzU4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758\",\r\n \"name\": \"server-security-alert-test-7758\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"7a5b9f87-1b2b-4c68-a09e-be1927106474\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T02:09:04.593Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T02:19:33.837Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:09:35 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c3dff05d-91ce-454f-8c19-a80fa19f7dc2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "30b32cac-acf3-4bf6-bc78-fb98f44b1c1e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T020936Z:30b32cac-acf3-4bf6-bc78-fb98f44b1c1e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC02MjU4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-6258\",\r\n \"name\": \"server-security-alert-test-6258\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"1fe232b7-6963-402f-8b09-33f7d345a6cf\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2017-03-11T02:09:01.753Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"Japan West\",\r\n \"earliestRestoreDate\": \"2017-03-11T02:19:38.78Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:10:05 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f902a372-d3e0-4bba-8fcf-22486ca7c1c7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "a333bf55-4e5e-47b1-9aaa-80a3490bbbca" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021006Z:a333bf55-4e5e-47b1-9aaa-80a3490bbbca" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC03NzU4L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a86b8c31-4915-4b6d-a8fc-9276e27c0d54" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Enabled\",\r\n \"state\": \"New\",\r\n \"disabledAlerts\": \"Preview\",\r\n \"emailAddresses\": \"\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:10:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f0ac4c8b-2e7e-4b92-b5b5-ac8e59474084" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "55dee61a-d04d-48d3-b28b-b55206732f24" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021007Z:55dee61a-d04d-48d3-b28b-b55206732f24" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC03NzU4L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4615717b-ff12-4066-9a44-b11ea4f157b7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": \"Japan East\",\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Disabled\",\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"\",\r\n \"retentionDays\": 5\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:10:11 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e1b144c-eb80-45a0-bee3-b0e00360f74b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "4002b56f-6271-4ea8-b8ed-9a2d2ea45002" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021012Z:4002b56f-6271-4ea8-b8ed-9a2d2ea45002" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC05MTU2L2RhdGFiYXNlcy9zZXJ2ZXItc2VjdXJpdHktYWxlcnQtdGVzdC03NzU4L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5,\r\n \"useServerDefault\": \"Disabled\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "454" + ], + "x-ms-client-request-id": [ + "ad76c084-2833-48f8-8544-3e1853d73074" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/server-security-alert-test-1140/providers/Microsoft.Sql/servers/server-security-alert-test-9156/databases/server-security-alert-test-7758/securityAlertPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/securityAlertPolicies\",\r\n \"location\": null,\r\n \"kind\": null,\r\n \"properties\": {\r\n \"useServerDefault\": \"Disabled\",\r\n \"state\": \"Disabled\",\r\n \"disabledAlerts\": \"Access_Anomaly; Usage_Anomaly\",\r\n \"emailAddresses\": \"testSecurityAlert@microsoft.com\",\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": \"https://MyAccount.blob.core.windows.net/\",\r\n \"storageAccountAccessKey\": \"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==\",\r\n \"retentionDays\": 5\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:10:10 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9d72123d-dd52-4791-ba9f-29778315decb" + ], + "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": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "50ae6860-f257-4034-82b4-09982511baef" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021010Z:50ae6860-f257-4034-82b4-09982511baef" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/server-security-alert-test-1140?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NlcnZlci1zZWN1cml0eS1hbGVydC10ZXN0LTExNDA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c4eea9bb-6668-451c-8ab4-45341cdfe20e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:10:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "d302919b-6f1f-4eee-94cd-2b2405cf482b" + ], + "x-ms-correlation-request-id": [ + "d302919b-6f1f-4eee-94cd-2b2405cf482b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021014Z:d302919b-6f1f-4eee-94cd-2b2405cf482b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV4TkRBdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:10:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "1c79c215-6ae3-4185-8c0d-d3f95dbd2228" + ], + "x-ms-correlation-request-id": [ + "1c79c215-6ae3-4185-8c0d-d3f95dbd2228" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021045Z:1c79c215-6ae3-4185-8c0d-d3f95dbd2228" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV4TkRBdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:11:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "cd5dc384-f5ea-499f-a522-fdb49231b5f6" + ], + "x-ms-correlation-request-id": [ + "cd5dc384-f5ea-499f-a522-fdb49231b5f6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021116Z:cd5dc384-f5ea-499f-a522-fdb49231b5f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV4TkRBdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:11:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "cb6ce977-314d-4538-9853-de9be4494cd4" + ], + "x-ms-correlation-request-id": [ + "cb6ce977-314d-4538-9853-de9be4494cd4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021146Z:cb6ce977-314d-4538-9853-de9be4494cd4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TRVJWRVI6MkRTRUNVUklUWToyREFMRVJUOjJEVEVTVDoyRDExNDAtSkFQQU5FQVNUIiwiam9iTG9jYXRpb24iOiJqYXBhbmVhc3QifQ?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUlZKV1JWSTZNa1JUUlVOVlVrbFVXVG95UkVGTVJWSlVPakpFVkVWVFZEb3lSREV4TkRBdFNrRlFRVTVGUVZOVUlpd2lhbTlpVEc5allYUnBiMjRpT2lKcVlYQmhibVZoYzNRaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25009.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Sat, 11 Mar 2017 02:12:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "c5a3740b-0708-421e-9edc-8ffcbb637f1a" + ], + "x-ms-correlation-request-id": [ + "c5a3740b-0708-421e-9edc-8ffcbb637f1a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170311T021216Z:c5a3740b-0708-421e-9edc-8ffcbb637f1a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "RunTestInNewResourceGroup": [ + "server-security-alert-test-1140" + ], + "RunTestInNewV12Server": [ + "server-security-alert-test-9156" + ], + "CreateDatabasesAsync": [ + "server-security-alert-test-7758", + "server-security-alert-test-6258" + ] + }, + "Variables": { + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/ThreatDetectionTest.cs b/src/ResourceManagement/SqlManagement/Sql.Tests/ThreatDetectionTest.cs new file mode 100644 index 000000000000..2c67926b895a --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/ThreatDetectionTest.cs @@ -0,0 +1,166 @@ +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using System; +using System.Linq; +using System.Threading.Tasks; +using Xunit; + +namespace Sql.Tests +{ + /// + /// Contains tests for the lifecycle of a Server security alert policy + /// + public class ThreatDetectionTest + { + [Fact] + public void TestThreatDetectionApis() + { + string testPrefix = "server-security-alert-test-"; + string testName = this.GetType().FullName; + + SqlManagementTestUtilities.RunTestInNewV12Server(testName, "TestThreatDetection", testPrefix, + (resClient, sqlClient, resourceGroup, server) => + { + // create some databases in server + Database[] databases = SqlManagementTestUtilities.CreateDatabasesAsync( + sqlClient, resourceGroup.Name, server, testPrefix, 2).Result; + +#if false // Commented out due to issues with async operation response + + // ******* Server threat detection ******* + ServerSecurityAlertPolicy defaultServerPolicyResponse = sqlClient.ServerThreatDetectionPolicies.Get(resourceGroup.Name, server.Name); + + // Verify that the initial Get request contains the default policy. + VerifyServerSecurityAlertPolicyInformation(GetDefaultServerSecurityAlertProperties(), defaultServerPolicyResponse); + + // Modify the policy properties, send and receive and see it its still ok + ServerSecurityAlertPolicy updatedServerPolicy = new ServerSecurityAlertPolicy + { + State = SecurityAlertPolicyState.Enabled, + EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled, + EmailAddresses = "testSecurityAlert@microsoft.com;testServerPolicy@microsoft.com", + DisabledAlerts = "Sql_Injection", + RetentionDays = 3, + StorageAccountAccessKey = "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==", + StorageEndpoint = "https://MyAccount.blob.core.windows.net/", + }; + + //Set security alert policy for server + sqlClient.ServerThreatDetectionPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, updatedServerPolicy); + + //Get security alert server policy + var getUpdatedServerPolicyResponse = sqlClient.ServerThreatDetectionPolicies.Get(resourceGroup.Name, server.Name); + // Verify that the Get request contains the updated policy. + VerifyServerSecurityAlertPolicyInformation(updatedServerPolicy, getUpdatedServerPolicyResponse); + +#endif + + // ******* Database threat detection ******* + + string dbName = databases[0].Name; + DatabaseSecurityAlertPolicy defaultDatabasePolicyResponse = sqlClient.DatabaseThreatDetectionPolicies.Get(resourceGroup.Name, server.Name, dbName); + + // Verify that the initial Get request contains the default policy. + VerifyDatabaseSecurityAlertPolicyInformation(GetDefaultDatabaseSecurityAlertProperties(), defaultDatabasePolicyResponse); + + // Modify the policy properties, send and receive and see it its still ok + DatabaseSecurityAlertPolicy updatedDatabasePolicy = new DatabaseSecurityAlertPolicy + { + State = SecurityAlertPolicyState.Disabled, + EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled, + EmailAddresses = "testSecurityAlert@microsoft.com", + DisabledAlerts = "Access_Anomaly; Usage_Anomaly", + RetentionDays = 5, + StorageAccountAccessKey = "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==", + StorageEndpoint = "https://MyAccount.blob.core.windows.net/", + UseServerDefault = SecurityAlertPolicyUseServerDefault.Disabled, + }; + sqlClient.DatabaseThreatDetectionPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, updatedDatabasePolicy); + + var getUpdatedDatabasePolicyResponse = sqlClient.DatabaseThreatDetectionPolicies.Get(resourceGroup.Name, server.Name, dbName); + + // Verify that the Get request contains the updated policy. + VerifyDatabaseSecurityAlertPolicyInformation(updatedDatabasePolicy, getUpdatedDatabasePolicyResponse); + }); + } + +#if false // Commented out due to issues with async operation response + + /// + /// Verify that the received properties match their expected values + /// + /// The expected value of the properties object + /// The properties object that needs to be checked + private void VerifyServerSecurityAlertPolicyInformation(ServerSecurityAlertPolicy expected, ServerSecurityAlertPolicy actual) + { + Assert.Equal(expected.State, actual.State); + Assert.Equal(expected.EmailAccountAdmins, actual.EmailAccountAdmins); + Assert.Equal(expected.DisabledAlerts, actual.DisabledAlerts); + Assert.Equal(expected.EmailAddresses, actual.EmailAddresses); + Assert.Equal(expected.StorageEndpoint, actual.StorageEndpoint); + Assert.Equal(string.Empty, actual.StorageAccountAccessKey); + Assert.Equal(expected.RetentionDays, actual.RetentionDays); + } + + /// + /// Returns a ServerSecurityAlertPolicy object that holds the default settings for a server security alert policy + /// + /// A ServerSecurityAlertPolicy object with the default server security alert policy settings + private ServerSecurityAlertPolicy GetDefaultServerSecurityAlertProperties() + { + ServerSecurityAlertPolicy properties = new ServerSecurityAlertPolicy + { + State = SecurityAlertPolicyState.New, + EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled, + DisabledAlerts = SecurityAlert.Preview, + EmailAddresses = string.Empty, + StorageEndpoint = string.Empty, + StorageAccountAccessKey = string.Empty, + RetentionDays = 0, + }; + + return properties; + } + +#endif + + /// + /// Verify that the received properties match their expected values + /// + /// The expected value of the properties object + /// The properties object that needs to be checked + private void VerifyDatabaseSecurityAlertPolicyInformation(DatabaseSecurityAlertPolicy expected, DatabaseSecurityAlertPolicy actual) + { + Assert.Equal(expected.State, actual.State); + Assert.Equal(expected.EmailAccountAdmins, actual.EmailAccountAdmins); + Assert.Equal(expected.DisabledAlerts, actual.DisabledAlerts); + Assert.Equal(expected.EmailAddresses, actual.EmailAddresses); + Assert.Equal(expected.StorageEndpoint, actual.StorageEndpoint); + Assert.Equal(string.Empty, actual.StorageAccountAccessKey); + Assert.Equal(expected.RetentionDays, actual.RetentionDays); + Assert.Equal(expected.UseServerDefault, actual.UseServerDefault); + } + + /// + /// Returns a SecurityAlertProperties object that holds the default settings for a database security alert policy + /// + /// A DatabaseSecurityAlertPolicy object with the default database security alert policy settings + private DatabaseSecurityAlertPolicy GetDefaultDatabaseSecurityAlertProperties() + { + DatabaseSecurityAlertPolicy properties = new DatabaseSecurityAlertPolicy + { + State = SecurityAlertPolicyState.New, + EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled, + DisabledAlerts = SecurityAlert.Preview, + EmailAddresses = string.Empty, + UseServerDefault = SecurityAlertPolicyUseServerDefault.Enabled, + StorageEndpoint = string.Empty, + StorageAccountAccessKey = string.Empty, + RetentionDays = 0, + }; + + return properties; + } + } +} diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs b/src/ResourceManagement/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs index 5787807e46dd..26748eafcc1f 100644 --- a/src/ResourceManagement/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs @@ -300,5 +300,30 @@ internal static void RunTestInNewV12Server(string suiteName, string testName, st test(resClient, sqlClient, resGroup, v12Server); }); } + + internal static Task CreateDatabasesAsync( + SqlManagementClient sqlClient, + string resourceGroupName, + Server server, + string testPrefix, + int count) + { + List> createDbTasks = new List>(); + for (int i = 0; i < count; i++) + { + string name = SqlManagementTestUtilities.GenerateName(testPrefix); + createDbTasks.Add(sqlClient.Databases.CreateOrUpdateAsync( + resourceGroupName, + server.Name, + name, + new Database() + { + Location = server.Location + })); + } + + // Wait for all databases to be created. + return Task.WhenAll(createDbTasks); + } } } diff --git a/src/ResourceManagement/SqlManagement/UpgradeLog.htm b/src/ResourceManagement/SqlManagement/UpgradeLog.htm new file mode 100644 index 000000000000..440107e06ed7 Binary files /dev/null and b/src/ResourceManagement/SqlManagement/UpgradeLog.htm differ diff --git a/src/ResourceManagement/SqlManagement/global.json b/src/ResourceManagement/SqlManagement/global.json index 4bd0e6191091..5ab2c4ce8197 100644 --- a/src/ResourceManagement/SqlManagement/global.json +++ b/src/ResourceManagement/SqlManagement/global.json @@ -1,3 +1,6 @@ { - "projects": [ "../../TestFramework", "Microsoft.Azure.Management.Sql", "Sql.Tests" ] + "projects": [ "../../TestFramework", "Microsoft.Azure.Management.Sql", "Sql.Tests" ], + "sdk": { + "version": "1.0.0-preview2-003121" + } } \ No newline at end of file diff --git a/src/TestFramework/global.json b/src/TestFramework/global.json index 012e710aa49e..d61ce31b4fb8 100644 --- a/src/TestFramework/global.json +++ b/src/TestFramework/global.json @@ -1,3 +1,6 @@ { - "projects": [ "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "Microsoft.Azure.Test.HttpRecorder" ] + "projects": [ "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "Microsoft.Azure.Test.HttpRecorder" ], + "sdk": { + "version": "1.0.0-preview2-003121" + } } \ No newline at end of file