diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
new file mode 100644
index 000000000000..24c1350e069b
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
@@ -0,0 +1,711 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ 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;
+
+ ///
+ /// DatabaseVulnerabilityAssessmentRuleBaselinesOperations operations.
+ ///
+ internal partial class DatabaseVulnerabilityAssessmentRuleBaselinesOperations : IServiceOperations, IDatabaseVulnerabilityAssessmentRuleBaselinesOperations
+ {
+ ///
+ /// Initializes a new instance of the DatabaseVulnerabilityAssessmentRuleBaselinesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal DatabaseVulnerabilityAssessmentRuleBaselinesOperations(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 database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// 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, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (ruleId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ruleId");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string baselineName = "default";
+ string apiVersion = "2017-03-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("ruleId", ruleId);
+ tracingParameters.Add("baselineName", baselineName);
+ 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{ruleId}", System.Uri.EscapeDataString(ruleId));
+ _url = _url.Replace("{baselineName}", System.Uri.EscapeDataString(baselineName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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 database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// The requested rule baseline resource.
+ ///
+ ///
+ /// 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, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (ruleId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ruleId");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string baselineName = "default";
+ string apiVersion = "2017-03-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("ruleId", ruleId);
+ tracingParameters.Add("baselineName", baselineName);
+ tracingParameters.Add("parameters", parameters);
+ 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{ruleId}", System.Uri.EscapeDataString(ruleId));
+ _url = _url.Replace("{baselineName}", System.Uri.EscapeDataString(baselineName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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)
+ {
+ 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;
+ }
+
+ ///
+ /// Removes the database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (ruleId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ruleId");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string baselineName = "default";
+ string apiVersion = "2017-03-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("ruleId", ruleId);
+ tracingParameters.Add("baselineName", baselineName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Delete", 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{ruleId}", System.Uri.EscapeDataString(ruleId));
+ _url = _url.Replace("{baselineName}", System.Uri.EscapeDataString(baselineName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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("DELETE");
+ _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();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
new file mode 100644
index 000000000000..2056fb20b960
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
@@ -0,0 +1,196 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for DatabaseVulnerabilityAssessmentRuleBaselinesOperations.
+ ///
+ public static partial class DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions
+ {
+ ///
+ /// Gets a database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ public static DatabaseVulnerabilityAssessmentRuleBaseline Get(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId)
+ {
+ return operations.GetAsync(resourceGroupName, serverName, databaseName, ruleId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, ruleId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Creates or updates a database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// The requested rule baseline resource.
+ ///
+ public static DatabaseVulnerabilityAssessmentRuleBaseline CreateOrUpdate(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters)
+ {
+ return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, ruleId, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates or updates a database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// The requested rule baseline resource.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateOrUpdateAsync(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, ruleId, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Removes the database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ public static void Delete(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId)
+ {
+ operations.DeleteAsync(resourceGroupName, serverName, databaseName, ruleId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Removes the database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment rule
+ /// baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, ruleId, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
new file mode 100644
index 000000000000..45b2f76d7d3b
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
@@ -0,0 +1,1109 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ 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;
+
+ ///
+ /// DatabaseVulnerabilityAssessmentScansOperations operations.
+ ///
+ internal partial class DatabaseVulnerabilityAssessmentScansOperations : IServiceOperations, IDatabaseVulnerabilityAssessmentScansOperations
+ {
+ ///
+ /// Initializes a new instance of the DatabaseVulnerabilityAssessmentScansOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal DatabaseVulnerabilityAssessmentScansOperations(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 vulnerability assessment scan record of 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// 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, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (scanId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scanId");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string apiVersion = "2017-10-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("scanId", scanId);
+ 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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;
+ }
+
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task InitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginInitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Lists the vulnerability assessment scans of 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.
+ ///
+ ///
+ /// 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>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string apiVersion = "2017-10-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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;
+ }
+
+ ///
+ /// Convert an existing scan result to a human readable format. If already
+ /// exists nothing happens
+ ///
+ ///
+ /// 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 scanned database.
+ ///
+ ///
+ /// The vulnerability assessment scan Id.
+ ///
+ ///
+ /// 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> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (scanId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scanId");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string apiVersion = "2017-10-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("scanId", scanId);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Export", 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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("POST");
+ _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 && (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;
+ }
+
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// 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 BeginInitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (scanId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scanId");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string apiVersion = "2017-10-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("scanId", scanId);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginInitiateScan", 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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("POST");
+ _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 && (int)_statusCode != 202)
+ {
+ 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();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Lists the vulnerability assessment scans of a database.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// 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>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByDatabaseNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ 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;
+ }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
new file mode 100644
index 000000000000..381d5182556c
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
@@ -0,0 +1,319 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for DatabaseVulnerabilityAssessmentScansOperations.
+ ///
+ public static partial class DatabaseVulnerabilityAssessmentScansOperationsExtensions
+ {
+ ///
+ /// Gets a vulnerability assessment scan record of 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ public static VulnerabilityAssessmentScanRecord Get(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
+ {
+ return operations.GetAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a vulnerability assessment scan record of 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ public static void InitiateScan(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
+ {
+ operations.InitiateScanAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task InitiateScanAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.InitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Lists the vulnerability assessment scans of 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.
+ ///
+ public static IPage ListByDatabase(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName)
+ {
+ return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists the vulnerability assessment scans of 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.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByDatabaseAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Convert an existing scan result to a human readable format. If already
+ /// exists nothing happens
+ ///
+ ///
+ /// 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 scanned database.
+ ///
+ ///
+ /// The vulnerability assessment scan Id.
+ ///
+ public static DatabaseVulnerabilityAssessmentScansExport Export(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
+ {
+ return operations.ExportAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Convert an existing scan result to a human readable format. If already
+ /// exists nothing happens
+ ///
+ ///
+ /// 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 scanned database.
+ ///
+ ///
+ /// The vulnerability assessment scan Id.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ExportAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ public static void BeginInitiateScan(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
+ {
+ operations.BeginInitiateScanAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginInitiateScanAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginInitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Lists the vulnerability assessment scans of a database.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListByDatabaseNext(this IDatabaseVulnerabilityAssessmentScansOperations operations, string nextPageLink)
+ {
+ return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists the vulnerability assessment scans of a database.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByDatabaseNextAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
new file mode 100644
index 000000000000..836e27f47309
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
@@ -0,0 +1,690 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ 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;
+
+ ///
+ /// DatabaseVulnerabilityAssessmentsOperations operations.
+ ///
+ internal partial class DatabaseVulnerabilityAssessmentsOperations : IServiceOperations, IDatabaseVulnerabilityAssessmentsOperations
+ {
+ ///
+ /// Initializes a new instance of the DatabaseVulnerabilityAssessmentsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal DatabaseVulnerabilityAssessmentsOperations(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 the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment 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 (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 (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string apiVersion = "2017-03-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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 the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ ///
+ /// The requested resource.
+ ///
+ ///
+ /// 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, DatabaseVulnerabilityAssessment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string apiVersion = "2017-03-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("parameters", parameters);
+ 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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;
+ }
+
+ ///
+ /// Removes the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ 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 (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string vulnerabilityAssessmentName = "default";
+ string apiVersion = "2017-03-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("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Delete", 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}/vulnerabilityAssessments/{vulnerabilityAssessmentName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
+ _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ 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("DELETE");
+ _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();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs
new file mode 100644
index 000000000000..264fd66ee33c
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs
@@ -0,0 +1,172 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for DatabaseVulnerabilityAssessmentsOperations.
+ ///
+ public static partial class DatabaseVulnerabilityAssessmentsOperationsExtensions
+ {
+ ///
+ /// Gets the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ public static DatabaseVulnerabilityAssessment Get(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName)
+ {
+ return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentsOperations 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 the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ ///
+ /// The requested resource.
+ ///
+ public static DatabaseVulnerabilityAssessment CreateOrUpdate(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseVulnerabilityAssessment parameters)
+ {
+ return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates or updates the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ ///
+ /// The requested resource.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateOrUpdateAsync(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseVulnerabilityAssessment parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Removes the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ public static void Delete(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName)
+ {
+ operations.DeleteAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Removes the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is defined.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
new file mode 100644
index 000000000000..a91d62d5fb85
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
@@ -0,0 +1,130 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// DatabaseVulnerabilityAssessmentRuleBaselinesOperations operations.
+ ///
+ public partial interface IDatabaseVulnerabilityAssessmentRuleBaselinesOperations
+ {
+ ///
+ /// Gets a database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment
+ /// rule baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// 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, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates a database's vulnerability assessment rule
+ /// baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment
+ /// rule baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// The requested rule baseline resource.
+ ///
+ ///
+ /// 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, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Removes the database's vulnerability assessment rule baseline.
+ ///
+ ///
+ /// 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 the vulnerability assessment
+ /// rule baseline is defined.
+ ///
+ ///
+ /// The vulnerability assessment rule ID.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
new file mode 100644
index 000000000000..478f2e565823
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
@@ -0,0 +1,206 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// DatabaseVulnerabilityAssessmentScansOperations operations.
+ ///
+ public partial interface IDatabaseVulnerabilityAssessmentScansOperations
+ {
+ ///
+ /// Gets a vulnerability assessment scan record of 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// 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, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task InitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists the vulnerability assessment scans of 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.
+ ///
+ ///
+ /// 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>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Convert an existing scan result to a human readable format. If
+ /// already exists nothing happens
+ ///
+ ///
+ /// 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 scanned database.
+ ///
+ ///
+ /// The vulnerability assessment scan Id.
+ ///
+ ///
+ /// 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> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginInitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists the vulnerability assessment scans of a database.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// 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>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs
new file mode 100644
index 000000000000..1e4aa09b2be5
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs
@@ -0,0 +1,120 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// DatabaseVulnerabilityAssessmentsOperations operations.
+ ///
+ public partial interface IDatabaseVulnerabilityAssessmentsOperations
+ {
+ ///
+ /// Gets the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment 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 the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is
+ /// defined.
+ ///
+ ///
+ /// The requested resource.
+ ///
+ ///
+ /// 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, DatabaseVulnerabilityAssessment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Removes the database's vulnerability assessment.
+ ///
+ ///
+ /// 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 the vulnerability assessment is
+ /// defined.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs
index 6d60f338a605..0e0bcae50781 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs
@@ -241,6 +241,16 @@ public partial interface ISqlManagementClient : System.IDisposable
///
IVirtualNetworkRulesOperations VirtualNetworkRules { get; }
+ ///
+ /// Gets the IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.
+ ///
+ IDatabaseVulnerabilityAssessmentRuleBaselinesOperations DatabaseVulnerabilityAssessmentRuleBaselines { get; }
+
+ ///
+ /// Gets the IDatabaseVulnerabilityAssessmentsOperations.
+ ///
+ IDatabaseVulnerabilityAssessmentsOperations DatabaseVulnerabilityAssessments { get; }
+
///
/// Gets the ILongTermRetentionBackupsOperations.
///
@@ -286,6 +296,11 @@ public partial interface ISqlManagementClient : System.IDisposable
///
ICapabilitiesOperations Capabilities { get; }
+ ///
+ /// Gets the IDatabaseVulnerabilityAssessmentScansOperations.
+ ///
+ IDatabaseVulnerabilityAssessmentScansOperations DatabaseVulnerabilityAssessmentScans { get; }
+
///
/// Gets the IInstanceFailoverGroupsOperations.
///
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs
new file mode 100644
index 000000000000..df47c1ca9637
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs
@@ -0,0 +1,100 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A database vulnerability assessment.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class DatabaseVulnerabilityAssessment : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the DatabaseVulnerabilityAssessment
+ /// class.
+ ///
+ public DatabaseVulnerabilityAssessment()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DatabaseVulnerabilityAssessment
+ /// class.
+ ///
+ /// A blob storage container path to
+ /// hold the scan results (e.g.
+ /// https://myStorage.blob.core.windows.net/VaScans/).
+ /// A shared access signature (SAS
+ /// Key) that has write access to the blob container specified in
+ /// 'storageContainerPath' parameter.
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ /// The recurring scans settings
+ public DatabaseVulnerabilityAssessment(string storageContainerPath, string storageContainerSasKey, string id = default(string), string name = default(string), string type = default(string), VulnerabilityAssessmentRecurringScansProperties recurringScans = default(VulnerabilityAssessmentRecurringScansProperties))
+ : base(id, name, type)
+ {
+ StorageContainerPath = storageContainerPath;
+ StorageContainerSasKey = storageContainerSasKey;
+ RecurringScans = recurringScans;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a blob storage container path to hold the scan results
+ /// (e.g. https://myStorage.blob.core.windows.net/VaScans/).
+ ///
+ [JsonProperty(PropertyName = "properties.storageContainerPath")]
+ public string StorageContainerPath { get; set; }
+
+ ///
+ /// Gets or sets a shared access signature (SAS Key) that has write
+ /// access to the blob container specified in 'storageContainerPath'
+ /// parameter.
+ ///
+ [JsonProperty(PropertyName = "properties.storageContainerSasKey")]
+ public string StorageContainerSasKey { get; set; }
+
+ ///
+ /// Gets or sets the recurring scans settings
+ ///
+ [JsonProperty(PropertyName = "properties.recurringScans")]
+ public VulnerabilityAssessmentRecurringScansProperties RecurringScans { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (StorageContainerPath == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "StorageContainerPath");
+ }
+ if (StorageContainerSasKey == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "StorageContainerSasKey");
+ }
+ }
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs
new file mode 100644
index 000000000000..c986ecdc847f
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs
@@ -0,0 +1,85 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A database vulnerability assessment rule baseline.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class DatabaseVulnerabilityAssessmentRuleBaseline : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DatabaseVulnerabilityAssessmentRuleBaseline class.
+ ///
+ public DatabaseVulnerabilityAssessmentRuleBaseline()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DatabaseVulnerabilityAssessmentRuleBaseline class.
+ ///
+ /// The rule baseline result
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ public DatabaseVulnerabilityAssessmentRuleBaseline(IList baselineResults, string id = default(string), string name = default(string), string type = default(string))
+ : base(id, name, type)
+ {
+ BaselineResults = baselineResults;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the rule baseline result
+ ///
+ [JsonProperty(PropertyName = "properties.baselineResults")]
+ public IList BaselineResults { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (BaselineResults == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "BaselineResults");
+ }
+ if (BaselineResults != null)
+ {
+ foreach (var element in BaselineResults)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs
new file mode 100644
index 000000000000..0b771e41c74b
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs
@@ -0,0 +1,70 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Properties for an Azure SQL Database Vulnerability Assessment rule
+ /// baseline's result.
+ ///
+ public partial class DatabaseVulnerabilityAssessmentRuleBaselineItem
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DatabaseVulnerabilityAssessmentRuleBaselineItem class.
+ ///
+ public DatabaseVulnerabilityAssessmentRuleBaselineItem()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DatabaseVulnerabilityAssessmentRuleBaselineItem class.
+ ///
+ /// The rule baseline result
+ public DatabaseVulnerabilityAssessmentRuleBaselineItem(IList result)
+ {
+ Result = result;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the rule baseline result
+ ///
+ [JsonProperty(PropertyName = "result")]
+ public IList Result { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Result == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Result");
+ }
+ }
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs
new file mode 100644
index 000000000000..3079732cb63c
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs
@@ -0,0 +1,63 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A database Vulnerability Assessment scan export resource.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class DatabaseVulnerabilityAssessmentScansExport : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DatabaseVulnerabilityAssessmentScansExport class.
+ ///
+ public DatabaseVulnerabilityAssessmentScansExport()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DatabaseVulnerabilityAssessmentScansExport class.
+ ///
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ /// Location of the exported
+ /// report (e.g.
+ /// https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx).
+ public DatabaseVulnerabilityAssessmentScansExport(string id = default(string), string name = default(string), string type = default(string), string exportedReportLocation = default(string))
+ : base(id, name, type)
+ {
+ ExportedReportLocation = exportedReportLocation;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets location of the exported report (e.g.
+ /// https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx).
+ ///
+ [JsonProperty(PropertyName = "properties.exportedReportLocation")]
+ public string ExportedReportLocation { get; private set; }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs
new file mode 100644
index 000000000000..94b0e00b39ab
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs
@@ -0,0 +1,76 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Properties of a Vulnerability Assessment recurring scans.
+ ///
+ public partial class VulnerabilityAssessmentRecurringScansProperties
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VulnerabilityAssessmentRecurringScansProperties class.
+ ///
+ public VulnerabilityAssessmentRecurringScansProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VulnerabilityAssessmentRecurringScansProperties class.
+ ///
+ /// Recurring scans state.
+ /// Specifies that the schedule
+ /// scan notification will be is sent to the subscription
+ /// administrators.
+ /// Specifies an array of e-mail addresses to
+ /// which the scan notification is sent.
+ public VulnerabilityAssessmentRecurringScansProperties(bool? isEnabled = default(bool?), bool? emailSubscriptionAdmins = default(bool?), IList emails = default(IList))
+ {
+ IsEnabled = isEnabled;
+ EmailSubscriptionAdmins = emailSubscriptionAdmins;
+ Emails = emails;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets recurring scans state.
+ ///
+ [JsonProperty(PropertyName = "isEnabled")]
+ public bool? IsEnabled { get; set; }
+
+ ///
+ /// Gets or sets specifies that the schedule scan notification will be
+ /// is sent to the subscription administrators.
+ ///
+ [JsonProperty(PropertyName = "emailSubscriptionAdmins")]
+ public bool? EmailSubscriptionAdmins { get; set; }
+
+ ///
+ /// Gets or sets specifies an array of e-mail addresses to which the
+ /// scan notification is sent.
+ ///
+ [JsonProperty(PropertyName = "emails")]
+ public IList Emails { get; set; }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs
new file mode 100644
index 000000000000..d381ce53ff14
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs
@@ -0,0 +1,61 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of a vulnerability assessment scan error.
+ ///
+ public partial class VulnerabilityAssessmentScanError
+ {
+ ///
+ /// Initializes a new instance of the VulnerabilityAssessmentScanError
+ /// class.
+ ///
+ public VulnerabilityAssessmentScanError()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VulnerabilityAssessmentScanError
+ /// class.
+ ///
+ /// The error code.
+ /// The error message.
+ public VulnerabilityAssessmentScanError(string code = default(string), string message = default(string))
+ {
+ Code = code;
+ Message = message;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the error code.
+ ///
+ [JsonProperty(PropertyName = "code")]
+ public string Code { get; private set; }
+
+ ///
+ /// Gets the error message.
+ ///
+ [JsonProperty(PropertyName = "message")]
+ public string Message { get; private set; }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs
new file mode 100644
index 000000000000..298f1c24a1f8
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs
@@ -0,0 +1,124 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A vulnerability assessment scan record.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class VulnerabilityAssessmentScanRecord : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the VulnerabilityAssessmentScanRecord
+ /// class.
+ ///
+ public VulnerabilityAssessmentScanRecord()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VulnerabilityAssessmentScanRecord
+ /// class.
+ ///
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ /// The scan ID.
+ /// The scan trigger type. Possible values
+ /// include: 'OnDemand', 'Recurring'
+ /// The scan status. Possible values include:
+ /// 'Passed', 'Failed', 'FailedToRun', 'InProgress'
+ /// The scan start time (UTC).
+ /// The scan end time (UTC).
+ /// The scan errors.
+ /// The scan results storage
+ /// container path.
+ /// The number of failed
+ /// security checks.
+ public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?))
+ : base(id, name, type)
+ {
+ ScanId = scanId;
+ TriggerType = triggerType;
+ State = state;
+ StartTime = startTime;
+ EndTime = endTime;
+ Errors = errors;
+ StorageContainerPath = storageContainerPath;
+ NumberOfFailedSecurityChecks = numberOfFailedSecurityChecks;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the scan ID.
+ ///
+ [JsonProperty(PropertyName = "properties.scanId")]
+ public string ScanId { get; private set; }
+
+ ///
+ /// Gets the scan trigger type. Possible values include: 'OnDemand',
+ /// 'Recurring'
+ ///
+ [JsonProperty(PropertyName = "properties.triggerType")]
+ public string TriggerType { get; private set; }
+
+ ///
+ /// Gets the scan status. Possible values include: 'Passed', 'Failed',
+ /// 'FailedToRun', 'InProgress'
+ ///
+ [JsonProperty(PropertyName = "properties.state")]
+ public string State { get; private set; }
+
+ ///
+ /// Gets the scan start time (UTC).
+ ///
+ [JsonProperty(PropertyName = "properties.startTime")]
+ public System.DateTime? StartTime { get; private set; }
+
+ ///
+ /// Gets the scan end time (UTC).
+ ///
+ [JsonProperty(PropertyName = "properties.endTime")]
+ public System.DateTime? EndTime { get; private set; }
+
+ ///
+ /// Gets the scan errors.
+ ///
+ [JsonProperty(PropertyName = "properties.errors")]
+ public IList Errors { get; private set; }
+
+ ///
+ /// Gets the scan results storage container path.
+ ///
+ [JsonProperty(PropertyName = "properties.storageContainerPath")]
+ public string StorageContainerPath { get; private set; }
+
+ ///
+ /// Gets the number of failed security checks.
+ ///
+ [JsonProperty(PropertyName = "properties.numberOfFailedSecurityChecks")]
+ public int? NumberOfFailedSecurityChecks { get; private set; }
+
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs
new file mode 100644
index 000000000000..503c61895227
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs
@@ -0,0 +1,24 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+
+ ///
+ /// Defines values for VulnerabilityAssessmentScanState.
+ ///
+ public static class VulnerabilityAssessmentScanState
+ {
+ public const string Passed = "Passed";
+ public const string Failed = "Failed";
+ public const string FailedToRun = "FailedToRun";
+ public const string InProgress = "InProgress";
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs
new file mode 100644
index 000000000000..252a76bff40a
--- /dev/null
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs
@@ -0,0 +1,22 @@
+//
+// 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.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+
+ ///
+ /// Defines values for VulnerabilityAssessmentScanTriggerType.
+ ///
+ public static class VulnerabilityAssessmentScanTriggerType
+ {
+ public const string OnDemand = "OnDemand";
+ public const string Recurring = "Recurring";
+ }
+}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs
index be9133307496..df61ed5c7bde 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs
@@ -1,16 +1,24 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
-internal static partial class SdkInfo
+namespace Microsoft.Azure.Management.Sql
{
- public static IEnumerable> ApiInfo_SqlManagementClient
- {
- get
- {
- return new Tuple[]
- {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ internal static partial class SdkInfo
+ {
+ public static IEnumerable> ApiInfo_SqlManagementClient
+ {
+ get
+ {
+ return new Tuple[]
+ {
new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"),
new Tuple("Sql", "Capabilities", "2017-10-01-preview"),
new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"),
@@ -20,6 +28,9 @@ public static IEnumerable> ApiInfo_SqlManagementCl
new Tuple("Sql", "DatabaseOperations", "2017-10-01-preview"),
new Tuple("Sql", "DatabaseThreatDetectionPolicies", "2014-04-01"),
new Tuple("Sql", "DatabaseUsages", "2014-04-01"),
+ new Tuple("Sql", "DatabaseVulnerabilityAssessmentRuleBaselines", "2017-03-01-preview"),
+ new Tuple("Sql", "DatabaseVulnerabilityAssessmentScans", "2017-10-01-preview"),
+ new Tuple("Sql", "DatabaseVulnerabilityAssessments", "2017-03-01-preview"),
new Tuple("Sql", "Databases", "2014-04-01"),
new Tuple("Sql", "Databases", "2017-10-01-preview"),
new Tuple("Sql", "ElasticPoolActivities", "2014-04-01"),
@@ -59,7 +70,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl
new Tuple("Sql", "TransparentDataEncryptionActivities", "2014-04-01"),
new Tuple("Sql", "TransparentDataEncryptions", "2014-04-01"),
new Tuple("Sql", "VirtualNetworkRules", "2015-05-01-preview"),
- }.AsEnumerable();
- }
- }
+ }.AsEnumerable();
+ }
+ }
+ }
}
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs
index de51d7d21b0c..e9fc4cc457b2 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs
@@ -246,6 +246,16 @@ public partial class SqlManagementClient : ServiceClient, I
///
public virtual IVirtualNetworkRulesOperations VirtualNetworkRules { get; private set; }
+ ///
+ /// Gets the IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.
+ ///
+ public virtual IDatabaseVulnerabilityAssessmentRuleBaselinesOperations DatabaseVulnerabilityAssessmentRuleBaselines { get; private set; }
+
+ ///
+ /// Gets the IDatabaseVulnerabilityAssessmentsOperations.
+ ///
+ public virtual IDatabaseVulnerabilityAssessmentsOperations DatabaseVulnerabilityAssessments { get; private set; }
+
///
/// Gets the ILongTermRetentionBackupsOperations.
///
@@ -291,6 +301,11 @@ public partial class SqlManagementClient : ServiceClient, I
///
public virtual ICapabilitiesOperations Capabilities { get; private set; }
+ ///
+ /// Gets the IDatabaseVulnerabilityAssessmentScansOperations.
+ ///
+ public virtual IDatabaseVulnerabilityAssessmentScansOperations DatabaseVulnerabilityAssessmentScans { get; private set; }
+
///
/// Gets the IInstanceFailoverGroupsOperations.
///
@@ -532,6 +547,8 @@ private void Initialize()
SyncMembers = new SyncMembersOperations(this);
SubscriptionUsages = new SubscriptionUsagesOperations(this);
VirtualNetworkRules = new VirtualNetworkRulesOperations(this);
+ DatabaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesOperations(this);
+ DatabaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsOperations(this);
LongTermRetentionBackups = new LongTermRetentionBackupsOperations(this);
BackupLongTermRetentionPolicies = new BackupLongTermRetentionPoliciesOperations(this);
ManagedDatabases = new ManagedDatabasesOperations(this);
@@ -541,6 +558,7 @@ private void Initialize()
DatabaseOperations = new DatabaseOperations(this);
ElasticPoolOperations = new ElasticPoolOperations(this);
Capabilities = new CapabilitiesOperations(this);
+ DatabaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansOperations(this);
InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
AcceptLanguage = "en-US";
diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj
index 472a64da17da..07254ebd2046 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj
+++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj
@@ -7,19 +7,12 @@
Microsoft.Azure.Management.Sql
Azure SQL Management SDK library
Microsoft.Azure.Management.Sql
- 1.15.0-preview
+ 1.16.0-preview
Microsoft Azure SQL Management;SQL;SQL Management;
diff --git a/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs
index fe4eb9a8d972..4ca51c764872 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs
+++ b/src/SDKs/SqlManagement/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.15.0.0")]
+[assembly: AssemblyFileVersion("1.16.0.0")]
diff --git a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs
new file mode 100644
index 000000000000..9b810efda048
--- /dev/null
+++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs
@@ -0,0 +1,316 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+using System.Collections.Generic;
+using System.Linq;
+using Microsoft.Azure.Management.Sql.Models;
+using Microsoft.Azure.Management.ResourceManager;
+using Microsoft.Azure.Management.ResourceManager.Models;
+using Microsoft.Azure.Management.Sql;
+using Xunit;
+using System;
+using Microsoft.Rest.Azure;
+using System.Threading.Tasks;
+using Microsoft.Azure.Management.Storage;
+using Microsoft.Azure.Management.Storage.Models;
+using Microsoft.WindowsAzure.Storage.Blob;
+using Microsoft.Azure.Test.HttpRecorder;
+using Microsoft.WindowsAzure.Storage;
+
+namespace Sql.Tests
+{
+ public class DatabaseVulnerabilityAssessmentScenarioTests
+ {
+ [Fact]
+ public async void TestCreateUpdateGetDatabaseVulnerabilityAssessments()
+ {
+ string testPrefix = "sqlvulnerabilityassessmentcrudtest-";
+ using (SqlManagementTestContext context = new SqlManagementTestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup();
+ SqlManagementClient sqlClient = context.GetClient();
+ Server server = context.CreateServer(resourceGroup);
+
+ // Create database
+ //
+ string dbName = SqlManagementTestUtilities.GenerateName(testPrefix);
+ var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database()
+ {
+ Location = server.Location,
+ });
+ Assert.NotNull(db1);
+
+ // Turn ON database threat detection as a preprequite to use VA
+ DatabaseSecurityAlertPolicy updatedDatabasePolicy = new DatabaseSecurityAlertPolicy
+ {
+ State = SecurityAlertPolicyState.Enabled,
+ EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled
+ };
+ sqlClient.DatabaseThreatDetectionPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, updatedDatabasePolicy);
+
+ // Verify Policy is empty to begin with
+ DatabaseVulnerabilityAssessment policyThatWasReceived = sqlClient.DatabaseVulnerabilityAssessments.Get(resourceGroup.Name, server.Name, dbName);
+ Assert.Null(policyThatWasReceived.StorageContainerPath);
+ Assert.Null(policyThatWasReceived.StorageContainerSasKey);
+ Assert.False(policyThatWasReceived.RecurringScans.IsEnabled);
+
+ // Set policy and then get policy and verify correctness
+ DatabaseVulnerabilityAssessment policyThatWasSet = await SetPolicy(context, sqlClient, resourceGroup, server, dbName);
+
+ policyThatWasReceived = sqlClient.DatabaseVulnerabilityAssessments.Get(resourceGroup.Name, server.Name, dbName);
+ Assert.Equal(policyThatWasSet.StorageContainerPath, policyThatWasReceived.StorageContainerPath);
+ Assert.Null(policyThatWasSet.StorageContainerSasKey);
+ Assert.Equal(policyThatWasSet.RecurringScans.IsEnabled, policyThatWasReceived.RecurringScans.IsEnabled);
+ SqlManagementTestUtilities.AssertCollection(policyThatWasSet.RecurringScans.Emails, policyThatWasReceived.RecurringScans.Emails);
+ Assert.Equal(policyThatWasSet.RecurringScans.EmailSubscriptionAdmins, policyThatWasReceived.RecurringScans.EmailSubscriptionAdmins);
+
+ // Delete policy and then get policy and verify correctness
+ sqlClient.DatabaseVulnerabilityAssessments.Delete(resourceGroup.Name, server.Name, dbName);
+
+ // Get policy after deletion
+ policyThatWasReceived = sqlClient.DatabaseVulnerabilityAssessments.Get(resourceGroup.Name, server.Name, dbName);
+ Assert.Null(policyThatWasReceived.StorageContainerPath);
+ Assert.Null(policyThatWasReceived.StorageContainerSasKey);
+ Assert.False(policyThatWasReceived.RecurringScans.IsEnabled);
+ };
+ }
+
+ [Fact]
+ public async void TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines()
+ {
+ using (SqlManagementTestContext context = new SqlManagementTestContext(this))
+ {
+ string testPrefix = "sqlvulnerabilityassessmentbaselinetest-";
+
+ ResourceGroup resourceGroup = context.CreateResourceGroup();
+ SqlManagementClient sqlClient = context.GetClient();
+ Server server = context.CreateServer(resourceGroup);
+
+ // Create database
+ //
+ string dbName = SqlManagementTestUtilities.GenerateName(testPrefix);
+ var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database()
+ {
+ Location = server.Location,
+ });
+ Assert.NotNull(db1);
+
+ // Turn ON database threat detection as a preprequite to use VA
+ DatabaseSecurityAlertPolicy updatedDatabasePolicy = new DatabaseSecurityAlertPolicy
+ {
+ State = SecurityAlertPolicyState.Enabled,
+ EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled
+ };
+ sqlClient.DatabaseThreatDetectionPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, updatedDatabasePolicy);
+
+ // Set policy
+ await SetPolicy(context, sqlClient, resourceGroup, server, dbName);
+
+ // Set baseline
+ string testRuleId = "VA2031";
+ var ruleBaselineToSet = new DatabaseVulnerabilityAssessmentRuleBaseline(
+ new List()
+ {
+ new DatabaseVulnerabilityAssessmentRuleBaselineItem()
+ {
+ Result = new string[] { "userA", "SELECT" }
+ },
+ new DatabaseVulnerabilityAssessmentRuleBaselineItem()
+ {
+ Result = new string[] { "userB", "SELECT" }
+ }
+ });
+
+ sqlClient.DatabaseVulnerabilityAssessmentRuleBaselines.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, testRuleId, ruleBaselineToSet);
+
+ // Get baseline
+ DatabaseVulnerabilityAssessmentRuleBaseline actualBaseline = sqlClient.DatabaseVulnerabilityAssessmentRuleBaselines.Get(resourceGroup.Name, server.Name, dbName, testRuleId);
+
+ Assert.Equal(ruleBaselineToSet.BaselineResults.Count(), actualBaseline.BaselineResults.Count());
+ SqlManagementTestUtilities.AssertCollection(ruleBaselineToSet.BaselineResults[0].Result, actualBaseline.BaselineResults[0].Result);
+ SqlManagementTestUtilities.AssertCollection(ruleBaselineToSet.BaselineResults[1].Result, actualBaseline.BaselineResults[1].Result);
+
+ // Delete baseline
+ sqlClient.DatabaseVulnerabilityAssessmentRuleBaselines.Delete(resourceGroup.Name, server.Name, dbName, testRuleId);
+
+ // Get baseline should fail after deleting the baseline
+ Assert.Throws(() =>
+ sqlClient.DatabaseVulnerabilityAssessmentRuleBaselines.Get(resourceGroup.Name, server.Name, dbName, testRuleId));
+ }
+ }
+
+ [Fact]
+ public async void TestExcetueGetListDatabaseVulnerabilityAssessmentScans()
+ {
+ using (SqlManagementTestContext context = new SqlManagementTestContext(this))
+ {
+ string testPrefix = "sqlvulnerabilityassessmentscantest-";
+
+ ResourceGroup resourceGroup = context.CreateResourceGroup();
+ SqlManagementClient sqlClient = context.GetClient();
+ Server server = context.CreateServer(resourceGroup);
+
+ // Create database
+ //
+ string dbName = SqlManagementTestUtilities.GenerateName(testPrefix);
+ var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database()
+ {
+ Location = server.Location,
+ });
+ Assert.NotNull(db1);
+
+ // Turn ON database threat detection as a preprequite to use VA
+ DatabaseSecurityAlertPolicy updatedDatabasePolicy = new DatabaseSecurityAlertPolicy
+ {
+ State = SecurityAlertPolicyState.Enabled,
+ EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled
+ };
+ sqlClient.DatabaseThreatDetectionPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, updatedDatabasePolicy);
+
+ // Set policy
+ await SetPolicy(context, sqlClient, resourceGroup, server, dbName);
+
+ // Run some scans
+ string scanId = string.Format("scantest1_{0}", testPrefix);
+ sqlClient.DatabaseVulnerabilityAssessmentScans.InitiateScan(resourceGroup.Name, server.Name, dbName, scanId);
+
+ string scanId1 = string.Format("scantest2_{0}", testPrefix);
+ sqlClient.DatabaseVulnerabilityAssessmentScans.InitiateScan(resourceGroup.Name, server.Name, dbName, scanId1);
+
+ // Verify get scan and list scans
+ VulnerabilityAssessmentScanRecord scanRecord = sqlClient.DatabaseVulnerabilityAssessmentScans.Get(resourceGroup.Name, server.Name, dbName, scanId);
+ Assert.Equal(scanId, scanRecord.ScanId);
+
+ IPage scanRecords = sqlClient.DatabaseVulnerabilityAssessmentScans.ListByDatabase(resourceGroup.Name, server.Name, dbName);
+ Assert.Equal(2, scanRecords.ToList().Count);
+ Assert.Contains(scanRecords.ToList(), item => item.ScanId == scanId);
+ Assert.Contains(scanRecords.ToList(), item => item.ScanId == scanId1);
+
+ VulnerabilityAssessmentScanRecord scanId1Record = sqlClient.DatabaseVulnerabilityAssessmentScans.Get(resourceGroup.Name, server.Name, dbName, scanId1);
+ VulnerabilityAssessmentScanRecord scanId1RecordFromList = scanRecords.FirstOrDefault(item => item.ScanId == scanId1);
+ Assert.Equal(scanId1Record.ScanId, scanId1RecordFromList.ScanId);
+ Assert.Equal(scanId1Record.TriggerType, scanId1RecordFromList.TriggerType);
+ Assert.Equal(scanId1Record.State, scanId1RecordFromList.State);
+ Assert.Equal(scanId1Record.StartTime, scanId1RecordFromList.StartTime);
+ Assert.Equal(scanId1Record.EndTime, scanId1RecordFromList.EndTime);
+ Assert.Equal(scanId1Record.Errors, scanId1RecordFromList.Errors);
+ Assert.Equal(scanId1Record.StorageContainerPath, scanId1RecordFromList.StorageContainerPath);
+ Assert.Equal(scanId1Record.NumberOfFailedSecurityChecks, scanId1RecordFromList.NumberOfFailedSecurityChecks);
+ }
+ }
+
+ [Fact]
+ public async void TestExportDatabaseVulnerabilityAssessmentScans()
+ {
+ using (SqlManagementTestContext context = new SqlManagementTestContext(this))
+ {
+ string testPrefix = "sqlvulnerabilityassessmentexportscantest-";
+
+ ResourceGroup resourceGroup = context.CreateResourceGroup();
+ SqlManagementClient sqlClient = context.GetClient();
+ Server server = context.CreateServer(resourceGroup);
+
+ // Create database
+ //
+ string dbName = SqlManagementTestUtilities.GenerateName(testPrefix);
+ var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database()
+ {
+ Location = server.Location,
+ });
+ Assert.NotNull(db1);
+
+ // Turn ON database threat detection as a preprequite to use VA
+ DatabaseSecurityAlertPolicy updatedDatabasePolicy = new DatabaseSecurityAlertPolicy
+ {
+ State = SecurityAlertPolicyState.Enabled,
+ EmailAccountAdmins = SecurityAlertPolicyEmailAccountAdmins.Enabled
+ };
+ sqlClient.DatabaseThreatDetectionPolicies.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, updatedDatabasePolicy);
+
+ // Set policy
+ await SetPolicy(context, sqlClient, resourceGroup, server, dbName);
+
+ // Run some scans
+ string scanId = string.Format("scan1_{0}", testPrefix);
+ sqlClient.DatabaseVulnerabilityAssessmentScans.InitiateScan(resourceGroup.Name, server.Name, dbName, scanId);
+ sqlClient.DatabaseVulnerabilityAssessmentScans.Export(resourceGroup.Name, server.Name, dbName, scanId);
+ }
+ }
+
+ private async Task SetPolicy(SqlManagementTestContext context, SqlManagementClient sqlClient, ResourceGroup resourceGroup,
+ Server server, string dbName)
+ {
+ StorageContainerInfo StorageContainerInfo = await CreateStorageContainer(context, resourceGroup);
+ DatabaseVulnerabilityAssessment policy = new DatabaseVulnerabilityAssessment()
+ {
+ StorageContainerPath = StorageContainerInfo.StorageContainerPath.ToString(),
+ StorageContainerSasKey = StorageContainerInfo.StorageAccountSasKey,
+ RecurringScans = new VulnerabilityAssessmentRecurringScansProperties()
+ {
+ IsEnabled = false,
+ Emails = new List() { "fakemail1@mail.com", "fakemail2@mail.com" },
+ EmailSubscriptionAdmins = true
+ }
+ };
+
+ return sqlClient.DatabaseVulnerabilityAssessments.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, policy);
+ }
+
+ private struct StorageContainerInfo
+ {
+ public string StorageAccountSasKey;
+ public Uri StorageContainerPath;
+ }
+
+ private async Task CreateStorageContainer(SqlManagementTestContext context, ResourceGroup resourceGroup)
+ {
+ StorageManagementClient storageClient = context.GetClient();
+ StorageAccount storageAccount = await storageClient.StorageAccounts.CreateAsync(
+ resourceGroup.Name,
+ accountName: SqlManagementTestUtilities.GenerateName(prefix: "sqlvatest"),
+ parameters: new StorageAccountCreateParameters(
+ new Microsoft.Azure.Management.Storage.Models.Sku(SkuName.StandardLRS, SkuTier.Standard),
+ Kind.BlobStorage,
+ resourceGroup.Location,
+ accessTier: AccessTier.Cool));
+
+ StorageAccountListKeysResult keys =
+ storageClient.StorageAccounts.ListKeys(resourceGroup.Name, storageAccount.Name);
+ string key = keys.Keys.First().Value;
+
+ string containerName = "vulnerability-assessment";
+ var sasToken = string.Empty;
+
+ // Create container
+ // Since this is a data-plane client and not an ARM client it's harder to inject
+ // HttpMockServer into it to record/playback, but that's fine because we don't need
+ // any of the response data to continue with the test.
+ if (HttpMockServer.Mode == HttpRecorderMode.Record)
+ {
+ CloudStorageAccount storageAccountClient = new CloudStorageAccount(
+ new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(
+ storageAccount.Name,
+ key),
+ useHttps: true);
+ CloudBlobClient blobClient = storageAccountClient.CreateCloudBlobClient();
+ CloudBlobContainer containerReference = blobClient.GetContainerReference(containerName);
+ await containerReference.CreateIfNotExistsAsync();
+
+ SharedAccessBlobPolicy sharedAccessPolicy = new SharedAccessBlobPolicy
+ {
+ SharedAccessExpiryTime = new DateTimeOffset(DateTime.UtcNow.Add(TimeSpan.FromHours(1))),
+ Permissions = SharedAccessBlobPermissions.Write | SharedAccessBlobPermissions.Read | SharedAccessBlobPermissions.List
+ };
+
+ // Generate the SAS Token
+ sasToken = containerReference.GetSharedAccessSignature(sharedAccessPolicy);
+ }
+
+ return new StorageContainerInfo
+ {
+ StorageAccountSasKey = sasToken,
+ StorageContainerPath = new Uri(storageAccount.PrimaryEndpoints.Blob + containerName)
+ };
+ }
+ }
+}
diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json
new file mode 100644
index 000000000000..05bb0fc33536
--- /dev/null
+++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json
@@ -0,0 +1,1427 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5232?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTUyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5232\": \"2018-05-21 07:55:59Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "98"
+ ],
+ "x-ms-client-request-id": [
+ "bf1db98d-1bfb-4c65-9c23-8043cddd22d9"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232\",\r\n \"name\": \"sqlcrudtest-5232\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5232\": \"2018-05-21 07:55:59Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "237"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:56:02 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "884bc67b-3839-4521-9a23-399ec210ac2a"
+ ],
+ "x-ms-correlation-request-id": [
+ "884bc67b-3839-4521-9a23-399ec210ac2a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075602Z:884bc67b-3839-4521-9a23-399ec210ac2a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "183"
+ ],
+ "x-ms-client-request-id": [
+ "5cb12f90-eaf5-4779-8e5c-2350777bb378"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:56:10.943Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "74"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:56:11 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/serverOperationResults/64cbf3cf-bbf0-43c5-aad4-488e842b6c98?api-version=2015-05-01-preview"
+ ],
+ "Retry-After": [
+ "1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/64cbf3cf-bbf0-43c5-aad4-488e842b6c98?api-version=2015-05-01-preview"
+ ],
+ "x-ms-request-id": [
+ "64cbf3cf-bbf0-43c5-aad4-488e842b6c98"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "8090b70c-e28e-40b3-b412-52ec98363e61"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075611Z:8090b70c-e28e-40b3-b412-52ec98363e61"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/64cbf3cf-bbf0-43c5-aad4-488e842b6c98?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82NGNiZjNjZi1iYmYwLTQzYzUtYWFkNC00ODhlODQyYjZjOTg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"64cbf3cf-bbf0-43c5-aad4-488e842b6c98\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:56:10.943Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:56:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "4513be18-5569-4784-888a-65a028dcf304"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "443124c3-5a41-493f-ac3e-027b3538be86"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075621Z:443124c3-5a41-493f-ac3e-027b3538be86"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/64cbf3cf-bbf0-43c5-aad4-488e842b6c98?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82NGNiZjNjZi1iYmYwLTQzYzUtYWFkNC00ODhlODQyYjZjOTg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"64cbf3cf-bbf0-43c5-aad4-488e842b6c98\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:56:10.943Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:56:41 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "bed18417-f160-42a1-8263-4117dacf4c6a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "6e596915-fb4d-42aa-b55c-795c501415e6"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075641Z:6e596915-fb4d-42aa-b55c-795c501415e6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/64cbf3cf-bbf0-43c5-aad4-488e842b6c98?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82NGNiZjNjZi1iYmYwLTQzYzUtYWFkNC00ODhlODQyYjZjOTg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"64cbf3cf-bbf0-43c5-aad4-488e842b6c98\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T07:56:10.943Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:57:01 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "d8f384c4-c9c4-477e-bc61-63ab048536ff"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "0a779f9c-30f2-4c2e-b4d7-f001d476e821"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075702Z:0a779f9c-30f2-4c2e-b4d7-f001d476e821"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1430.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430\",\r\n \"name\": \"sqlcrudtest-1430\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:57:02 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "147ac703-c368-4cf9-a4ad-d86bc487d022"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "997cc440-023d-41e5-aa85-4feb312a3e90"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075702Z:997cc440-023d-41e5-aa85-4feb312a3e90"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "bc77e3f9-8823-482f-87d9-00727ae34cfb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T07:57:05.377Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "76"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:57:04 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/1e687d4a-9b54-4f0f-bce4-914e60b89af2?api-version=2017-10-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/1e687d4a-9b54-4f0f-bce4-914e60b89af2?api-version=2017-10-01-preview"
+ ],
+ "x-ms-request-id": [
+ "30c58e45-fe93-4ec3-b9b1-e64b0299ead9"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "9834549a-94ef-4e45-8975-0554bca55f17"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075705Z:9834549a-94ef-4e45-8975-0554bca55f17"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/1e687d4a-9b54-4f0f-bce4-914e60b89af2?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzFlNjg3ZDRhLTliNTQtNGYwZi1iY2U0LTkxNGU2MGI4OWFmMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"1e687d4a-9b54-4f0f-bce4-914e60b89af2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:57:05.377Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:57:19 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "9c896bc5-1f7b-42d9-a524-d1f5a74431a1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "675e8600-cc84-46f2-ab38-9fa3ec68242a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075720Z:675e8600-cc84-46f2-ab38-9fa3ec68242a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/1e687d4a-9b54-4f0f-bce4-914e60b89af2?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzFlNjg3ZDRhLTliNTQtNGYwZi1iY2U0LTkxNGU2MGI4OWFmMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"1e687d4a-9b54-4f0f-bce4-914e60b89af2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:57:05.377Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:57:35 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ae91d48f-be94-456a-a202-2d90852fdfa4"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "5b3dc55e-012a-44fb-9c6c-9132d268d42b"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075736Z:5b3dc55e-012a-44fb-9c6c-9132d268d42b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/1e687d4a-9b54-4f0f-bce4-914e60b89af2?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzFlNjg3ZDRhLTliNTQtNGYwZi1iY2U0LTkxNGU2MGI4OWFmMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"1e687d4a-9b54-4f0f-bce4-914e60b89af2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:57:05.377Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:57:50 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0740b14f-f8ab-4315-872d-cf9350ee7c12"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "38c7113d-3a88-4e3c-a213-0656436e98e4"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075751Z:38c7113d-3a88-4e3c-a213-0656436e98e4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/1e687d4a-9b54-4f0f-bce4-914e60b89af2?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzFlNjg3ZDRhLTliNTQtNGYwZi1iY2U0LTkxNGU2MGI4OWFmMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"1e687d4a-9b54-4f0f-bce4-914e60b89af2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T07:57:05.377Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "444bd96f-4dff-4131-9f3c-51dbb97f466c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "2017be50-2bad-44e6-a788-8c7fcbf2b5f8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075806Z:2017be50-2bad-44e6-a788-8c7fcbf2b5f8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"711b4576-005d-458f-b334-3077c4aa6483\",\r\n \"creationDate\": \"2018-05-21T07:57:05.643Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-21T08:27:59.77Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809\",\r\n \"name\": \"sqlvulnerabilityassessmentcrudtest-809\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "7af5d905-da2b-4dc6-8179-bfb2b7bf1d74"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "befd3b0d-7fff-46aa-a1ac-0afc24281a14"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075807Z:befd3b0d-7fff-46aa-a1ac-0afc24281a14"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/securityAlertPolicies/default?api-version=2014-04-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOS9zZWN1cml0eUFsZXJ0UG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"emailAccountAdmins\": \"Enabled\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "90"
+ ],
+ "x-ms-client-request-id": [
+ "3f88b2c7-48de-40e4-8814-c51582422226"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/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\": null,\r\n \"state\": \"Enabled\",\r\n \"disabledAlerts\": null,\r\n \"emailAddresses\": null,\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": null,\r\n \"storageAccountAccessKey\": null,\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": [
+ "Mon, 21 May 2018 07:58:09 GMT"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "066e11b0-0e9e-4afe-ae17-1dfeecb9be03"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Preference-Applied": [
+ "return-content"
+ ],
+ "DataServiceVersion": [
+ "3.0;"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "4acd94f8-8a69-4855-923e-a5b1652d9878"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075810Z:4acd94f8-8a69-4855-923e-a5b1652d9878"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOS92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dfa2d6e6-3bb5-420b-981f-70d99f302494"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": false\r\n }\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "68b9a357-a3b7-4d58-97b5-7fa905b2bcee"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "4bf69e53-5567-4781-b65f-cea98104e6d1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075813Z:4bf69e53-5567-4781-b65f-cea98104e6d1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOS92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9ced4518-d721-4be4-93f8-96cd95409bf0"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4561.blob.core.windows.net/vulnerability-assessment/\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "818a39ba-16d2-4364-96c0-e8bb56114d60"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "1d218fc2-430a-4f6d-9605-0899becb240d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075840Z:1d218fc2-430a-4f6d-9605-0899becb240d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOS92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "082736bf-4d79-48fa-a769-a25c20476694"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": false\r\n }\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "03dbc43d-2fb4-4343-9424-2a6800a79cfe"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "830338b2-de21-415b-bb81-1ecafa436050"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075841Z:830338b2-de21-415b-bb81-1ecafa436050"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Storage/storageAccounts/sqlvatest4561?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q0NTYxP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "152"
+ ],
+ "x-ms-client-request-id": [
+ "7c2cd68c-165e-4593-83a3-5aeccc7b1c58"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "text/plain; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/3b7b0a9d-1bd5-4824-b16a-941616b0c9ca?monitor=true&api-version=2017-06-01"
+ ],
+ "Retry-After": [
+ "17"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "3b7b0a9d-1bd5-4824-b16a-941616b0c9ca"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "e5ed9b27-931b-4695-883d-13bf5cbe35d0"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075821Z:e5ed9b27-931b-4695-883d-13bf5cbe35d0"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/3b7b0a9d-1bd5-4824-b16a-941616b0c9ca?monitor=true&api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvM2I3YjBhOWQtMWJkNS00ODI0LWIxNmEtOTQxNjE2YjBjOWNhP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Storage/storageAccounts/sqlvatest4561\",\r\n \"name\": \"sqlvatest4561\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"trustedDirectories\": [\r\n \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T07:58:20.7723105Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T07:58:20.7723105Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T07:58:20.7098082Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest4561.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest4561.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:38 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "79c7ec12-0212-416b-990f-076b18a34817"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14961"
+ ],
+ "x-ms-correlation-request-id": [
+ "7219fd2a-76b9-4fc1-b89f-09b921097864"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075838Z:7219fd2a-76b9-4fc1-b89f-09b921097864"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Storage/storageAccounts/sqlvatest4561/listKeys?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q0NTYxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d490cb43-04f6-4b4b-877c-4e47e08fcc39"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"DJJDI9GopN03nQk3vrOPxbXqPjRYiOcvSn35orhkqJxFWW8S2pCHZzl18F5gHfR1sda1m9kczb085Uy2076zNQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"YQF8tKs+6OY6q9pkuj2A9oTossoRa6VIHqSldNeOaKvhjTO3hNi6ahHdkFZoaARV2paAtUDfI4P4NfQ0uEDcdw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:38 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "90d036e9-751f-4928-8a2c-33212789ea9f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "e15850d7-ef50-43e5-b97c-1a8a0b619632"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075839Z:e15850d7-ef50-43e5-b97c-1a8a0b619632"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOS92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4561.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=MQ%2FhsRppLQ82Oh58OxWAmtD95cAyYWF3NyEBF9QUVdk%3D&se=2018-05-21T08%3A58%3A39Z&sp=rwl\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "459"
+ ],
+ "x-ms-client-request-id": [
+ "1e5f48e2-66f5-485e-9f8b-0d2ad3cc3ccd"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4561.blob.core.windows.net/vulnerability-assessment/\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:39 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "624b73ab-ecb9-48f0-8727-80673de6f8c1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "73d98c7d-56b8-45e8-83f2-745e565f3013"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075840Z:73d98c7d-56b8-45e8-83f2-745e565f3013"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Sql/servers/sqlcrudtest-1430/databases/sqlvulnerabilityassessmentcrudtest-809/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNDMwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTgwOS92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "77091248-0413-450f-8483-00362c860e2c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "63b3b25d-b6be-4d6e-9b53-138165d992f7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "9a48cd4e-2c30-4900-a077-165679476f6a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075841Z:9a48cd4e-2c30-4900-a077-165679476f6a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5232?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTUyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "99f3f2b8-1e2d-4d6b-b047-05e65e7f4493"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:45 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDUyMzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-request-id": [
+ "ad0609a2-d44d-442c-8413-ed590d178a58"
+ ],
+ "x-ms-correlation-request-id": [
+ "ad0609a2-d44d-442c-8413-ed590d178a58"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075845Z:ad0609a2-d44d-442c-8413-ed590d178a58"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "CreateResourceGroup": [
+ "sqlcrudtest-5232"
+ ],
+ "CreateServer": [
+ "sqlcrudtest-1430"
+ ],
+ "TestCreateUpdateGetDatabaseVulnerabilityAssessments": [
+ "sqlvulnerabilityassessmentcrudtest-809"
+ ],
+ "CreateStorageContainer": [
+ "sqlvatest4561"
+ ]
+ },
+ "Variables": {
+ "DefaultLocation": "west us 2",
+ "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json
new file mode 100644
index 000000000000..57f5660c49f4
--- /dev/null
+++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json
@@ -0,0 +1,1430 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8861?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg4NjE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8861\": \"2018-05-21 07:52:51Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "98"
+ ],
+ "x-ms-client-request-id": [
+ "8f4d3ed0-e01f-4528-9cf1-a6852b166293"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861\",\r\n \"name\": \"sqlcrudtest-8861\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8861\": \"2018-05-21 07:52:51Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "237"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:52:53 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "2f0900fd-c725-4fc2-8970-542a259d6542"
+ ],
+ "x-ms-correlation-request-id": [
+ "2f0900fd-c725-4fc2-8970-542a259d6542"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075254Z:2f0900fd-c725-4fc2-8970-542a259d6542"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "183"
+ ],
+ "x-ms-client-request-id": [
+ "e3ed44d1-73c6-4883-b9af-2586bac45fc4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:53:04.323Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "74"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:53:04 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/serverOperationResults/778181f1-ce40-470b-a293-8c1dd751ec27?api-version=2015-05-01-preview"
+ ],
+ "Retry-After": [
+ "1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/778181f1-ce40-470b-a293-8c1dd751ec27?api-version=2015-05-01-preview"
+ ],
+ "x-ms-request-id": [
+ "778181f1-ce40-470b-a293-8c1dd751ec27"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "3c6bfd2b-1ec8-4056-b1fd-809b264ceaae"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075304Z:3c6bfd2b-1ec8-4056-b1fd-809b264ceaae"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/778181f1-ce40-470b-a293-8c1dd751ec27?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NzgxODFmMS1jZTQwLTQ3MGItYTI5My04YzFkZDc1MWVjMjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"778181f1-ce40-470b-a293-8c1dd751ec27\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:53:04.323Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:53:15 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "9a4e950f-c652-49f4-9143-fd0e33dfb586"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "b057340a-44f9-4870-84be-c1555d5461e1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075315Z:b057340a-44f9-4870-84be-c1555d5461e1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/778181f1-ce40-470b-a293-8c1dd751ec27?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NzgxODFmMS1jZTQwLTQ3MGItYTI5My04YzFkZDc1MWVjMjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"778181f1-ce40-470b-a293-8c1dd751ec27\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:53:04.323Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:53:35 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "3dce23ea-ee0b-4739-927a-1b88e7659efd"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "fbb0effc-d210-4dff-9a41-3c0232e1ca11"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075335Z:fbb0effc-d210-4dff-9a41-3c0232e1ca11"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/778181f1-ce40-470b-a293-8c1dd751ec27?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NzgxODFmMS1jZTQwLTQ3MGItYTI5My04YzFkZDc1MWVjMjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"778181f1-ce40-470b-a293-8c1dd751ec27\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T07:53:04.323Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:53:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b6058cdf-161b-4bfe-965f-804d23713670"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "9159e29e-f84f-424b-a79d-09338bbc6e25"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075355Z:9159e29e-f84f-424b-a79d-09338bbc6e25"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-2520.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520\",\r\n \"name\": \"sqlcrudtest-2520\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:53:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "70df0f4c-e0b5-4191-aced-a1e6b63d497e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "639fada2-87e7-404a-b4c3-f10b560b77bf"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075356Z:639fada2-87e7-404a-b4c3-f10b560b77bf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "d14fc7fa-df5d-4665-8d60-817bb12911aa"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T07:53:58.373Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "76"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:53:57 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/e51b47ca-cd23-4e32-8df0-1608677e5dd0?api-version=2017-10-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e51b47ca-cd23-4e32-8df0-1608677e5dd0?api-version=2017-10-01-preview"
+ ],
+ "x-ms-request-id": [
+ "cafd7674-6e30-41f3-b2dc-7b13f278ff20"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "cdfb0de6-8085-4666-8997-3d771aec399a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075358Z:cdfb0de6-8085-4666-8997-3d771aec399a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e51b47ca-cd23-4e32-8df0-1608677e5dd0?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U1MWI0N2NhLWNkMjMtNGUzMi04ZGYwLTE2MDg2NzdlNWRkMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"e51b47ca-cd23-4e32-8df0-1608677e5dd0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:53:58.373Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:54:13 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "f0233369-d5b8-4739-96f8-e70cb7e19084"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "6a0538c6-5e94-4df0-a417-fc40efb3ace9"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075414Z:6a0538c6-5e94-4df0-a417-fc40efb3ace9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e51b47ca-cd23-4e32-8df0-1608677e5dd0?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U1MWI0N2NhLWNkMjMtNGUzMi04ZGYwLTE2MDg2NzdlNWRkMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"e51b47ca-cd23-4e32-8df0-1608677e5dd0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:53:58.373Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:54:28 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "c8903653-bff4-454a-ad81-ca138fadb6e2"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "21c1656b-ee41-4d77-904d-a989621b75a3"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075429Z:21c1656b-ee41-4d77-904d-a989621b75a3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e51b47ca-cd23-4e32-8df0-1608677e5dd0?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U1MWI0N2NhLWNkMjMtNGUzMi04ZGYwLTE2MDg2NzdlNWRkMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"e51b47ca-cd23-4e32-8df0-1608677e5dd0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:53:58.373Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:54:44 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "59818a0a-56fb-44e9-a7fb-c084f52cf144"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "58e39c99-e337-4693-92e5-0ea79773eb61"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075444Z:58e39c99-e337-4693-92e5-0ea79773eb61"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e51b47ca-cd23-4e32-8df0-1608677e5dd0?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U1MWI0N2NhLWNkMjMtNGUzMi04ZGYwLTE2MDg2NzdlNWRkMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"e51b47ca-cd23-4e32-8df0-1608677e5dd0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T07:53:58.373Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:54:59 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "583ff303-d768-4901-8d07-5062c418c5d3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "98e83a9d-4998-4758-aeb4-a3a04d37c878"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075500Z:98e83a9d-4998-4758-aeb4-a3a04d37c878"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"5e06dc74-a9ec-40cb-bb2a-a688626d1af1\",\r\n \"creationDate\": \"2018-05-21T07:53:58.61Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-21T08:24:49.793Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-8606\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:00 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ca2f907b-1ddb-4ea3-b3ea-a62d5c5f26d8"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "822a9c6e-cb3d-4570-ab8c-61d238063ad1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075500Z:822a9c6e-cb3d-4570-ab8c-61d238063ad1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/securityAlertPolicies/default?api-version=2014-04-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"emailAccountAdmins\": \"Enabled\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "90"
+ ],
+ "x-ms-client-request-id": [
+ "34a59a15-7abe-46d2-9500-7097e2a2aa30"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/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\": null,\r\n \"state\": \"Enabled\",\r\n \"disabledAlerts\": null,\r\n \"emailAddresses\": null,\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": null,\r\n \"storageAccountAccessKey\": null,\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": [
+ "Mon, 21 May 2018 07:55:02 GMT"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "19044580-b314-434a-9f52-a028dd8fa342"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Preference-Applied": [
+ "return-content"
+ ],
+ "DataServiceVersion": [
+ "3.0;"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "21dc2b83-6fac-4dae-ac27-7bde44d16ce7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075502Z:21dc2b83-6fac-4dae-ac27-7bde44d16ce7"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Storage/storageAccounts/sqlvatest1371?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxMzcxP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "152"
+ ],
+ "x-ms-client-request-id": [
+ "187bd620-58a6-47e2-a796-a2833a0f97fd"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "text/plain; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:13 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/8629721f-5e6c-4aba-a5fb-05d43cde9772?monitor=true&api-version=2017-06-01"
+ ],
+ "Retry-After": [
+ "17"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "8629721f-5e6c-4aba-a5fb-05d43cde9772"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "afa09fec-ac21-445f-9a9c-e4ded3aee144"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075513Z:afa09fec-ac21-445f-9a9c-e4ded3aee144"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/8629721f-5e6c-4aba-a5fb-05d43cde9772?monitor=true&api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvODYyOTcyMWYtNWU2Yy00YWJhLWE1ZmItMDVkNDNjZGU5NzcyP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Storage/storageAccounts/sqlvatest1371\",\r\n \"name\": \"sqlvatest1371\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"trustedDirectories\": [\r\n \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T07:55:13.1028313Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T07:55:13.1028313Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T07:55:13.0249715Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest1371.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest1371.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0be591af-8570-4d38-af03-bf5af1c0a696"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "4b7309c7-fd57-4b3e-a14c-5587f844edab"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075530Z:4b7309c7-fd57-4b3e-a14c-5587f844edab"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Storage/storageAccounts/sqlvatest1371/listKeys?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxMzcxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "641e1c15-6ca2-4879-8d7f-87089a37f65b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"7W9eqtlkrom56f5QDQa/2404x9tm1Xl6srxmNajCLweZ5Mz9okJ9R+oGDSS/Dw9NSwYh6RUl4oARmBDxCfvrVA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"aOaszh11qMd/1gdVJI1Xu/F9V2onjAYM0sJ9jdAI6zjyrG1zZoNFsirEt8fZYMEKeCtvkHJSQVRyz7BMgwKX0g==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "083bc993-2dd5-4186-ba11-ba658fd24abf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "75fac06a-4704-4d35-a94e-af6967fef20e"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075531Z:75fac06a-4704-4d35-a94e-af6967fef20e"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest1371.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=Wi6i2wmEXs3UsYgpd7DKYXWZjvGOvzkOcqTbQUkCkHg%3D&se=2018-05-21T08%3A55%3A32Z&sp=rwl\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "457"
+ ],
+ "x-ms-client-request-id": [
+ "757c792c-b011-4000-86cc-fdd1235574d1"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest1371.blob.core.windows.net/vulnerability-assessment/\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:39 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "5eb0f3b9-72f1-4ceb-9cad-20d678b3d97c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "04e0ae98-b144-467e-bf48-ef18bc7c442a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075540Z:04e0ae98-b144-467e-bf48-ef18bc7c442a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"baselineResults\": [\r\n {\r\n \"result\": [\r\n \"userA\",\r\n \"SELECT\"\r\n ]\r\n },\r\n {\r\n \"result\": [\r\n \"userB\",\r\n \"SELECT\"\r\n ]\r\n }\r\n ]\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "242"
+ ],
+ "x-ms-client-request-id": [
+ "01c8a31f-bcde-4b84-905b-c0f6fad91819"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"baselineResults\": [\r\n {\r\n \"result\": [\r\n \"userA\",\r\n \"SELECT\"\r\n ]\r\n },\r\n {\r\n \"result\": [\r\n \"userB\",\r\n \"SELECT\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:41 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "33fcd9e6-accf-4fda-9e83-558929ae5a3c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "609dc77e-5a9b-4983-9b28-ebd3a7f1026c"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075542Z:609dc77e-5a9b-4983-9b28-ebd3a7f1026c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "87d0444f-25d5-4ec2-950c-93e1628956b8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"baselineResults\": [\r\n {\r\n \"result\": [\r\n \"userA\",\r\n \"SELECT\"\r\n ]\r\n },\r\n {\r\n \"result\": [\r\n \"userB\",\r\n \"SELECT\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:42 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "847946af-131d-424c-a32f-ef75e842f0b0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "3dfbd665-6142-4b28-a7bf-ce4917eedd5f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075543Z:3dfbd665-6142-4b28-a7bf-ce4917eedd5f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "bb9ad899-eb4d-4fe6-9fc6-f31891dbf2d7"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"VulnerabilityAssessmentBaselineDoesNotExists\",\r\n \"message\": \"Baseline does not exist for rule 'VA2031'\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "119"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:43 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "de19e769-af8c-44cd-babf-52e2e926fb47"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "2d8b3379-d736-45d8-acd2-4a6df94e40ff"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075544Z:2d8b3379-d736-45d8-acd2-4a6df94e40ff"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 404
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Sql/servers/sqlcrudtest-2520/databases/sqlvulnerabilityassessmentbaselinetest-8606/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNTIwL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04NjA2L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "74309e4d-7d91-4dd9-9edd-552c208d2d0f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:43 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "2ffc6069-c586-4483-87fa-67145561e962"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "0739d6f3-1290-49ac-b817-e7513ba8db15"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075544Z:0739d6f3-1290-49ac-b817-e7513ba8db15"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8861?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg4NjE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9bf724bc-c4af-4965-b6c3-e4964718fe75"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:55:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg4NjEtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-request-id": [
+ "2dbb7ddd-be5a-43ab-9a4d-ca5348aed890"
+ ],
+ "x-ms-correlation-request-id": [
+ "2dbb7ddd-be5a-43ab-9a4d-ca5348aed890"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075548Z:2dbb7ddd-be5a-43ab-9a4d-ca5348aed890"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "CreateResourceGroup": [
+ "sqlcrudtest-8861"
+ ],
+ "CreateServer": [
+ "sqlcrudtest-2520"
+ ],
+ "TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines": [
+ "sqlvulnerabilityassessmentbaselinetest-8606"
+ ],
+ "CreateStorageContainer": [
+ "sqlvatest1371"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c",
+ "DefaultLocation": "west us 2"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json
new file mode 100644
index 000000000000..9f805978bae8
--- /dev/null
+++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json
@@ -0,0 +1,1680 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-511?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTUxMT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-511\": \"2018-05-21 08:02:01Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "97"
+ ],
+ "x-ms-client-request-id": [
+ "b05db278-61e1-48b7-810d-6e1f4a896fc4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511\",\r\n \"name\": \"sqlcrudtest-511\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-511\": \"2018-05-21 08:02:01Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "234"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:02:05 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-request-id": [
+ "b9e634a8-f592-4b98-97ab-0135234ee908"
+ ],
+ "x-ms-correlation-request-id": [
+ "b9e634a8-f592-4b98-97ab-0135234ee908"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080205Z:b9e634a8-f592-4b98-97ab-0135234ee908"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1Nzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "183"
+ ],
+ "x-ms-client-request-id": [
+ "d30bfc15-de57-43f6-befd-063b0d744dff"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T08:02:15.947Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "74"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:02:15 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/serverOperationResults/00259a5c-0d87-4180-9081-1f3bc9823132?api-version=2015-05-01-preview"
+ ],
+ "Retry-After": [
+ "1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/00259a5c-0d87-4180-9081-1f3bc9823132?api-version=2015-05-01-preview"
+ ],
+ "x-ms-request-id": [
+ "00259a5c-0d87-4180-9081-1f3bc9823132"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "e2bf52d2-f374-4433-a9ff-1abab0737e99"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080216Z:e2bf52d2-f374-4433-a9ff-1abab0737e99"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/00259a5c-0d87-4180-9081-1f3bc9823132?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzAwMjU5YTVjLTBkODctNDE4MC05MDgxLTFmM2JjOTgyMzEzMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"00259a5c-0d87-4180-9081-1f3bc9823132\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T08:02:15.947Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:02:26 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "88c63623-7d89-4548-be55-6a8f6dc824a1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "17d36600-0cbc-42ca-aa40-603d953e8cdd"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080226Z:17d36600-0cbc-42ca-aa40-603d953e8cdd"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/00259a5c-0d87-4180-9081-1f3bc9823132?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzAwMjU5YTVjLTBkODctNDE4MC05MDgxLTFmM2JjOTgyMzEzMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"00259a5c-0d87-4180-9081-1f3bc9823132\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T08:02:15.947Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:02:46 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b4f09933-4298-48a1-b138-fdae2276304c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "076348e8-8847-4e21-a1fd-ea7a41259fd2"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080247Z:076348e8-8847-4e21-a1fd-ea7a41259fd2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/00259a5c-0d87-4180-9081-1f3bc9823132?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzAwMjU5YTVjLTBkODctNDE4MC05MDgxLTFmM2JjOTgyMzEzMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"00259a5c-0d87-4180-9081-1f3bc9823132\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T08:02:15.947Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:03:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "eeec0d94-7acf-463a-98af-af54ecbb23c7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "e7aabd30-f162-4107-973c-2631730a8c54"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080307Z:e7aabd30-f162-4107-973c-2631730a8c54"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1Nzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-8577.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577\",\r\n \"name\": \"sqlcrudtest-8577\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:03:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "f83b645f-eb28-4c25-ab66-58e2d9380826"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "3b212d4a-f537-4156-8694-dbc3fe136882"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080307Z:3b212d4a-f537-4156-8694-dbc3fe136882"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "9135fe26-f5bf-482f-b049-9becd02df95c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T08:03:10.19Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "75"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:03:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/6835d6fd-1854-414d-a9a3-c8131cffaa2c?api-version=2017-10-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6835d6fd-1854-414d-a9a3-c8131cffaa2c?api-version=2017-10-01-preview"
+ ],
+ "x-ms-request-id": [
+ "a261551b-cd29-400a-818e-132d226afed3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "fd00af2d-b420-4d59-9870-948bcb59a902"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080310Z:fd00af2d-b420-4d59-9870-948bcb59a902"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6835d6fd-1854-414d-a9a3-c8131cffaa2c?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjgzNWQ2ZmQtMTg1NC00MTRkLWE5YTMtYzgxMzFjZmZhYTJjP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"6835d6fd-1854-414d-a9a3-c8131cffaa2c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T08:03:10.19Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:03:25 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "5c75aede-970c-4cf3-a43e-cb924fd9d3b3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "ab58a4fa-733e-4327-a8d1-2945fae70762"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080326Z:ab58a4fa-733e-4327-a8d1-2945fae70762"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6835d6fd-1854-414d-a9a3-c8131cffaa2c?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjgzNWQ2ZmQtMTg1NC00MTRkLWE5YTMtYzgxMzFjZmZhYTJjP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"6835d6fd-1854-414d-a9a3-c8131cffaa2c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T08:03:10.19Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:03:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "3c8cc0c2-132f-459c-b82a-937fb639d14d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "4005355e-434c-4649-8e30-d26f04512439"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080341Z:4005355e-434c-4649-8e30-d26f04512439"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6835d6fd-1854-414d-a9a3-c8131cffaa2c?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjgzNWQ2ZmQtMTg1NC00MTRkLWE5YTMtYzgxMzFjZmZhYTJjP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"6835d6fd-1854-414d-a9a3-c8131cffaa2c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T08:03:10.19Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:03:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0d5c9d1b-729e-4a7f-983d-4b503fdc7379"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "3479d64e-2358-4d18-8d44-bf54176303d8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080356Z:3479d64e-2358-4d18-8d44-bf54176303d8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"f3ea4112-b816-4577-8998-16c8bb00ee37\",\r\n \"creationDate\": \"2018-05-21T08:03:10.407Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-21T08:33:55.25Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352\",\r\n \"name\": \"sqlvulnerabilityassessmentscantest-7352\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:03:56 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "9679715a-791b-4a26-9dc8-87e5603674a3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "9d201adb-edd3-42bd-92a5-93729067c1fe"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080357Z:9d201adb-edd3-42bd-92a5-93729067c1fe"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/securityAlertPolicies/default?api-version=2014-04-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mi9zZWN1cml0eUFsZXJ0UG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"emailAccountAdmins\": \"Enabled\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "90"
+ ],
+ "x-ms-client-request-id": [
+ "ba8962e6-0cbf-41e9-a5ed-6413c0b2b722"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/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\": null,\r\n \"state\": \"Enabled\",\r\n \"disabledAlerts\": null,\r\n \"emailAddresses\": null,\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": null,\r\n \"storageAccountAccessKey\": null,\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": [
+ "Mon, 21 May 2018 08:04:00 GMT"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "29ddf8e2-e8de-4b5a-8164-fe354affaaf1"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Preference-Applied": [
+ "return-content"
+ ],
+ "DataServiceVersion": [
+ "3.0;"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "8ba8bd68-140b-49f9-a41a-360012ab8a38"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080400Z:8ba8bd68-140b-49f9-a41a-360012ab8a38"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Storage/storageAccounts/sqlvatest4909?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3NxbHZhdGVzdDQ5MDk/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "152"
+ ],
+ "x-ms-client-request-id": [
+ "83e138a0-b5ed-4fe5-aa3d-e20847cc1c7d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "text/plain; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/4602d2ae-748b-4bec-bf14-dc2ae8e9b98e?monitor=true&api-version=2017-06-01"
+ ],
+ "Retry-After": [
+ "17"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "4602d2ae-748b-4bec-bf14-dc2ae8e9b98e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "2a67410f-7619-4f42-a8ef-5d29ef272922"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080407Z:2a67410f-7619-4f42-a8ef-5d29ef272922"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/4602d2ae-748b-4bec-bf14-dc2ae8e9b98e?monitor=true&api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNDYwMmQyYWUtNzQ4Yi00YmVjLWJmMTQtZGMyYWU4ZTliOThlP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Storage/storageAccounts/sqlvatest4909\",\r\n \"name\": \"sqlvatest4909\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"trustedDirectories\": [\r\n \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T08:04:07.5961522Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T08:04:07.5961522Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T08:04:07.5180052Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest4909.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest4909.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:25 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "98ef6439-ab00-4588-8196-8ffb7f33fb04"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "b831508f-bbfa-4bd6-8ec4-576db4c23e0f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080425Z:b831508f-bbfa-4bd6-8ec4-576db4c23e0f"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Storage/storageAccounts/sqlvatest4909/listKeys?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3NxbHZhdGVzdDQ5MDkvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "85a7b692-34fb-4989-8d86-3add3932ff40"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"Z22yErL//WVqx8eJYNRLTXv4q8SYotYCks1dxKco/VPQkkqnpQ3rgIciiDxBpcPSJwewrHaAgee207KbiLf3Jg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"NNWOZ2vGIdDl6LdMzysjaSL96N0OohzweKIaOrGwgC596KxsGQH1/2zz49uzfXS1Qb/3qvyKYWmcDuZ89malLw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:25 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "e3958749-f04d-40a9-af0b-2b7b2f39b310"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "f8c79109-b4e3-4c36-8388-2f405ebf8ba7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080425Z:f8c79109-b4e3-4c36-8388-2f405ebf8ba7"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=GxIvqBQJQzoW5A3thoxvNlqNPrScQBMS%2FY9%2FDx5P2io%3D&se=2018-05-21T09%3A04%3A26Z&sp=rwl\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "461"
+ ],
+ "x-ms-client-request-id": [
+ "50fe8006-eb7b-4a60-a002-de2c75bdbf0b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment/\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "f65d7912-07be-44d1-8b0f-7a5101af11ce"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "344f968b-ade2-44b2-88e6-25427875dd9a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080434Z:344f968b-ade2-44b2-88e6-25427875dd9a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdC9zY2Fucy9zY2FudGVzdDFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRzY2FudGVzdC0vaW5pdGlhdGVTY2FuP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a41cbf92-130d-4773-a107-accef3459e07"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T08:04:34.453Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "97"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/0fec33d7-7496-4384-a89c-fdfcaeb6429f?api-version=2017-10-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/0fec33d7-7496-4384-a89c-fdfcaeb6429f?api-version=2017-10-01-preview"
+ ],
+ "x-ms-request-id": [
+ "8f9027fd-b840-4b72-8ab0-d8b1414eec9b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "b49a432c-2dcc-4ed6-a3ff-2e6b61fdf925"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080434Z:b49a432c-2dcc-4ed6-a3ff-2e6b61fdf925"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/0fec33d7-7496-4384-a89c-fdfcaeb6429f?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudFNjYW5BenVyZUFzeW5jT3BlcmF0aW9uLzBmZWMzM2Q3LTc0OTYtNDM4NC1hODljLWZkZmNhZWI2NDI5Zj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"0fec33d7-7496-4384-a89c-fdfcaeb6429f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T08:04:34.453Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "15efc435-968f-4d0f-82d8-71243a938677"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "8e716470-9880-4539-9e26-0484d267624e"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080449Z:8e716470-9880-4539-9e26-0484d267624e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/0fec33d7-7496-4384-a89c-fdfcaeb6429f?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudFNjYW5PcGVyYXRpb25SZXN1bHRzLzBmZWMzM2Q3LTc0OTYtNDM4NC1hODljLWZkZmNhZWI2NDI5Zj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T08:04:34.453Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/Default/scans/scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "724"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "8abbc0ee-e8db-4a6d-8f1f-016eb09351bf"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "0c6cd54a-8a57-4cf2-a6d5-8d58d7d38ff6"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080450Z:0c6cd54a-8a57-4cf2-a6d5-8d58d7d38ff6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdC9zY2Fucy9zY2FudGVzdDJfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRzY2FudGVzdC0vaW5pdGlhdGVTY2FuP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "209be125-1167-4637-b281-524e5eb0df4f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T08:04:51.01Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "96"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:04:50 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/ce12df05-ad80-4217-a90a-db93748c69e3?api-version=2017-10-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/ce12df05-ad80-4217-a90a-db93748c69e3?api-version=2017-10-01-preview"
+ ],
+ "x-ms-request-id": [
+ "bd6ec619-8346-4de3-b28f-be0f3b9677e4"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "078117f7-47a1-4619-88ac-84a52426bd18"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080451Z:078117f7-47a1-4619-88ac-84a52426bd18"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/ce12df05-ad80-4217-a90a-db93748c69e3?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudFNjYW5BenVyZUFzeW5jT3BlcmF0aW9uL2NlMTJkZjA1LWFkODAtNDIxNy1hOTBhLWRiOTM3NDhjNjllMz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"ce12df05-ad80-4217-a90a-db93748c69e3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T08:04:51.01Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:05:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b50f6d34-9ff5-42b2-b06d-8182bd154482"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "3ed7c16c-4f8e-4090-9669-61a2c7c6a382"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080506Z:3ed7c16c-4f8e-4090-9669-61a2c7c6a382"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/ce12df05-ad80-4217-a90a-db93748c69e3?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdHVzMi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudFNjYW5PcGVyYXRpb25SZXN1bHRzL2NlMTJkZjA1LWFkODAtNDIxNy1hOTBhLWRiOTM3NDhjNjllMz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T08:04:51.01Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/Default/scans/scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "723"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:05:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "0e45beba-a45b-43d3-979e-9b19c0be33c3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "fc1c096b-0b30-4958-8f83-4618be2c66aa"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080506Z:fc1c096b-0b30-4958-8f83-4618be2c66aa"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdC9zY2Fucy9zY2FudGVzdDFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRzY2FudGVzdC0/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0ea37ba4-4112-486f-a721-e61f8711b5ac"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T08:04:35.755614Z\",\r\n \"endTime\": \"2018-05-21T08:04:45.4158538Z\",\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/Default/scans/scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:05:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "4fb9cb43-6a40-45a4-b054-a227ce809f1e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "2c86912b-f05c-467b-9723-c8bf66d231b9"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080507Z:2c86912b-f05c-467b-9723-c8bf66d231b9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/default/scans?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdC9zY2Fucz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "93489ff8-c5f6-4cfa-854e-392021e8fa22"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"scanId\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T08:04:35.755614Z\",\r\n \"endTime\": \"2018-05-21T08:04:45.4158538Z\",\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/Default/scans/scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n },\r\n {\r\n \"properties\": {\r\n \"scanId\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T08:04:51.3532553Z\",\r\n \"endTime\": \"2018-05-21T08:04:55.5884882Z\",\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/Default/scans/scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:05:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "09dbaa94-baeb-4ad2-b005-b883ac025143"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "1d8155e0-523d-4e62-94d3-936eda8d56ca"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080507Z:1d8155e0-523d-4e62-94d3-936eda8d56ca"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUxMS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTg1NzcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtNzM1Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdC9zY2Fucy9zY2FudGVzdDJfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRzY2FudGVzdC0/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "259a5848-212a-4a0b-af35-8642259b1c9d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T08:04:51.3532553Z\",\r\n \"endTime\": \"2018-05-21T08:04:55.5884882Z\",\r\n \"storageContainerPath\": \"https://sqlvatest4909.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-511/providers/Microsoft.Sql/servers/sqlcrudtest-8577/databases/sqlvulnerabilityassessmentscantest-7352/vulnerabilityAssessments/Default/scans/scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:05:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "06a5de43-1f52-4b9b-b548-98ee6b58ae76"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "4b7be88f-5554-44af-a43c-5ede745607ab"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080507Z:4b7be88f-5554-44af-a43c-5ede745607ab"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-511?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTUxMT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "42a4b79b-a0de-4a87-9a1e-27d84035ca5c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:05:10 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDUxMS1XRVNUVVMyIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMyIn0?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-request-id": [
+ "d87b706a-65ce-4571-b898-b76e2b8d7c3f"
+ ],
+ "x-ms-correlation-request-id": [
+ "d87b706a-65ce-4571-b898-b76e2b8d7c3f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080510Z:d87b706a-65ce-4571-b898-b76e2b8d7c3f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "CreateResourceGroup": [
+ "sqlcrudtest-511"
+ ],
+ "CreateServer": [
+ "sqlcrudtest-8577"
+ ],
+ "TestExcetueGetListDatabaseVulnerabilityAssessmentScans": [
+ "sqlvulnerabilityassessmentscantest-7352"
+ ],
+ "CreateStorageContainer": [
+ "sqlvatest4909"
+ ]
+ },
+ "Variables": {
+ "DefaultLocation": "west us 2",
+ "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json
new file mode 100644
index 000000000000..6926533317bf
--- /dev/null
+++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json
@@ -0,0 +1,1363 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8985?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg5ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8985\": \"2018-05-21 07:58:56Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "98"
+ ],
+ "x-ms-client-request-id": [
+ "13fa70f4-24b9-4d0e-85ae-53457b0c6559"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985\",\r\n \"name\": \"sqlcrudtest-8985\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8985\": \"2018-05-21 07:58:56Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "237"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:58:59 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "0559db4b-f848-4b25-8c83-9b3dc04bd8ad"
+ ],
+ "x-ms-correlation-request-id": [
+ "0559db4b-f848-4b25-8c83-9b3dc04bd8ad"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075900Z:0559db4b-f848-4b25-8c83-9b3dc04bd8ad"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "183"
+ ],
+ "x-ms-client-request-id": [
+ "493832c2-d2e2-4386-9e42-e6b11de05174"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:59:10.073Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "74"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:59:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/serverOperationResults/dfd15016-8a0e-4761-8a92-fa9fdc4148ba?api-version=2015-05-01-preview"
+ ],
+ "Retry-After": [
+ "1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/dfd15016-8a0e-4761-8a92-fa9fdc4148ba?api-version=2015-05-01-preview"
+ ],
+ "x-ms-request-id": [
+ "dfd15016-8a0e-4761-8a92-fa9fdc4148ba"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "8286d145-bad2-49cb-a459-8b2e60412e5e"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075910Z:8286d145-bad2-49cb-a459-8b2e60412e5e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/dfd15016-8a0e-4761-8a92-fa9fdc4148ba?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kZmQxNTAxNi04YTBlLTQ3NjEtOGE5Mi1mYTlmZGM0MTQ4YmE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"dfd15016-8a0e-4761-8a92-fa9fdc4148ba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:59:10.073Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:59:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "cdff2d5b-aeb9-4079-b640-0dd8365dc6ac"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14931"
+ ],
+ "x-ms-correlation-request-id": [
+ "d3b8874b-6621-4854-9ed4-970aa5856a9a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075920Z:d3b8874b-6621-4854-9ed4-970aa5856a9a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/dfd15016-8a0e-4761-8a92-fa9fdc4148ba?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kZmQxNTAxNi04YTBlLTQ3NjEtOGE5Mi1mYTlmZGM0MTQ4YmE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"dfd15016-8a0e-4761-8a92-fa9fdc4148ba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T07:59:10.073Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 07:59:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "20"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "50c3f8a0-adc8-493b-8ac1-2dc63054077e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14929"
+ ],
+ "x-ms-correlation-request-id": [
+ "82f0a3fc-88b0-4b57-8231-2b8ab23df7b1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T075940Z:82f0a3fc-88b0-4b57-8231-2b8ab23df7b1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/dfd15016-8a0e-4761-8a92-fa9fdc4148ba?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kZmQxNTAxNi04YTBlLTQ3NjEtOGE5Mi1mYTlmZGM0MTQ4YmE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"dfd15016-8a0e-4761-8a92-fa9fdc4148ba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T07:59:10.073Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:00:00 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "d7b6a5e3-1e9e-45d8-97af-958f62913b81"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14926"
+ ],
+ "x-ms-correlation-request-id": [
+ "f65b6745-9f6f-4e1e-9280-3a72516adcaa"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080001Z:f65b6745-9f6f-4e1e-9280-3a72516adcaa"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795?api-version=2015-05-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3795.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795\",\r\n \"name\": \"sqlcrudtest-3795\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:00:00 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ce142439-bb78-4e8e-9643-28b3327ae105"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14925"
+ ],
+ "x-ms-correlation-request-id": [
+ "97969e85-2d0b-4689-a8c3-e48e8bce3391"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080001Z:97969e85-2d0b-4689-a8c3-e48e8bce3391"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTI3NDQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "d46939dc-86e8-4aec-a7e9-f8ada03a821d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T08:00:03.977Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "76"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:00:03 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/00d44945-4bb2-4c15-be67-ccd85d575a68?api-version=2017-10-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/00d44945-4bb2-4c15-be67-ccd85d575a68?api-version=2017-10-01-preview"
+ ],
+ "x-ms-request-id": [
+ "004f6bb5-3075-46b1-b714-49968889abd5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "f77065a0-6bff-44c2-88d0-5d6c25937074"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080004Z:f77065a0-6bff-44c2-88d0-5d6c25937074"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/00d44945-4bb2-4c15-be67-ccd85d575a68?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAwZDQ0OTQ1LTRiYjItNGMxNS1iZTY3LWNjZDg1ZDU3NWE2OD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"00d44945-4bb2-4c15-be67-ccd85d575a68\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T08:00:03.977Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:00:19 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "4f3676b5-9602-4e6e-85b3-e9e10c286251"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14924"
+ ],
+ "x-ms-correlation-request-id": [
+ "1314e653-1d0e-4053-a3db-4870161d00ed"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080019Z:1314e653-1d0e-4053-a3db-4870161d00ed"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/00d44945-4bb2-4c15-be67-ccd85d575a68?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAwZDQ0OTQ1LTRiYjItNGMxNS1iZTY3LWNjZDg1ZDU3NWE2OD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"00d44945-4bb2-4c15-be67-ccd85d575a68\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T08:00:03.977Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:00:34 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "3cfeb70e-1334-4667-a990-c1ea83ca9fe5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14923"
+ ],
+ "x-ms-correlation-request-id": [
+ "1e52d421-4bf8-4a45-aa74-edadbbb1b3f0"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080034Z:1e52d421-4bf8-4a45-aa74-edadbbb1b3f0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/00d44945-4bb2-4c15-be67-ccd85d575a68?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAwZDQ0OTQ1LTRiYjItNGMxNS1iZTY3LWNjZDg1ZDU3NWE2OD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"00d44945-4bb2-4c15-be67-ccd85d575a68\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T08:00:03.977Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:00:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "22be3719-481d-451a-bc21-a66c400b5949"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14921"
+ ],
+ "x-ms-correlation-request-id": [
+ "ffe96e77-b7ac-4235-bc7f-93e344be868f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080050Z:ffe96e77-b7ac-4235-bc7f-93e344be868f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTI3NDQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"006162c9-3c61-4790-bca9-0b4dc00ad94a\",\r\n \"creationDate\": \"2018-05-21T08:00:04.227Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-21T08:30:42.18Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744\",\r\n \"name\": \"sqlvulnerabilityassessmentexportscantest-2744\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:00:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "7927374d-3350-4ac4-9b93-73fd60350a62"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14920"
+ ],
+ "x-ms-correlation-request-id": [
+ "f4c7a74e-2e82-4057-99b5-b64424a624d4"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080050Z:f4c7a74e-2e82-4057-99b5-b64424a624d4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/securityAlertPolicies/default?api-version=2014-04-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTI3NDQvc2VjdXJpdHlBbGVydFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"emailAccountAdmins\": \"Enabled\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "90"
+ ],
+ "x-ms-client-request-id": [
+ "ae3bdd8e-3184-4619-9e7c-259cd25926dd"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/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\": null,\r\n \"state\": \"Enabled\",\r\n \"disabledAlerts\": null,\r\n \"emailAddresses\": null,\r\n \"emailAccountAdmins\": \"Enabled\",\r\n \"storageEndpoint\": null,\r\n \"storageAccountAccessKey\": null,\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": [
+ "Mon, 21 May 2018 08:00:53 GMT"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "28132062-5cba-4597-8132-7d6f27e7df20"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Preference-Applied": [
+ "return-content"
+ ],
+ "DataServiceVersion": [
+ "3.0;"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "7ec6895f-2c09-4032-b139-c1872c02e319"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080054Z:7ec6895f-2c09-4032-b139-c1872c02e319"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Storage/storageAccounts/sqlvatest2956?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyOTU2P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "152"
+ ],
+ "x-ms-client-request-id": [
+ "6d125ab3-31ae-4cf1-b8c0-7723d5524a88"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "text/plain; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:04 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/28ecbffa-8b57-4494-85d3-8ed93c67bfd7?monitor=true&api-version=2017-06-01"
+ ],
+ "Retry-After": [
+ "17"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "28ecbffa-8b57-4494-85d3-8ed93c67bfd7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "4ce2aafa-07f7-4f9b-bc58-e11063fe6b07"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080105Z:4ce2aafa-07f7-4f9b-bc58-e11063fe6b07"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/28ecbffa-8b57-4494-85d3-8ed93c67bfd7?monitor=true&api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvMjhlY2JmZmEtOGI1Ny00NDk0LTg1ZDMtOGVkOTNjNjdiZmQ3P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Storage/storageAccounts/sqlvatest2956\",\r\n \"name\": \"sqlvatest2956\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"trustedDirectories\": [\r\n \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T08:01:04.8487469Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T08:01:04.8487469Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T08:01:04.7705466Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest2956.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest2956.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "93e7ebb9-3156-436b-857a-874dafbd080e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "37af603e-0f92-4d1e-9fb2-23ad818c1ba1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080122Z:37af603e-0f92-4d1e-9fb2-23ad818c1ba1"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Storage/storageAccounts/sqlvatest2956/listKeys?api-version=2017-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyOTU2L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1197aa7e-a1ed-4b0e-af83-fd2ef76a97d1"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"wVQOS7tjc/Y1LBAMSBm64RhYN4eZaEl9vIoE2tSCIPvq9gjfiEmeK+uHZERjdT2PMJU/FnGNTTYdZU2iA8ggoQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"sKisQRvXJImHmolXiQRelGcfGgnu9Q2c99WgfgKhnuOlIxlTZz5kLDXBdqRreBh5emJQBCLr3PNv8HWhchxrEQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "953a3b56-c8bb-4b34-940b-218ece16c88d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "8bf9f24b-00b3-46d7-94b1-8ed57d7bdb5e"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080123Z:8bf9f24b-00b3-46d7-94b1-8ed57d7bdb5e"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/vulnerabilityAssessments/default?api-version=2017-03-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTI3NDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2956.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=VECSMsLhEqlb5yi439hUhBmwBH%2Ftfx9Fmso3%2BTn1%2BRM%3D&se=2018-05-21T09%3A01%3A24Z&sp=rwl\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "463"
+ ],
+ "x-ms-client-request-id": [
+ "862e98d5-5fcc-4108-bf23-1c267d01fc2e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2956.blob.core.windows.net/vulnerability-assessment/\",\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": true,\r\n \"emails\": [\r\n \"fakemail1@mail.com\",\r\n \"fakemail2@mail.com\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:28 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "131d0a04-b83e-4e10-b5f2-3ae483d9a263"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "0f398339-b05c-4c00-8fda-86f841b0d2b1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080129Z:0f398339-b05c-4c00-8fda-86f841b0d2b1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/initiateScan?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTI3NDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRleHBvcnRzY2FudGVzdC0vaW5pdGlhdGVTY2FuP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2d9b368d-019b-4f0a-bae6-02756b5148f3"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T08:01:29.39Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "96"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:28 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/f00a2834-cce6-477c-bf90-cf9ee380563d?api-version=2017-10-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/f00a2834-cce6-477c-bf90-cf9ee380563d?api-version=2017-10-01-preview"
+ ],
+ "x-ms-request-id": [
+ "39b59006-35b9-4881-beda-8349c4928fca"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "b32ca17f-118a-4e85-ab0b-8dc9ea4b5f70"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080129Z:b32ca17f-118a-4e85-ab0b-8dc9ea4b5f70"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/f00a2834-cce6-477c-bf90-cf9ee380563d?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9mMDBhMjgzNC1jY2U2LTQ3N2MtYmY5MC1jZjllZTM4MDU2M2Q/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f00a2834-cce6-477c-bf90-cf9ee380563d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T08:01:29.39Z\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:45 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "300f4027-20b5-48a7-b72a-759959d878be"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14918"
+ ],
+ "x-ms-correlation-request-id": [
+ "c5f5e78b-8808-4f9a-80b7-39e6352befa6"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080145Z:c5f5e78b-8808-4f9a-80b7-39e6352befa6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/f00a2834-cce6-477c-bf90-cf9ee380563d?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9mMDBhMjgzNC1jY2U2LTQ3N2MtYmY5MC1jZjllZTM4MDU2M2Q/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T08:01:29.39Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2956.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/vulnerabilityAssessments/Default/scans/scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"name\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "736"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:45 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "8c349c23-395a-47df-af98-777b2fa908f6"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14917"
+ ],
+ "x-ms-correlation-request-id": [
+ "3fda240f-c01a-4602-b6c8-ac003330245a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080145Z:3fda240f-c01a-4602-b6c8-ac003330245a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/export?api-version=2017-10-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzk1L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTI3NDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRleHBvcnRzY2FudGVzdC0vZXhwb3J0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7e17eda1-65da-4e79-bf6e-ba752dc28bd6"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"exportedReportLocation\": \"https://sqlvatest2956.blob.core.windows.net/vulnerability-assessment/scans/sqlcrudtest-3795/sqlvulnerabilityassessmentexportscantest-2744/scan_scan1_sqlvulnerabilityassessmentexportscantest-.xlsx\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Sql/servers/sqlcrudtest-3795/databases/sqlvulnerabilityassessmentexportscantest-2744/vulnerabilityAssessments/Default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/export\",\r\n \"name\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "665"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:47 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "48ad4d63-ed18-436a-ab8b-a1e98f749162"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "5fa20766-69f8-4c40-8fe6-ff2b9657c3c2"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080148Z:5fa20766-69f8-4c40-8fe6-ff2b9657c3c2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8985?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg5ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "59f390f0-f805-44f2-9ad8-52fad3a53e4e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 21 May 2018 08:01:50 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg5ODUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14998"
+ ],
+ "x-ms-request-id": [
+ "f088dff8-a2cb-4daa-adcd-c4238cbe7ab7"
+ ],
+ "x-ms-correlation-request-id": [
+ "f088dff8-a2cb-4daa-adcd-c4238cbe7ab7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTEUROPE:20180521T080151Z:f088dff8-a2cb-4daa-adcd-c4238cbe7ab7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "CreateResourceGroup": [
+ "sqlcrudtest-8985"
+ ],
+ "CreateServer": [
+ "sqlcrudtest-3795"
+ ],
+ "TestExportDatabaseVulnerabilityAssessmentScans": [
+ "sqlvulnerabilityassessmentexportscantest-2744"
+ ],
+ "CreateStorageContainer": [
+ "sqlvatest2956"
+ ]
+ },
+ "Variables": {
+ "DefaultLocation": "west us 2",
+ "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt
index b5a6936ab9c6..dab47de7dad8 100644
--- a/src/SDKs/_metadata/sql_resource-manager.txt
+++ b/src/SDKs/_metadata/sql_resource-manager.txt
@@ -1,11 +1,12 @@
-2018-04-18 23:35:28 UTC
+
+Type dsc to start/install the DS Consolidated Console
+
1) azure-rest-api-specs repository information
-GitHub user: jugeorge
+GitHub user: yaakoviyun
Branch: master
-Commit: d08c7f54a125819caaa8c5f553206d1adbae60f9
2) AutoRest information
Requested version: latest
-Bootstrapper version: C:\Users\jugeorge\AppData\Roaming\npm `-- autorest@2.0.4262
+Bootstrapper version: C:\Users\yaiyun\AppData\Roaming\npm `-- autorest@2.0.4262
Latest installed version: