From c7aef14e99c56b3e2dbb046dfea4fa44462c78d4 Mon Sep 17 00:00:00 2001 From: ziwa-msft Date: Mon, 23 Apr 2018 16:29:45 -0700 Subject: [PATCH 01/26] Second attempt with new Repo: Rebasing .NET SDK To Version 1.31.1 With Instance Failover Group APIs (#4259) * adding generated files and tests for Cloud Lifter work * updating the SDK version in .csproj and AssemblyInfo.cs files * adding Managed Instance test recording * addressing some comments * changing tabs into spaces * Regen from swagger * Updating the release note with the current changes --- .../IInstanceFailoverGroupsOperations.cs | 350 + .../Generated/IManagedDatabasesOperations.cs | 342 + .../Generated/IManagedInstancesOperations.cs | 309 + .../Generated/ISqlManagementClient.cs | 25 +- .../InstanceFailoverGroupsOperations.cs | 1568 +++++ ...tanceFailoverGroupsOperationsExtensions.cs | 547 ++ .../Generated/ManagedDatabasesOperations.cs | 1563 +++++ .../ManagedDatabasesOperationsExtensions.cs | 541 ++ .../Generated/ManagedInstancesOperations.cs | 1646 +++++ .../ManagedInstancesOperationsExtensions.cs | 469 ++ .../Generated/Models/CatalogCollationType.cs | 22 + .../CompleteDatabaseRestoreDefinition.cs | 68 + .../Generated/Models/InstanceFailoverGroup.cs | 133 + .../InstanceFailoverGroupReadOnlyEndpoint.cs | 56 + .../InstanceFailoverGroupReadWriteEndpoint.cs | 86 + .../InstanceFailoverGroupReplicationRole.cs | 22 + .../Generated/Models/ManagedDatabase.cs | 201 + .../Models/ManagedDatabaseCreateMode.cs | 23 + .../Generated/Models/ManagedDatabaseStatus.cs | 25 + .../Generated/Models/ManagedDatabaseUpdate.cs | 193 + .../Generated/Models/ManagedInstance.cs | 161 + .../Models/ManagedInstancePairInfo.cs | 61 + .../Generated/Models/ManagedInstanceUpdate.cs | 152 + .../Generated/Models/PartnerRegionInfo.cs | 63 + .../Management.Sql/Generated/Models/Sku.cs | 102 + .../Generated/SdkInfo_SqlManagementClient.cs | 3 + .../Generated/SqlManagementClient.cs | 30 +- .../Microsoft.Azure.Management.Sql.csproj | 10 +- .../Management.Sql/Properties/AssemblyInfo.cs | 2 +- .../SqlManagement/Management.Sql/generate.ps1 | 1 + .../InstanceFailoverGroupCrudScenarioTests.cs | 133 + .../ManagedDatabaseCrudScenarioTests.cs | 121 + .../ManagedInstanceCrudScenarioTests.cs | 95 + .../TestCrudInstanceFailoverGroup.json | 4882 ++++++++++++++ .../TestCreateDropManagedDatabase.json | 2901 ++++++++ .../TestGetAndListManagedDatabase.json | 5986 +++++++++++++++++ ...estCreateUpdateGetDropManagedInstance.json | 1532 +++++ .../SqlManagement/Sql.Tests/Sql.Tests.csproj | 2 +- .../Utilities/SqlManagementTestContext.cs | 29 + .../Utilities/SqlManagementTestUtilities.cs | 113 + src/SDKs/_metadata/sql_resource-manager.txt | Bin 1298 -> 389 bytes 41 files changed, 24547 insertions(+), 21 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IInstanceFailoverGroupsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IManagedDatabasesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IManagedInstancesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/CatalogCollationType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/CompleteDatabaseRestoreDefinition.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroup.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReplicationRole.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabase.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseCreateMode.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseStatus.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseUpdate.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstancePairInfo.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerRegionInfo.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/Sku.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/generate.ps1 create mode 100644 src/SDKs/SqlManagement/Sql.Tests/InstanceFailoverGroupCrudScenarioTests.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/ManagedDatabaseCrudScenarioTests.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/ManagedInstanceCrudScenarioTests.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.InstanceFailoverGroupCrudScenarioTests/TestCrudInstanceFailoverGroup.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestCreateDropManagedDatabase.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestGetAndListManagedDatabase.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedInstanceCrudScenarioTests/TestCreateUpdateGetDropManagedInstance.json diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IInstanceFailoverGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IInstanceFailoverGroupsOperations.cs new file mode 100644 index 0000000000000..279b7a0428c66 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IInstanceFailoverGroupsOperations.cs @@ -0,0 +1,350 @@ +// +// 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; + + /// + /// InstanceFailoverGroupsOperations operations. + /// + public partial interface IInstanceFailoverGroupsOperations + { + /// + /// Gets a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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 locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// 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 locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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 locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the failover groups in a location. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// 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>> ListByLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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> FailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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> ForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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> BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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> BeginForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the failover groups in a location. + /// + /// + /// 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>> ListByLocationNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedDatabasesOperations.cs new file mode 100644 index 0000000000000..d3e5c657a0046 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedDatabasesOperations.cs @@ -0,0 +1,342 @@ +// +// 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; + + /// + /// ManagedDatabasesOperations operations. + /// + public partial interface IManagedDatabasesOperations + { + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// 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 CompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed databases. + /// + /// + /// 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 managed instance. + /// + /// + /// 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>> ListByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a managed 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 managed instance. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// 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 managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// 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 a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// 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 BeginCompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// 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 a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed databases. + /// + /// + /// 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>> ListByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedInstancesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedInstancesOperations.cs new file mode 100644 index 0000000000000..ca73e258f610c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedInstancesOperations.cs @@ -0,0 +1,309 @@ +// +// 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; + + /// + /// ManagedInstancesOperations operations. + /// + public partial interface IManagedInstancesOperations + { + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// 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 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// 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 managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// 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 managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// 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 managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// 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>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, 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 0344bb3e5cf46..0fab1c9a7481a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -126,6 +126,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IGeoBackupPoliciesOperations GeoBackupPolicies { get; } + /// + /// Gets the IRecommendedElasticPoolsOperations. + /// + IRecommendedElasticPoolsOperations RecommendedElasticPools { get; } + /// /// Gets the IReplicationLinksOperations. /// @@ -156,11 +161,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IElasticPoolDatabaseActivitiesOperations ElasticPoolDatabaseActivities { get; } - /// - /// Gets the IRecommendedElasticPoolsOperations. - /// - IRecommendedElasticPoolsOperations RecommendedElasticPools { get; } - /// /// Gets the IServiceTierAdvisorsOperations. /// @@ -206,6 +206,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IFailoverGroupsOperations FailoverGroups { get; } + /// + /// Gets the IManagedInstancesOperations. + /// + IManagedInstancesOperations ManagedInstances { get; } + /// /// Gets the IOperations. /// @@ -251,6 +256,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IBackupLongTermRetentionPoliciesOperations BackupLongTermRetentionPolicies { get; } + /// + /// Gets the IManagedDatabasesOperations. + /// + IManagedDatabasesOperations ManagedDatabases { get; } + /// /// Gets the IServerAutomaticTuningOperations. /// @@ -276,5 +286,10 @@ public partial interface ISqlManagementClient : System.IDisposable /// IElasticPoolOperations ElasticPoolOperations { get; } + /// + /// Gets the IInstanceFailoverGroupsOperations. + /// + IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperations.cs new file mode 100644 index 0000000000000..2596e4085a075 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperations.cs @@ -0,0 +1,1568 @@ +// +// 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; + + /// + /// InstanceFailoverGroupsOperations operations. + /// + internal partial class InstanceFailoverGroupsOperations : IServiceOperations, IInstanceFailoverGroupsOperations + { + /// + /// Initializes a new instance of the InstanceFailoverGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal InstanceFailoverGroupsOperations(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 failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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 locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + 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/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _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 failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// 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>> ListByLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("locationName", locationName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByLocation", 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/locations/{locationName}/instanceFailoverGroups").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _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; + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> FailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginForceFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + 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 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("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _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 && (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(); + } + // 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; + } + + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _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 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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> BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", 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/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/failover").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _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(); + } + // 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; + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// 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> BeginForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginForceFailoverAllowDataLoss", 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/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _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(); + } + // 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; + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// 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>> ListByLocationNextWithHttpMessagesAsync(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, "ListByLocationNext", 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/InstanceFailoverGroupsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperationsExtensions.cs new file mode 100644 index 0000000000000..0b2a582581555 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperationsExtensions.cs @@ -0,0 +1,547 @@ +// +// 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 InstanceFailoverGroupsOperations. + /// + public static partial class InstanceFailoverGroupsOperationsExtensions + { + /// + /// Gets a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup Get(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.GetAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + public static InstanceFailoverGroup CreateOrUpdate(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, locationName, failoverGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static void Delete(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + operations.DeleteAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// 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 region where the resource is located. + /// + public static IPage ListByLocation(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName) + { + return operations.ListByLocationAsync(resourceGroupName, locationName).GetAwaiter().GetResult(); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByLocationAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByLocationWithHttpMessagesAsync(resourceGroupName, locationName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup Failover(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.FailoverAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task FailoverAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.FailoverWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup ForceFailoverAllowDataLoss(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.ForceFailoverAllowDataLossAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task ForceFailoverAllowDataLossAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ForceFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + public static InstanceFailoverGroup BeginCreateOrUpdate(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, locationName, failoverGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static void BeginDelete(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + operations.BeginDeleteAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a failover group. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup BeginFailover(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.BeginFailoverAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginFailoverAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup BeginForceFailoverAllowDataLoss(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.BeginForceFailoverAllowDataLossAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// 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 region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginForceFailoverAllowDataLossAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginForceFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByLocationNext(this IInstanceFailoverGroupsOperations operations, string nextPageLink) + { + return operations.ListByLocationNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByLocationNextAsync(this IInstanceFailoverGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByLocationNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperations.cs new file mode 100644 index 0000000000000..4c1c231a20974 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperations.cs @@ -0,0 +1,1563 @@ +// +// 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; + + /// + /// ManagedDatabasesOperations operations. + /// + internal partial class ManagedDatabasesOperations : IServiceOperations, IManagedDatabasesOperations + { + /// + /// Initializes a new instance of the ManagedDatabasesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ManagedDatabasesOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task CompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCompleteRestoreWithHttpMessagesAsync(locationName, operationId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// 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 managed instance. + /// + /// + /// 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>> ListByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("managedInstanceName", managedInstanceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstance", 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/managedInstances/{managedInstanceName}/databases").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _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; + } + + /// + /// Gets a managed 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 managed instance. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _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 a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// 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 BeginCompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + 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 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("locationName", locationName); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCompleteRestore", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/managedDatabaseRestoreAzureAsyncOperation/{operationId}/completeRestore").ToString(); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(operationId, Client.SerializationSettings).Trim('"'))); + _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; + 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 != 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; + } + + /// + /// Creates a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + 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 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("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _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 && (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(); + } + // 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; + } + + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// 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 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _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 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _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("PATCH"); + _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 != 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(); + } + // 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; + } + + /// + /// Gets a list of managed databases. + /// + /// + /// 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>> ListByInstanceNextWithHttpMessagesAsync(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, "ListByInstanceNext", 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/ManagedDatabasesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperationsExtensions.cs new file mode 100644 index 0000000000000..2322a35971c81 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperationsExtensions.cs @@ -0,0 +1,541 @@ +// +// 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 ManagedDatabasesOperations. + /// + public static partial class ManagedDatabasesOperationsExtensions + { + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + public static void CompleteRestore(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters) + { + operations.CompleteRestoreAsync(locationName, operationId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The cancellation token. + /// + public static async Task CompleteRestoreAsync(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CompleteRestoreWithHttpMessagesAsync(locationName, operationId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// 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 managed instance. + /// + public static IPage ListByInstance(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName) + { + return operations.ListByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// 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 managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByInstanceAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a managed 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 managed instance. + /// + /// + /// The name of the database. + /// + public static ManagedDatabase Get(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName) + { + return operations.GetAsync(resourceGroupName, managedInstanceName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a managed 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// The name of the database. + /// + public static void Delete(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName) + { + operations.DeleteAsync(resourceGroupName, managedInstanceName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase Update(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + public static void BeginCompleteRestore(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters) + { + operations.BeginCompleteRestoreAsync(locationName, operationId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCompleteRestoreAsync(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginCompleteRestoreWithHttpMessagesAsync(locationName, operationId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a new database or updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// The name of the database. + /// + public static void BeginDelete(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName) + { + operations.BeginDeleteAsync(resourceGroupName, managedInstanceName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the managed 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an existing 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 managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByInstanceNext(this IManagedDatabasesOperations operations, string nextPageLink) + { + return operations.ListByInstanceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByInstanceNextAsync(this IManagedDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperations.cs new file mode 100644 index 0000000000000..855c4b1476078 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperations.cs @@ -0,0 +1,1646 @@ +// +// 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; + + /// + /// ManagedInstancesOperations operations. + /// + internal partial class ManagedInstancesOperations : IServiceOperations, IManagedInstancesOperations + { + /// + /// Initializes a new instance of the ManagedInstancesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ManagedInstancesOperations(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 list of all managed instances in the subscription. + /// + /// + /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); + _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; + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", 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/managedInstances").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _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; + } + + /// + /// Gets a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// 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 managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + 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/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _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 managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + 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 apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _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 && (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(); + } + // 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; + } + + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _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 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _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("PATCH"); + _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 != 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(); + } + // 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; + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(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, "ListNext", 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; + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// 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>> ListByResourceGroupNextWithHttpMessagesAsync(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, "ListByResourceGroupNext", 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/ManagedInstancesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperationsExtensions.cs new file mode 100644 index 0000000000000..e714971cf255b --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperationsExtensions.cs @@ -0,0 +1,469 @@ +// +// 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 ManagedInstancesOperations. + /// + public static partial class ManagedInstancesOperationsExtensions + { + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IManagedInstancesOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IManagedInstancesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// 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. + /// + public static IPage ListByResourceGroup(this IManagedInstancesOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// 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 cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IManagedInstancesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a managed instance. + /// + /// + /// 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 managed instance. + /// + public static ManagedInstance Get(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName) + { + return operations.GetAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance CreateOrUpdate(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + public static void Delete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName) + { + operations.DeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance Update(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance BeginCreateOrUpdate(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + public static void BeginDelete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName) + { + operations.BeginDeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance BeginUpdate(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a managed instance. + /// + /// + /// 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 managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IManagedInstancesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CatalogCollationType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CatalogCollationType.cs new file mode 100644 index 0000000000000..9f424cc32d9b4 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CatalogCollationType.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 CatalogCollationType. + /// + public static class CatalogCollationType + { + public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; + public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CompleteDatabaseRestoreDefinition.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CompleteDatabaseRestoreDefinition.cs new file mode 100644 index 0000000000000..05f5cfcce6efc --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CompleteDatabaseRestoreDefinition.cs @@ -0,0 +1,68 @@ +// +// 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.Linq; + + /// + /// Contains the information necessary to perform a complete database + /// restore operation. + /// + public partial class CompleteDatabaseRestoreDefinition + { + /// + /// Initializes a new instance of the CompleteDatabaseRestoreDefinition + /// class. + /// + public CompleteDatabaseRestoreDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CompleteDatabaseRestoreDefinition + /// class. + /// + /// The last backup name to apply + public CompleteDatabaseRestoreDefinition(string lastBackupName) + { + LastBackupName = lastBackupName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the last backup name to apply + /// + [JsonProperty(PropertyName = "lastBackupName")] + public string LastBackupName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LastBackupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LastBackupName"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroup.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroup.cs new file mode 100644 index 0000000000000..19f2f6800532a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroup.cs @@ -0,0 +1,133 @@ +// +// 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; + + /// + /// An instance failover group. + /// + [Rest.Serialization.JsonTransformation] + public partial class InstanceFailoverGroup : ProxyResource + { + /// + /// Initializes a new instance of the InstanceFailoverGroup class. + /// + public InstanceFailoverGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstanceFailoverGroup class. + /// + /// Read-write endpoint of the failover + /// group instance. + /// Partner region information for the + /// failover group. + /// List of managed instance pairs + /// in the failover group. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Read-only endpoint of the failover + /// group instance. + /// Local replication role of the + /// failover group instance. Possible values include: 'Primary', + /// 'Secondary' + /// Replication state of the failover + /// group instance. + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) + : base(id, name, type) + { + ReadWriteEndpoint = readWriteEndpoint; + ReadOnlyEndpoint = readOnlyEndpoint; + ReplicationRole = replicationRole; + ReplicationState = replicationState; + PartnerRegions = partnerRegions; + ManagedInstancePairs = managedInstancePairs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets read-write endpoint of the failover group instance. + /// + [JsonProperty(PropertyName = "properties.readWriteEndpoint")] + public InstanceFailoverGroupReadWriteEndpoint ReadWriteEndpoint { get; set; } + + /// + /// Gets or sets read-only endpoint of the failover group instance. + /// + [JsonProperty(PropertyName = "properties.readOnlyEndpoint")] + public InstanceFailoverGroupReadOnlyEndpoint ReadOnlyEndpoint { get; set; } + + /// + /// Gets local replication role of the failover group instance. + /// Possible values include: 'Primary', 'Secondary' + /// + [JsonProperty(PropertyName = "properties.replicationRole")] + public string ReplicationRole { get; private set; } + + /// + /// Gets replication state of the failover group instance. + /// + [JsonProperty(PropertyName = "properties.replicationState")] + public string ReplicationState { get; private set; } + + /// + /// Gets or sets partner region information for the failover group. + /// + [JsonProperty(PropertyName = "properties.partnerRegions")] + public IList PartnerRegions { get; set; } + + /// + /// Gets or sets list of managed instance pairs in the failover group. + /// + [JsonProperty(PropertyName = "properties.managedInstancePairs")] + public IList ManagedInstancePairs { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ReadWriteEndpoint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ReadWriteEndpoint"); + } + if (PartnerRegions == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PartnerRegions"); + } + if (ManagedInstancePairs == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ManagedInstancePairs"); + } + if (ReadWriteEndpoint != null) + { + ReadWriteEndpoint.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs new file mode 100644 index 0000000000000..c3e7c22f98d05 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -0,0 +1,56 @@ +// +// 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; + + /// + /// Read-only endpoint of the failover group instance. + /// + public partial class InstanceFailoverGroupReadOnlyEndpoint + { + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadOnlyEndpoint class. + /// + public InstanceFailoverGroupReadOnlyEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadOnlyEndpoint class. + /// + /// Failover policy of the read-only + /// endpoint for the failover group. Possible values include: + /// 'Disabled', 'Enabled' + public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + { + FailoverPolicy = failoverPolicy; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets failover policy of the read-only endpoint for the + /// failover group. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "failoverPolicy")] + public string FailoverPolicy { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs new file mode 100644 index 0000000000000..299752e7bf350 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -0,0 +1,86 @@ +// +// 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.Linq; + + /// + /// Read-write endpoint of the failover group instance. + /// + public partial class InstanceFailoverGroupReadWriteEndpoint + { + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadWriteEndpoint class. + /// + public InstanceFailoverGroupReadWriteEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadWriteEndpoint class. + /// + /// Failover policy of the read-write + /// endpoint for the failover group. If failoverPolicy is Automatic + /// then failoverWithDataLossGracePeriodMinutes is required. Possible + /// values include: 'Manual', 'Automatic' + /// Grace period + /// before failover with data loss is attempted for the read-write + /// endpoint. If failoverPolicy is Automatic then + /// failoverWithDataLossGracePeriodMinutes is required. + public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + { + FailoverPolicy = failoverPolicy; + FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets failover policy of the read-write endpoint for the + /// failover group. If failoverPolicy is Automatic then + /// failoverWithDataLossGracePeriodMinutes is required. Possible values + /// include: 'Manual', 'Automatic' + /// + [JsonProperty(PropertyName = "failoverPolicy")] + public string FailoverPolicy { get; set; } + + /// + /// Gets or sets grace period before failover with data loss is + /// attempted for the read-write endpoint. If failoverPolicy is + /// Automatic then failoverWithDataLossGracePeriodMinutes is required. + /// + [JsonProperty(PropertyName = "failoverWithDataLossGracePeriodMinutes")] + public int? FailoverWithDataLossGracePeriodMinutes { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReplicationRole.cs new file mode 100644 index 0000000000000..cd4a463d4d899 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReplicationRole.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 InstanceFailoverGroupReplicationRole. + /// + public static class InstanceFailoverGroupReplicationRole + { + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabase.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabase.cs new file mode 100644 index 0000000000000..8cb9f179dc928 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabase.cs @@ -0,0 +1,201 @@ +// +// 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 managed database resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedDatabase : TrackedResource + { + /// + /// Initializes a new instance of the ManagedDatabase class. + /// + public ManagedDatabase() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedDatabase class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// Collation of the managed database. + /// Status for the database. Possible values + /// include: 'Online', 'Offline', 'Shutdown', 'Creating', + /// 'Inaccessible' + /// Creation date of the database. + /// Earliest restore point in time + /// for point in time restore. + /// Conditional. If createMode is + /// PointInTimeRestore, this value is required. Specifies the point in + /// time (ISO8601 format) of the source database that will be restored + /// to create the new database. + /// Geo paired region. + /// Collation of the metadata catalog. + /// Possible values include: 'DATABASE_DEFAULT', + /// 'SQL_Latin1_General_CP1_CI_AS' + /// Managed database create mode. + /// PointInTimeRestore: Create a database by restoring a point in time + /// backup of an existing database. SourceDatabaseName, + /// SourceManagedInstanceName and PointInTime must be specified. + /// RestoreExternalBackup: Create a database by restoring from external + /// backup files. Collation, StorageContainerUri and + /// StorageContainerSasToken must be specified. Possible values + /// include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// Conditional. If createMode is + /// RestoreExternalBackup, this value is required. Specifies the uri of + /// the storage container where backups for this restore are + /// stored. + /// The resource identifier of the + /// source database associated with create operation of this + /// database. + /// Conditional. If createMode + /// is RestoreExternalBackup, this value is required. Specifies the + /// storage container sas token. + /// Instance Failover Group resource + /// identifier that this managed database belongs to. + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string)) + : base(location, id, name, type, tags) + { + Collation = collation; + Status = status; + CreationDate = creationDate; + EarliestRestorePoint = earliestRestorePoint; + RestorePointInTime = restorePointInTime; + DefaultSecondaryLocation = defaultSecondaryLocation; + CatalogCollation = catalogCollation; + CreateMode = createMode; + StorageContainerUri = storageContainerUri; + SourceDatabaseId = sourceDatabaseId; + StorageContainerSasToken = storageContainerSasToken; + FailoverGroupId = failoverGroupId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets collation of the managed database. + /// + [JsonProperty(PropertyName = "properties.collation")] + public string Collation { get; set; } + + /// + /// Gets status for the database. Possible values include: 'Online', + /// 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets creation date of the database. + /// + [JsonProperty(PropertyName = "properties.creationDate")] + public System.DateTime? CreationDate { get; private set; } + + /// + /// Gets earliest restore point in time for point in time restore. + /// + [JsonProperty(PropertyName = "properties.earliestRestorePoint")] + public System.DateTime? EarliestRestorePoint { get; private set; } + + /// + /// Gets or sets conditional. If createMode is PointInTimeRestore, this + /// value is required. Specifies the point in time (ISO8601 format) of + /// the source database that will be restored to create the new + /// database. + /// + [JsonProperty(PropertyName = "properties.restorePointInTime")] + public System.DateTime? RestorePointInTime { get; set; } + + /// + /// Gets geo paired region. + /// + [JsonProperty(PropertyName = "properties.defaultSecondaryLocation")] + public string DefaultSecondaryLocation { get; private set; } + + /// + /// Gets or sets collation of the metadata catalog. Possible values + /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' + /// + [JsonProperty(PropertyName = "properties.catalogCollation")] + public string CatalogCollation { get; set; } + + /// + /// Gets or sets managed database create mode. PointInTimeRestore: + /// Create a database by restoring a point in time backup of an + /// existing database. SourceDatabaseName, SourceManagedInstanceName + /// and PointInTime must be specified. RestoreExternalBackup: Create a + /// database by restoring from external backup files. Collation, + /// StorageContainerUri and StorageContainerSasToken must be specified. + /// Possible values include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// + [JsonProperty(PropertyName = "properties.createMode")] + public string CreateMode { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the uri of the storage container + /// where backups for this restore are stored. + /// + [JsonProperty(PropertyName = "properties.storageContainerUri")] + public string StorageContainerUri { get; set; } + + /// + /// Gets or sets the resource identifier of the source database + /// associated with create operation of this database. + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseId")] + public string SourceDatabaseId { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the storage container sas token. + /// + [JsonProperty(PropertyName = "properties.storageContainerSasToken")] + public string StorageContainerSasToken { get; set; } + + /// + /// Gets instance Failover Group resource identifier that this managed + /// database belongs to. + /// + [JsonProperty(PropertyName = "properties.failoverGroupId")] + public string FailoverGroupId { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseCreateMode.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseCreateMode.cs new file mode 100644 index 0000000000000..e1ae53d2bfbd0 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseCreateMode.cs @@ -0,0 +1,23 @@ +// +// 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 ManagedDatabaseCreateMode. + /// + public static class ManagedDatabaseCreateMode + { + public const string Default = "Default"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string PointInTimeRestore = "PointInTimeRestore"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseStatus.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseStatus.cs new file mode 100644 index 0000000000000..7bb5997f1665a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseStatus.cs @@ -0,0 +1,25 @@ +// +// 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 ManagedDatabaseStatus. + /// + public static class ManagedDatabaseStatus + { + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string Shutdown = "Shutdown"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseUpdate.cs new file mode 100644 index 0000000000000..a4aa043cb4d91 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseUpdate.cs @@ -0,0 +1,193 @@ +// +// 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; + + /// + /// An managed database update. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedDatabaseUpdate + { + /// + /// Initializes a new instance of the ManagedDatabaseUpdate class. + /// + public ManagedDatabaseUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedDatabaseUpdate class. + /// + /// Collation of the managed database. + /// Status for the database. Possible values + /// include: 'Online', 'Offline', 'Shutdown', 'Creating', + /// 'Inaccessible' + /// Creation date of the database. + /// Earliest restore point in time + /// for point in time restore. + /// Conditional. If createMode is + /// PointInTimeRestore, this value is required. Specifies the point in + /// time (ISO8601 format) of the source database that will be restored + /// to create the new database. + /// Geo paired region. + /// Collation of the metadata catalog. + /// Possible values include: 'DATABASE_DEFAULT', + /// 'SQL_Latin1_General_CP1_CI_AS' + /// Managed database create mode. + /// PointInTimeRestore: Create a database by restoring a point in time + /// backup of an existing database. SourceDatabaseName, + /// SourceManagedInstanceName and PointInTime must be specified. + /// RestoreExternalBackup: Create a database by restoring from external + /// backup files. Collation, StorageContainerUri and + /// StorageContainerSasToken must be specified. Possible values + /// include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// Conditional. If createMode is + /// RestoreExternalBackup, this value is required. Specifies the uri of + /// the storage container where backups for this restore are + /// stored. + /// The resource identifier of the + /// source database associated with create operation of this + /// database. + /// Conditional. If createMode + /// is RestoreExternalBackup, this value is required. Specifies the + /// storage container sas token. + /// Instance Failover Group resource + /// identifier that this managed database belongs to. + /// Resource tags. + public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), IDictionary tags = default(IDictionary)) + { + Collation = collation; + Status = status; + CreationDate = creationDate; + EarliestRestorePoint = earliestRestorePoint; + RestorePointInTime = restorePointInTime; + DefaultSecondaryLocation = defaultSecondaryLocation; + CatalogCollation = catalogCollation; + CreateMode = createMode; + StorageContainerUri = storageContainerUri; + SourceDatabaseId = sourceDatabaseId; + StorageContainerSasToken = storageContainerSasToken; + FailoverGroupId = failoverGroupId; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets collation of the managed database. + /// + [JsonProperty(PropertyName = "properties.collation")] + public string Collation { get; set; } + + /// + /// Gets status for the database. Possible values include: 'Online', + /// 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets creation date of the database. + /// + [JsonProperty(PropertyName = "properties.creationDate")] + public System.DateTime? CreationDate { get; private set; } + + /// + /// Gets earliest restore point in time for point in time restore. + /// + [JsonProperty(PropertyName = "properties.earliestRestorePoint")] + public System.DateTime? EarliestRestorePoint { get; private set; } + + /// + /// Gets or sets conditional. If createMode is PointInTimeRestore, this + /// value is required. Specifies the point in time (ISO8601 format) of + /// the source database that will be restored to create the new + /// database. + /// + [JsonProperty(PropertyName = "properties.restorePointInTime")] + public System.DateTime? RestorePointInTime { get; set; } + + /// + /// Gets geo paired region. + /// + [JsonProperty(PropertyName = "properties.defaultSecondaryLocation")] + public string DefaultSecondaryLocation { get; private set; } + + /// + /// Gets or sets collation of the metadata catalog. Possible values + /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' + /// + [JsonProperty(PropertyName = "properties.catalogCollation")] + public string CatalogCollation { get; set; } + + /// + /// Gets or sets managed database create mode. PointInTimeRestore: + /// Create a database by restoring a point in time backup of an + /// existing database. SourceDatabaseName, SourceManagedInstanceName + /// and PointInTime must be specified. RestoreExternalBackup: Create a + /// database by restoring from external backup files. Collation, + /// StorageContainerUri and StorageContainerSasToken must be specified. + /// Possible values include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// + [JsonProperty(PropertyName = "properties.createMode")] + public string CreateMode { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the uri of the storage container + /// where backups for this restore are stored. + /// + [JsonProperty(PropertyName = "properties.storageContainerUri")] + public string StorageContainerUri { get; set; } + + /// + /// Gets or sets the resource identifier of the source database + /// associated with create operation of this database. + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseId")] + public string SourceDatabaseId { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the storage container sas token. + /// + [JsonProperty(PropertyName = "properties.storageContainerSasToken")] + public string StorageContainerSasToken { get; set; } + + /// + /// Gets instance Failover Group resource identifier that this managed + /// database belongs to. + /// + [JsonProperty(PropertyName = "properties.failoverGroupId")] + public string FailoverGroupId { get; private set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs new file mode 100644 index 0000000000000..f930a236ee4db --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs @@ -0,0 +1,161 @@ +// +// 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; + + /// + /// An Azure SQL managed instance. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedInstance : TrackedResource + { + /// + /// Initializes a new instance of the ManagedInstance class. + /// + public ManagedInstance() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedInstance class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// The Azure Active Directory identity of the + /// managed instance. + /// Managed instance sku + /// The fully qualified domain + /// name of the managed instance. + /// Administrator username for the + /// managed instance. Can only be specified when the managed instance + /// is being created (and is required for creation). + /// The administrator login + /// password (required for managed instance creation). + /// Subnet resource ID for the managed + /// instance. + /// The state of the managed instance. + /// The license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// The number of VCores. + /// The maximum storage size in + /// GB. + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?)) + : base(location, id, name, type, tags) + { + Identity = identity; + Sku = sku; + FullyQualifiedDomainName = fullyQualifiedDomainName; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + SubnetId = subnetId; + State = state; + LicenseType = licenseType; + VCores = vCores; + StorageSizeInGB = storageSizeInGB; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Azure Active Directory identity of the managed + /// instance. + /// + [JsonProperty(PropertyName = "identity")] + public ResourceIdentity Identity { get; set; } + + /// + /// Gets or sets managed instance sku + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets the fully qualified domain name of the managed instance. + /// + [JsonProperty(PropertyName = "properties.fullyQualifiedDomainName")] + public string FullyQualifiedDomainName { get; private set; } + + /// + /// Gets or sets administrator username for the managed instance. Can + /// only be specified when the managed instance is being created (and + /// is required for creation). + /// + [JsonProperty(PropertyName = "properties.administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets the administrator login password (required for managed + /// instance creation). + /// + [JsonProperty(PropertyName = "properties.administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets subnet resource ID for the managed instance. + /// + [JsonProperty(PropertyName = "properties.subnetId")] + public string SubnetId { get; set; } + + /// + /// Gets the state of the managed instance. + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets or sets the license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// + [JsonProperty(PropertyName = "properties.licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets the number of VCores. + /// + [JsonProperty(PropertyName = "properties.vCores")] + public int? VCores { get; set; } + + /// + /// Gets or sets the maximum storage size in GB. + /// + [JsonProperty(PropertyName = "properties.storageSizeInGB")] + public int? StorageSizeInGB { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Sku != null) + { + Sku.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstancePairInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstancePairInfo.cs new file mode 100644 index 0000000000000..833b26752737a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstancePairInfo.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; + + /// + /// Pairs of Managed Instances in the failover group. + /// + public partial class ManagedInstancePairInfo + { + /// + /// Initializes a new instance of the ManagedInstancePairInfo class. + /// + public ManagedInstancePairInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedInstancePairInfo class. + /// + /// Id of Primary Managed + /// Instance in pair. + /// Id of Partner Managed + /// Instance in pair. + public ManagedInstancePairInfo(string primaryManagedInstanceId = default(string), string partnerManagedInstanceId = default(string)) + { + PrimaryManagedInstanceId = primaryManagedInstanceId; + PartnerManagedInstanceId = partnerManagedInstanceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets id of Primary Managed Instance in pair. + /// + [JsonProperty(PropertyName = "primaryManagedInstanceId")] + public string PrimaryManagedInstanceId { get; set; } + + /// + /// Gets or sets id of Partner Managed Instance in pair. + /// + [JsonProperty(PropertyName = "partnerManagedInstanceId")] + public string PartnerManagedInstanceId { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs new file mode 100644 index 0000000000000..7e64f6fff2f1a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs @@ -0,0 +1,152 @@ +// +// 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; + + /// + /// An update request for an Azure SQL Database managed instance. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedInstanceUpdate + { + /// + /// Initializes a new instance of the ManagedInstanceUpdate class. + /// + public ManagedInstanceUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedInstanceUpdate class. + /// + /// Managed instance sku + /// The fully qualified domain + /// name of the managed instance. + /// Administrator username for the + /// managed instance. Can only be specified when the managed instance + /// is being created (and is required for creation). + /// The administrator login + /// password (required for managed instance creation). + /// Subnet resource ID for the managed + /// instance. + /// The state of the managed instance. + /// The license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// The number of VCores. + /// The maximum storage size in + /// GB. + /// Resource tags. + public ManagedInstanceUpdate(Sku sku = default(Sku), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), IDictionary tags = default(IDictionary)) + { + Sku = sku; + FullyQualifiedDomainName = fullyQualifiedDomainName; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + SubnetId = subnetId; + State = state; + LicenseType = licenseType; + VCores = vCores; + StorageSizeInGB = storageSizeInGB; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets managed instance sku + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets the fully qualified domain name of the managed instance. + /// + [JsonProperty(PropertyName = "properties.fullyQualifiedDomainName")] + public string FullyQualifiedDomainName { get; private set; } + + /// + /// Gets or sets administrator username for the managed instance. Can + /// only be specified when the managed instance is being created (and + /// is required for creation). + /// + [JsonProperty(PropertyName = "properties.administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets the administrator login password (required for managed + /// instance creation). + /// + [JsonProperty(PropertyName = "properties.administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets subnet resource ID for the managed instance. + /// + [JsonProperty(PropertyName = "properties.subnetId")] + public string SubnetId { get; set; } + + /// + /// Gets the state of the managed instance. + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets or sets the license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// + [JsonProperty(PropertyName = "properties.licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets the number of VCores. + /// + [JsonProperty(PropertyName = "properties.vCores")] + public int? VCores { get; set; } + + /// + /// Gets or sets the maximum storage size in GB. + /// + [JsonProperty(PropertyName = "properties.storageSizeInGB")] + public int? StorageSizeInGB { get; set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Sku != null) + { + Sku.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerRegionInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerRegionInfo.cs new file mode 100644 index 0000000000000..4835389285eff --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerRegionInfo.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 Newtonsoft.Json; + using System.Linq; + + /// + /// Partner region information for the failover group. + /// + public partial class PartnerRegionInfo + { + /// + /// Initializes a new instance of the PartnerRegionInfo class. + /// + public PartnerRegionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PartnerRegionInfo class. + /// + /// Geo location of the partner managed + /// instances. + /// Replication role of the partner + /// managed instances. Possible values include: 'Primary', + /// 'Secondary' + public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) + { + Location = location; + ReplicationRole = replicationRole; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets geo location of the partner managed instances. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets replication role of the partner managed instances. Possible + /// values include: 'Primary', 'Secondary' + /// + [JsonProperty(PropertyName = "replicationRole")] + public string ReplicationRole { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Sku.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Sku.cs new file mode 100644 index 0000000000000..9dc67c29fcc42 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Sku.cs @@ -0,0 +1,102 @@ +// +// 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.Linq; + + /// + /// An ARM Resource SKU. + /// + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Sku class. + /// + /// The name of the SKU, typically, a letter + + /// Number code, e.g. P3. + /// The tier of the particular SKU, e.g. Basic, + /// Premium. + /// Size of the particular SKU + /// If the service has different generations of + /// hardware, for the same SKU, then that can be captured here. + /// Capacity of the particular SKU. + public Sku(string name, string tier = default(string), string size = default(string), string family = default(string), int? capacity = default(int?)) + { + Name = name; + Tier = tier; + Size = size; + Family = family; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the SKU, typically, a letter + Number + /// code, e.g. P3. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the tier of the particular SKU, e.g. Basic, Premium. + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; set; } + + /// + /// Gets or sets size of the particular SKU + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; set; } + + /// + /// Gets or sets if the service has different generations of hardware, + /// for the same SKU, then that can be captured here. + /// + [JsonProperty(PropertyName = "family")] + public string Family { get; set; } + + /// + /// Gets or sets capacity of the particular SKU. + /// + [JsonProperty(PropertyName = "capacity")] + public int? Capacity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index 43df578aee1eb..e00e947dff346 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -30,7 +30,10 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "FailoverGroups", "2015-05-01-preview"), new Tuple("Sql", "FirewallRules", "2014-04-01"), new Tuple("Sql", "GeoBackupPolicies", "2014-04-01"), + new Tuple("Sql", "InstanceFailoverGroups", "2017-10-01-preview"), new Tuple("Sql", "LongTermRetentionBackups", "2017-03-01-preview"), + new Tuple("Sql", "ManagedDatabases", "2017-03-01-preview"), + new Tuple("Sql", "ManagedInstances", "2015-05-01-preview"), new Tuple("Sql", "Operations", "2015-05-01-preview"), new Tuple("Sql", "RecommendedElasticPools", "2014-04-01"), new Tuple("Sql", "RecoverableDatabases", "2014-04-01"), diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index 16dfaac1a2a86..5f540eb7bef8d 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -131,6 +131,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IGeoBackupPoliciesOperations GeoBackupPolicies { get; private set; } + /// + /// Gets the IRecommendedElasticPoolsOperations. + /// + public virtual IRecommendedElasticPoolsOperations RecommendedElasticPools { get; private set; } + /// /// Gets the IReplicationLinksOperations. /// @@ -161,11 +166,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IElasticPoolDatabaseActivitiesOperations ElasticPoolDatabaseActivities { get; private set; } - /// - /// Gets the IRecommendedElasticPoolsOperations. - /// - public virtual IRecommendedElasticPoolsOperations RecommendedElasticPools { get; private set; } - /// /// Gets the IServiceTierAdvisorsOperations. /// @@ -211,6 +211,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IFailoverGroupsOperations FailoverGroups { get; private set; } + /// + /// Gets the IManagedInstancesOperations. + /// + public virtual IManagedInstancesOperations ManagedInstances { get; private set; } + /// /// Gets the IOperations. /// @@ -256,6 +261,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IBackupLongTermRetentionPoliciesOperations BackupLongTermRetentionPolicies { get; private set; } + /// + /// Gets the IManagedDatabasesOperations. + /// + public virtual IManagedDatabasesOperations ManagedDatabases { get; private set; } + /// /// Gets the IServerAutomaticTuningOperations. /// @@ -281,6 +291,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IElasticPoolOperations ElasticPoolOperations { get; private set; } + /// + /// Gets the IInstanceFailoverGroupsOperations. + /// + public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// @@ -494,13 +509,13 @@ private void Initialize() ElasticPools = new ElasticPoolsOperations(this); FirewallRules = new FirewallRulesOperations(this); GeoBackupPolicies = new GeoBackupPoliciesOperations(this); + RecommendedElasticPools = new RecommendedElasticPoolsOperations(this); ReplicationLinks = new ReplicationLinksOperations(this); ServerAzureADAdministrators = new ServerAzureADAdministratorsOperations(this); ServerCommunicationLinks = new ServerCommunicationLinksOperations(this); ServiceObjectives = new ServiceObjectivesOperations(this); ElasticPoolActivities = new ElasticPoolActivitiesOperations(this); ElasticPoolDatabaseActivities = new ElasticPoolDatabaseActivitiesOperations(this); - RecommendedElasticPools = new RecommendedElasticPoolsOperations(this); ServiceTierAdvisors = new ServiceTierAdvisorsOperations(this); TransparentDataEncryptions = new TransparentDataEncryptionsOperations(this); TransparentDataEncryptionActivities = new TransparentDataEncryptionActivitiesOperations(this); @@ -510,6 +525,7 @@ private void Initialize() DatabaseAutomaticTuning = new DatabaseAutomaticTuningOperations(this); EncryptionProtectors = new EncryptionProtectorsOperations(this); FailoverGroups = new FailoverGroupsOperations(this); + ManagedInstances = new ManagedInstancesOperations(this); Operations = new Operations(this); ServerKeys = new ServerKeysOperations(this); SyncAgents = new SyncAgentsOperations(this); @@ -519,11 +535,13 @@ private void Initialize() VirtualNetworkRules = new VirtualNetworkRulesOperations(this); LongTermRetentionBackups = new LongTermRetentionBackupsOperations(this); BackupLongTermRetentionPolicies = new BackupLongTermRetentionPoliciesOperations(this); + ManagedDatabases = new ManagedDatabasesOperations(this); ServerAutomaticTuning = new ServerAutomaticTuningOperations(this); ServerDnsAliases = new ServerDnsAliasesOperations(this); RestorePoints = new RestorePointsOperations(this); DatabaseOperations = new DatabaseOperations(this); ElasticPoolOperations = new ElasticPoolOperations(this); + InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; 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 dc80275b4ee01..992e25221a261 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -7,18 +7,12 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.13.0-preview + 1.13.1-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 93401e0c44d4a..1fa72077e9787 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.13.0.0")] +[assembly: AssemblyFileVersion("1.13.1.0")] diff --git a/src/SDKs/SqlManagement/Management.Sql/generate.ps1 b/src/SDKs/SqlManagement/Management.Sql/generate.ps1 new file mode 100644 index 0000000000000..65cb5ffa0b9d4 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/generate.ps1 @@ -0,0 +1 @@ +powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File "$(split-path $SCRIPT:MyInvocation.MyCommand.Path -parent)\..\..\..\..\tools\generateTool.ps1" -ResourceProvider "sql/resource-manager" -PowershellInvoker -AutoRestVersion "latest" \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/InstanceFailoverGroupCrudScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/InstanceFailoverGroupCrudScenarioTests.cs new file mode 100644 index 0000000000000..9f3471f648b69 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/InstanceFailoverGroupCrudScenarioTests.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Azure.Test.HttpRecorder; +using Microsoft.Rest.Azure; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading; +using Xunit; + +namespace Sql.Tests +{ + public class InstanceFailoverGroupCrudScenarioTests + { + [Fact] + public void TestCrudInstanceFailoverGroup() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + SqlManagementClient sqlClient = context.GetClient(); + + // Names of pre-existing ManagedInstances + string sourceManagedInstanceName = "tdstage-haimb-dont-delete-3"; + string targetManagedInstanceName = "threat-detection-test-1"; + string sourceResourceGroup = "testclrg"; + string targetResourceGroup = "testclrg"; + + // Create server + var sourceManagedInstance = sqlClient.ManagedInstances.Get(sourceResourceGroup, sourceManagedInstanceName); + + // Create second server + var targetManagedInstance = sqlClient.ManagedInstances.Get(targetResourceGroup, targetManagedInstanceName); + + // Create database only required parameters + string mdbName = "database1"; + var mdb1 = sqlClient.ManagedDatabases.CreateOrUpdate(sourceResourceGroup, sourceManagedInstance.Name, mdbName, new ManagedDatabase() + { + Location = sourceManagedInstance.Location, + }); + Assert.NotNull(mdb1); + + // Create a failover group + string instanceFailoverGroupName = SqlManagementTestUtilities.GenerateName(); + var fgInput = new InstanceFailoverGroup() + { + ReadOnlyEndpoint = new InstanceFailoverGroupReadOnlyEndpoint() + { + FailoverPolicy = ReadOnlyEndpointFailoverPolicy.Disabled, + }, + ReadWriteEndpoint = new InstanceFailoverGroupReadWriteEndpoint() + { + FailoverPolicy = ReadWriteEndpointFailoverPolicy.Manual, + }, + PartnerRegions = new List(){ + new PartnerRegionInfo() { Location = targetManagedInstance.Location }, + }, + ManagedInstancePairs = new List() + { + new ManagedInstancePairInfo() { PrimaryManagedInstanceId = sourceManagedInstance.Id, PartnerManagedInstanceId = targetManagedInstance.Id }, + }, + }; + var instanceFailoverGroup = sqlClient.InstanceFailoverGroups.CreateOrUpdate(sourceResourceGroup, sourceManagedInstance.Location, instanceFailoverGroupName, fgInput); + SqlManagementTestUtilities.ValidateInstanceFailoverGroup(fgInput, instanceFailoverGroup, instanceFailoverGroupName); + + var pePrimaryDatabase = sqlClient.ManagedDatabases.Get(sourceResourceGroup, sourceManagedInstance.Name, mdbName); + + // A brief wait may be needed until the secondary for the pre-existing database is created + ManagedDatabase peSecondaryDatabase = new ManagedDatabase(); + + SqlManagementTestUtilities.ExecuteWithRetry(() => + { + peSecondaryDatabase = sqlClient.ManagedDatabases.Get(targetResourceGroup, targetManagedInstance.Name, mdbName); + }, + TimeSpan.FromMinutes(2), TimeSpan.FromSeconds(5), + (CloudException e) => + { + return e.Response.StatusCode == HttpStatusCode.NotFound; + }); + + // Update a few settings + var fgSetInput = new InstanceFailoverGroup() + { + ReadOnlyEndpoint = new InstanceFailoverGroupReadOnlyEndpoint + { + FailoverPolicy = ReadOnlyEndpointFailoverPolicy.Enabled + }, + ReadWriteEndpoint = new InstanceFailoverGroupReadWriteEndpoint + { + FailoverPolicy = ReadWriteEndpointFailoverPolicy.Automatic, + FailoverWithDataLossGracePeriodMinutes = 120 + }, + PartnerRegions = new List(){ + new PartnerRegionInfo() { Location = instanceFailoverGroup.PartnerRegions.FirstOrDefault().Location }, + }, + ManagedInstancePairs = new List() + { + new ManagedInstancePairInfo() { PrimaryManagedInstanceId = instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId, + PartnerManagedInstanceId = instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId }, + }, + }; + + var instanceFailoverGroupUpdated2 = sqlClient.InstanceFailoverGroups.CreateOrUpdate(sourceResourceGroup, sourceManagedInstance.Location, instanceFailoverGroupName, fgSetInput); + + // Set expectations and verify update + fgInput.ReadWriteEndpoint = fgSetInput.ReadWriteEndpoint; + fgInput.ReadOnlyEndpoint = fgSetInput.ReadOnlyEndpoint; + SqlManagementTestUtilities.ValidateInstanceFailoverGroup(fgInput, instanceFailoverGroupUpdated2, instanceFailoverGroupName); + + // Failover failover group + sqlClient.InstanceFailoverGroups.Failover(targetResourceGroup, targetManagedInstance.Location, instanceFailoverGroupName); + instanceFailoverGroup = sqlClient.InstanceFailoverGroups.Get(targetResourceGroup, targetManagedInstance.Location, instanceFailoverGroupName); + + // Get failover group on the new secondary server and verify its replication role + Assert.Equal(sourceManagedInstance.Id, instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId); + Assert.Equal(targetManagedInstance.Id, instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId); + + // Delete failover group + sqlClient.InstanceFailoverGroups.Delete(targetResourceGroup, targetManagedInstance.Location, instanceFailoverGroupName); + Assert.Throws(() => sqlClient.InstanceFailoverGroups.Get(sourceResourceGroup, sourceManagedInstance.Location, instanceFailoverGroupName)); + + //Delete the managed database + sqlClient.ManagedDatabases.Delete(sourceResourceGroup, sourceManagedInstance.Name, mdbName); + sqlClient.ManagedDatabases.Delete(targetResourceGroup, targetManagedInstance.Name, mdbName); + } + } + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/ManagedDatabaseCrudScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/ManagedDatabaseCrudScenarioTests.cs new file mode 100644 index 0000000000000..174863ea28b8f --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/ManagedDatabaseCrudScenarioTests.cs @@ -0,0 +1,121 @@ + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; +using System.Linq; +using Xunit; + +namespace Sql.Tests +{ + public class ManagedDatabaseCrudScenarioTests + { + [Fact] + public void TestCreateDropManagedDatabase() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + SqlManagementClient sqlClient = context.GetClient(); + + // Update with values from a current MI on the region + // + string resourceGroup = "testclrg"; + string managedInstanceName = "tdstage-haimb-dont-delete-3"; + + //Get MI + var managedInstance = sqlClient.ManagedInstances.Get(resourceGroup, managedInstanceName); + + Dictionary tags = new Dictionary() + { + { "tagKey1", "TagValue1" } + }; + + // Create database only required parameters + // + string mdbName = SqlManagementTestUtilities.GenerateName(); + var mdb1 = sqlClient.ManagedDatabases.CreateOrUpdate(resourceGroup, managedInstance.Name, mdbName, new ManagedDatabase() + { + Location = managedInstance.Location, + }); + Assert.NotNull(mdb1); + + // Create a database with all parameters specified + // + mdbName = SqlManagementTestUtilities.GenerateName(); + var mdb2Input = new ManagedDatabase() + { + Location = managedInstance.Location, + Collation = SqlTestConstants.DefaultCollation, + Tags = tags, + CreateMode = "Default" + }; + var mdb2 = sqlClient.ManagedDatabases.CreateOrUpdate(resourceGroup, managedInstance.Name, mdbName, mdb2Input); + Assert.NotNull(mdb2); + SqlManagementTestUtilities.ValidateManagedDatabase(mdb2Input, mdb2, mdbName); + + sqlClient.ManagedDatabases.Delete(resourceGroup, managedInstance.Name, mdb1.Name); + sqlClient.ManagedDatabases.Delete(resourceGroup, managedInstance.Name, mdb2.Name); + } + } + + [Fact] + public void TestGetAndListManagedDatabase() + { + string testPrefix = "sqlcrudtest-"; + + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + SqlManagementClient sqlClient = context.GetClient(); + + // Update with values from a current MI on the region + // + string resourceGroup = "testclrg"; + string managedInstanceName = "tdstage-haimb-dont-delete-3"; + + // Get MI + var managedInstance = sqlClient.ManagedInstances.Get(resourceGroup, managedInstanceName); + + // Create some small databases to run the get/List tests on. + ManagedDatabase[] mngdDatabases = SqlManagementTestUtilities.CreateManagedDatabasesAsync( + sqlClient, resourceGroup, managedInstance, testPrefix, 4).Result; + + // Organize into a dictionary for better lookup later + IDictionary inputs = mngdDatabases.ToDictionary( + keySelector: d => d.Name, + elementSelector: d => d); + + // Get each database and compare to the results of create database + // + foreach (var db in inputs) + { + var response = sqlClient.ManagedDatabases.Get(resourceGroup, managedInstance.Name, db.Key); + SqlManagementTestUtilities.ValidateManagedDatabaseEx(db.Value, response); + } + + // List all databases + // + var listResponse = sqlClient.ManagedDatabases.ListByInstance(resourceGroup, managedInstance.Name); + + // Check that all created Managed Databases are created + foreach (var db in inputs.Keys) + { + var actualDbList = listResponse.Where(d => d.Name.Equals(db)); + Assert.True(actualDbList.Count() == 1); + ManagedDatabase actualDb = actualDbList.FirstOrDefault(); + SqlManagementTestUtilities.ValidateManagedDatabase(inputs[db], actualDb, db); + } + + foreach (var db in inputs.Keys) + { + sqlClient.ManagedDatabases.Delete(resourceGroup, managedInstance.Name, db); + } + + } + } + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/ManagedInstanceCrudScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/ManagedInstanceCrudScenarioTests.cs new file mode 100644 index 0000000000000..47a93bfa4eb4a --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/ManagedInstanceCrudScenarioTests.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using System.Collections.Generic; +using System.Linq; +using Xunit; + +namespace Sql.Tests +{ + public class ManagedInstanceCrudScenarioTests + { + [Fact] + public void TestCreateUpdateGetDropManagedInstance() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + SqlManagementClient sqlClient = context.GetClient(); + + string managedInstanceName = "sqlcl-crudtests-dotnetsdk1"; + string login = "dummylogin"; + string password = "Un53cuRE!"; + Dictionary tags = new Dictionary() + { + { "tagKey1", "TagValue1" } + }; + + Microsoft.Azure.Management.Sql.Models.Sku sku = new Microsoft.Azure.Management.Sql.Models.Sku(); + sku.Name = "MIGP8G4"; + sku.Tier = "GeneralPurpose"; + + string subnetId = "/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default"; + string location = "southeastasia"; + + //Create server + var managedInstance1 = sqlClient.ManagedInstances.CreateOrUpdate(resourceGroup.Name, managedInstanceName, new ManagedInstance() + { + AdministratorLogin = login, + AdministratorLoginPassword = password, + Sku = sku, + SubnetId = subnetId, + Tags = tags, + Location = location, + }); + SqlManagementTestUtilities.ValidateManagedInstance(managedInstance1, managedInstanceName, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + // Create second server + string managedInstanceName2 = "sqlcl-crudtests-dotnetsdk2"; + var managedInstance2 = sqlClient.ManagedInstances.CreateOrUpdate(resourceGroup.Name, managedInstanceName2, new ManagedInstance() + { + AdministratorLogin = login, + AdministratorLoginPassword = password, + Sku = sku, + SubnetId = subnetId, + Tags = tags, + Location = location, + }); + SqlManagementTestUtilities.ValidateManagedInstance(managedInstance2, managedInstanceName2, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + // Get first server + var getMI1 = sqlClient.ManagedInstances.Get(resourceGroup.Name, managedInstanceName); + SqlManagementTestUtilities.ValidateManagedInstance(getMI1, managedInstanceName, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + // Get second server + var getMI2 = sqlClient.ManagedInstances.Get(resourceGroup.Name, managedInstanceName2); + SqlManagementTestUtilities.ValidateManagedInstance(getMI2, managedInstanceName2, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + var listMI = sqlClient.ManagedInstances.ListByResourceGroup(resourceGroup.Name); + Assert.Equal(2, listMI.Count()); + + // Update first server + Dictionary newTags = new Dictionary() + { + { "asdf", "zxcv" } + }; + var updateMI1 = sqlClient.ManagedInstances.Update(resourceGroup.Name, managedInstanceName, new ManagedInstanceUpdate { Tags = newTags }); + SqlManagementTestUtilities.ValidateManagedInstance(updateMI1, managedInstanceName, login, newTags, TestEnvironmentUtilities.DefaultLocationId); + + // Drop server, update count + sqlClient.ManagedInstances.Delete(resourceGroup.Name, managedInstanceName); + + var listMI2 = sqlClient.ManagedInstances.ListByResourceGroup(resourceGroup.Name); + Assert.Equal(1, listMI2.Count()); + + sqlClient.ManagedInstances.Delete(resourceGroup.Name, managedInstanceName2); + var listMI3 = sqlClient.ManagedInstances.ListByResourceGroup(resourceGroup.Name); + Assert.Empty(listMI3); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.InstanceFailoverGroupCrudScenarioTests/TestCrudInstanceFailoverGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.InstanceFailoverGroupCrudScenarioTests/TestCrudInstanceFailoverGroup.json new file mode 100644 index 0000000000000..92cde51d5e9f3 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.InstanceFailoverGroupCrudScenarioTests/TestCrudInstanceFailoverGroup.json @@ -0,0 +1,4882 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "377c41a2-d147-4171-90fa-b8924286bb16" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"principalId\": \"f79f4324-01db-4944-99b4-8ebc895eda1f\",\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"f435658b-a8c3-4460-adf2-84617caef396\"\r\n },\r\n \"sku\": {\r\n \"name\": \"CLS3\",\r\n \"tier\": \"Standard\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"tdstage-haimb-dont-delete-3.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 1,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"name\": \"tdstage-haimb-dont-delete-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:22:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b5fe9f57-dd7a-4a51-9a35-d3c20c08c23f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "2da4923e-1d96-4260-a931-e69578111a98" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152256Z:2da4923e-1d96-4260-a931-e69578111a98" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGhyZWF0LWRldGVjdGlvbi10ZXN0LTE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "094ebb48-909b-4c64-b606-c6d9f2ff24f2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 8\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"threat-detection-test-1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 8,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\",\r\n \"name\": \"threat-detection-test-1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:22:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9e4e248c-9f66-45e9-b95f-6158fda086d3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "06f1079a-54a5-458e-b822-d34b563c30cd" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152257Z:06f1079a-54a5-458e-b822-d34b563c30cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "439a112a-1d0b-43da-b46f-f88a1de22ddc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:22:58.833Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:22:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/93a7f5d1-4323-45d4-b4ee-59402a23adba?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/93a7f5d1-4323-45d4-b4ee-59402a23adba?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "93a7f5d1-4323-45d4-b4ee-59402a23adba" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d51f56bc-161e-4fe7-8fd6-4b01fba04a44" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152259Z:d51f56bc-161e-4fe7-8fd6-4b01fba04a44" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/93a7f5d1-4323-45d4-b4ee-59402a23adba?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTNhN2Y1ZDEtNDMyMy00NWQ0LWI0ZWUtNTk0MDJhMjNhZGJhP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"93a7f5d1-4323-45d4-b4ee-59402a23adba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:22:58.833Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9da5b92f-23a1-4e76-83ed-dbd73089bf6f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "66ca2fe0-fddc-43ca-bf60-e41a3144ceff" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152314Z:66ca2fe0-fddc-43ca-bf60-e41a3144ceff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:22:59.037Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1\",\r\n \"name\": \"database1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d8bc2e48-60e9-4704-b2df-06f3c6504588" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "c288c294-2215-4b30-8245-1fcdb845ad6a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152315Z:c288c294-2215-4b30-8245-1fcdb845ad6a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6f255e40-6933-405c-95f4-3d43867eeb52" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:22:59.037Z\",\r\n \"earliestRestorePoint\": \"2018-04-18T15:26:28.79Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1\",\r\n \"name\": \"database1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8fcb807d-190a-4176-8ad2-1536e70af001" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "e7ab9f22-7b54-4f65-b616-92949b9ac035" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153149Z:e7ab9f22-7b54-4f65-b616-92949b9ac035" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Manual\"\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Disabled\"\r\n },\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"southeastasia\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "678" + ], + "x-ms-client-request-id": [ + "60e961ce-aa4b-4e47-8bda-fa04596087cf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "79" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "c913c3f0-a296-4853-ba54-edcdee8cba5a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "ea268fa8-fb97-4e01-9c06-e8d12283c4d9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152317Z:ea268fa8-fb97-4e01-9c06-e8d12283c4d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "735" + ], + "x-ms-client-request-id": [ + "851b2529-57c1-4a3c-8f29-eda27a36c51e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateManagedFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:31:50.49Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/e5b70610-e2b3-4b56-a04f-bff39ed9572b?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/e5b70610-e2b3-4b56-a04f-bff39ed9572b?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "e5b70610-e2b3-4b56-a04f-bff39ed9572b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "8efdf4c4-bf22-4f5f-a18f-95fe55203a6c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153152Z:8efdf4c4-bf22-4f5f-a18f-95fe55203a6c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ad18ac50-8ebe-46fd-a11c-366fa9a77da9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "4e4018cb-9bb2-48cb-ac41-578c26bd049e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152328Z:4e4018cb-9bb2-48cb-ac41-578c26bd049e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "06e6b725-6521-489d-bea7-11ec2fd2d470" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "ae900711-a551-4b1c-9928-099619c00c66" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152338Z:ae900711-a551-4b1c-9928-099619c00c66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c30f1b0c-03ad-4c56-93d8-cd4fa13c5e14" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "b60a4c26-6802-490d-bac6-c41fb2a462a5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152348Z:b60a4c26-6802-490d-bac6-c41fb2a462a5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "009a6c71-85db-4f35-9534-2f77d2a50e6c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "e63f7da4-3ab6-405c-bb99-74777f12a729" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152359Z:e63f7da4-3ab6-405c-bb99-74777f12a729" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0ffb991c-a24c-49d6-9bda-bc5ed2457f76" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "d5f250cf-19d8-40fe-87a6-47e23a4cb525" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152409Z:d5f250cf-19d8-40fe-87a6-47e23a4cb525" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "12" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0aa871a3-ceea-4140-aba0-6ed01dcde5c5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "f41b63f4-a4fb-4d1e-a052-014eb74f159f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152419Z:f41b63f4-a4fb-4d1e-a052-014eb74f159f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a1fea6bf-ac48-4f60-852a-51c189a82703" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "2b78561b-b7de-48cf-bd58-43e4f96e906a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152432Z:2b78561b-b7de-48cf-bd58-43e4f96e906a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "18" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "06806a95-dab9-4334-8a3b-e9d7153afc7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "89d95a51-4012-46a7-aba5-a16bc37ccc1c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152448Z:89d95a51-4012-46a7-aba5-a16bc37ccc1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:25:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "22" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d6823e15-7465-48c4-b0e6-8d56a30bf12e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "bd01109c-4211-4126-8a7e-e3e4798e6e01" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152507Z:bd01109c-4211-4126-8a7e-e3e4798e6e01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:25:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "26" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "289b0141-fba9-4f71-921e-57d8dd03a692" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "3a247d29-6b0b-4f6b-8f25-e197c5dadd59" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152529Z:3a247d29-6b0b-4f6b-8f25-e197c5dadd59" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:25:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "31" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "af2c3f20-af83-4922-9dc6-d6b9e9db4d2d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "9978bee2-525f-45f6-926c-7fe9bd392f10" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152555Z:9978bee2-525f-45f6-926c-7fe9bd392f10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:26:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "38" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "186ff2c4-3aba-4f6c-a78a-10fd65646078" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "8dd7f830-1bce-4ecb-b804-14051d0a6486" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152627Z:8dd7f830-1bce-4ecb-b804-14051d0a6486" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:27:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "45" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dd72046a-f1d3-4ee9-b448-9bec0f018e77" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "d808eaf6-9759-4ad2-bb3f-2175f1d223dd" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152705Z:d808eaf6-9759-4ad2-bb3f-2175f1d223dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:27:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "54" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "80712c3f-d724-46cf-9950-0567579062ac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "f96c85ff-6330-42c3-adf7-45b75da61b8a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152750Z:f96c85ff-6330-42c3-adf7-45b75da61b8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:28:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7b1b297f-4614-4c70-95e4-c3781f394582" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "d4a9c7ba-c0b5-488e-b81c-e7d24d9b17e4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152845Z:d4a9c7ba-c0b5-488e-b81c-e7d24d9b17e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:29:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1ad4a7d4-bcb1-42f5-936e-ee17a30829b3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "2fab60c6-b5e3-4bac-904c-7820e9a47379" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152946Z:2fab60c6-b5e3-4bac-904c-7820e9a47379" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:30:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6db1daca-5c26-43e3-9721-8b4df0b3a9d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "db95094e-5104-4f2b-805c-406688301f51" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153046Z:db95094e-5104-4f2b-805c-406688301f51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7e1185c5-47f4-44aa-96fd-23fe08ae0768" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "f54022c7-9d1c-49e6-b45a-ad2a336685ee" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153147Z:f54022c7-9d1c-49e6-b45a-ad2a336685ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Manual\"\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Disabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a9aa78bc-f101-469e-a613-cb7adf3b8018" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "4c44374c-d7cf-433a-8b7a-1d9a9fa17c0d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153148Z:4c44374c-d7cf-433a-8b7a-1d9a9fa17c0d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9ab04e8e-fc14-4bd3-b851-141532e5a14f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "7552037c-fcc1-4b28-a3e8-77a7026fdfdc" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153203Z:7552037c-fcc1-4b28-a3e8-77a7026fdfdc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58bdee1c-fca6-4e79-8de0-a6b8be97711c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9228c9f0-3ae7-4d90-b161-654f0f8241b1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14947" + ], + "x-ms-correlation-request-id": [ + "9a483f13-003e-4eff-938e-dfa3fa4ea9d9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154847Z:9a483f13-003e-4eff-938e-dfa3fa4ea9d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3dffbbf9-4e93-4e43-8dc9-47751d3b3980" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The requested resource of type 'Microsoft.Sql/locations/instanceFailoverGroups' with name 'sqlcrudtest-5522' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6441d565-56ed-49d9-ac62-6ed740aaf2e6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-correlation-request-id": [ + "637ff6c5-de13-41d0-8167-5c7ad7464136" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154910Z:637ff6c5-de13-41d0-8167-5c7ad7464136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGhyZWF0LWRldGVjdGlvbi10ZXN0LTEvZGF0YWJhc2VzL2RhdGFiYXNlMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c6979405-0342-4e07-9e6c-63fdb3f76e78" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:23:40.293Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1/databases/database1\",\r\n \"name\": \"database1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a4f408a2-a3a0-46d3-80d1-91d5f7b973a4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "de7e9a56-9697-4ec9-8467-5612d7b099d2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153149Z:de7e9a56-9697-4ec9-8467-5612d7b099d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/e5b70610-e2b3-4b56-a04f-bff39ed9572b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZTViNzA2MTAtZTJiMy00YjU2LWEwNGYtYmZmMzllZDk1NzJiP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5b70610-e2b3-4b56-a04f-bff39ed9572b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:31:50.49Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d23ee29b-0bb6-42c7-92d6-02e9201b8e90" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "ef60b9bd-7c96-46cb-a7ee-c26c5a1620ae" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153202Z:ef60b9bd-7c96-46cb-a7ee-c26c5a1620ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522/failover?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMi9mYWlsb3Zlcj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21d3e016-6d32-40b7-9b26-a8d389600b4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"FailoverFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "f2438255-e542-49fd-94f9-c3e3503c5c3f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "9ab6012b-c582-42c5-ae9f-15c610d455c8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153205Z:9ab6012b-c582-42c5-ae9f-15c610d455c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b04e900a-c380-4c1e-a308-64432f31d9f0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "d2bf058b-22a2-4916-8ec9-d379af915b7c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153215Z:d2bf058b-22a2-4916-8ec9-d379af915b7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cb78d992-4183-4fbb-a095-842df1143ea9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "c41987ba-c7bc-4376-b52f-be6ce4af21df" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153225Z:c41987ba-c7bc-4376-b52f-be6ce4af21df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a71fca75-592e-48fd-8d1c-f0e07d5f1341" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "0951c4be-aabc-4a7d-a949-34396c713f2f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153236Z:0951c4be-aabc-4a7d-a949-34396c713f2f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6afb0609-f2e1-4779-bbd2-331e7ee2a5ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "e19a8edb-3d31-4c88-beac-81ec5c6899b7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153246Z:e19a8edb-3d31-4c88-beac-81ec5c6899b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5579ba77-0eb8-458b-a2c4-017f2fa53fbb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "6d8a47f1-7304-441e-9e0b-1eeead725b6d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153256Z:6d8a47f1-7304-441e-9e0b-1eeead725b6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "12" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6a54dc4b-afec-4ae9-940f-05457844a5ba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "42d2e1dd-234c-4be2-ba3f-fcc55a2fd65e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153307Z:42d2e1dd-234c-4be2-ba3f-fcc55a2fd65e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a72d3771-d3a9-4863-ad14-58c2543c6daa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "e5a82d7d-9a53-4352-b0ef-e9f894fc7037" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153319Z:e5a82d7d-9a53-4352-b0ef-e9f894fc7037" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "18" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5872c9fa-659d-4f8e-b573-e233b7abea42" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "7d82f853-08f2-40cc-8093-f169949383ff" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153335Z:7d82f853-08f2-40cc-8093-f169949383ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "22" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c75993dd-bd5c-4eb2-b167-b718c2c03a20" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "6bdeb9e5-de12-4909-9d9d-8f482bdcd426" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153353Z:6bdeb9e5-de12-4909-9d9d-8f482bdcd426" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:34:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "26" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8c7be1e-477f-4540-bee4-38e336dbec56" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "e7b565e4-5cd0-4f82-9a1a-9cbf1c40cb58" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153416Z:e7b565e4-5cd0-4f82-9a1a-9cbf1c40cb58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:34:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "31" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "adf5289a-b7c4-4429-a957-00c25c9f82bd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "b0fa52c4-ada6-4c6f-b3a6-33810f466511" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153442Z:b0fa52c4-ada6-4c6f-b3a6-33810f466511" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:35:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "38" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "24b927fb-bf71-419f-aeb9-783911756b8d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "45d6171d-bc5a-40a0-b5ad-10f15ba674c0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153514Z:45d6171d-bc5a-40a0-b5ad-10f15ba674c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:35:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "45" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ef556baf-ac5d-47d7-87b7-4266f27b3b74" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "8c2b24f6-8566-4062-9783-77bf20597a79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153553Z:8c2b24f6-8566-4062-9783-77bf20597a79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:36:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "55" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "281cebfc-ed86-42c8-b275-059257067d3c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "653a2eee-83a8-4cd5-8ecc-2314d33e1c17" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153639Z:653a2eee-83a8-4cd5-8ecc-2314d33e1c17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:37:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c1bec15-b0a9-4f60-bdd7-048875f70bea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-correlation-request-id": [ + "11df9434-ce2c-4910-991e-5597db0e455e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153734Z:11df9434-ce2c-4910-991e-5597db0e455e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:38:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0fa06699-f2bf-4f7c-9560-f551e08d3856" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-correlation-request-id": [ + "7f4bf5d1-033e-450c-bd41-06e00ce66d19" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153834Z:7f4bf5d1-033e-450c-bd41-06e00ce66d19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:39:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ef05d456-f27f-4916-9347-6f1bd0dd1ca8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "6001513e-a41e-4f37-bbd2-a0c784934431" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153936Z:6001513e-a41e-4f37-bbd2-a0c784934431" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:40:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a7c4bfb1-8389-47f0-aeda-d510dadd27b9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "1ddbb566-af0d-4be6-acb0-1ad633580bed" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154040Z:1ddbb566-af0d-4be6-acb0-1ad633580bed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:41:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c56de73-36cf-4370-b3ca-cd8ca547e4a6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "384faf91-a5e8-481a-8c25-5e7a4a42f9b7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154141Z:384faf91-a5e8-481a-8c25-5e7a4a42f9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:42:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2f61f4bc-7f3a-4338-91c0-6c4205b73dac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-correlation-request-id": [ + "99438b0c-6d14-4366-9f03-5782a9343cb4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154241Z:99438b0c-6d14-4366-9f03-5782a9343cb4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:43:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5973d298-bf80-4217-b9f9-a6054da77bc2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "1e3824ab-994a-44cb-9c7d-050ccad89165" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154342Z:1e3824ab-994a-44cb-9c7d-050ccad89165" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:44:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f57630db-4ac9-405e-ab40-3a0b00fb610a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14953" + ], + "x-ms-correlation-request-id": [ + "5a733e0b-b4d0-4414-9798-f16d5853aff4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154443Z:5a733e0b-b4d0-4414-9798-f16d5853aff4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:45:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a5f3742b-33dc-4b17-ab73-ea012dcbaed2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14952" + ], + "x-ms-correlation-request-id": [ + "7e45abaa-66f7-4fd0-8a4a-2786b83922fa" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154543Z:7e45abaa-66f7-4fd0-8a4a-2786b83922fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:46:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d91f9eaf-0f7d-4a5e-9293-0a0cad33cae6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14951" + ], + "x-ms-correlation-request-id": [ + "91a42408-7dd0-4594-a86d-4cf4cf3c6a93" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154644Z:91a42408-7dd0-4594-a86d-4cf4cf3c6a93" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:47:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "876ef702-6566-4269-b98c-bc33af70d481" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-correlation-request-id": [ + "70a14f0c-9705-4d4a-baad-add902481151" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154745Z:70a14f0c-9705-4d4a-baad-add902481151" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2412d02e-430d-4267-bb2a-eaaf3fdd9641" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14949" + ], + "x-ms-correlation-request-id": [ + "0685d829-b8d5-4f09-82af-bffcc5d81424" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154846Z:0685d829-b8d5-4f09-82af-bffcc5d81424" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cE9wZXJhdGlvblJlc3VsdHMvZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2236b480-9b6f-48fc-8ba3-9d9f9ab4fec9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14948" + ], + "x-ms-correlation-request-id": [ + "1b9816de-4fd4-4840-bfb1-b929cb18a50b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154846Z:1b9816de-4fd4-4840-bfb1-b929cb18a50b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4391482d-c942-44fc-8d67-caa53343615b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:48:48.117Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "79" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "8785d555-16ef-4715-b023-dc0667229f86" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "5ad1d5a6-95b3-4e64-a591-d0e13b550f97" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154849Z:5ad1d5a6-95b3-4e64-a591-d0e13b550f97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vODc4NWQ1NTUtMTZlZi00NzE1LWIwMjMtZGMwNjY3MjI5Zjg2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8785d555-16ef-4715-b023-dc0667229f86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:48:48.117Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eb408327-d764-405c-9e25-2d63fa9b7360" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14946" + ], + "x-ms-correlation-request-id": [ + "078518d2-71a8-4fdb-b1e5-b74b53da74b9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154859Z:078518d2-71a8-4fdb-b1e5-b74b53da74b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vODc4NWQ1NTUtMTZlZi00NzE1LWIwMjMtZGMwNjY3MjI5Zjg2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8785d555-16ef-4715-b023-dc0667229f86\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:48:48.117Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ca251d5b-8798-47d4-8109-52b53a51318a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14945" + ], + "x-ms-correlation-request-id": [ + "18875dd2-44d7-4904-9273-a3c69297a3ef" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154910Z:18875dd2-44d7-4904-9273-a3c69297a3ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cE9wZXJhdGlvblJlc3VsdHMvODc4NWQ1NTUtMTZlZi00NzE1LWIwMjMtZGMwNjY3MjI5Zjg2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "73684811-6294-4f0b-b6fd-cb5fb1ae1fe1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-correlation-request-id": [ + "2805e8b7-02c8-4298-9aa1-ddb028c91029" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154910Z:2805e8b7-02c8-4298-9aa1-ddb028c91029" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "59ee2d08-a2dd-42b0-a50b-f7270c186007" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:49:11.88Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "0db52da5-ea59-4490-9538-b971b56c3514" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "8032f6c5-2292-41de-bb58-3210ee8df113" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154912Z:8032f6c5-2292-41de-bb58-3210ee8df113" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMGRiNTJkYTUtZWE1OS00NDkwLTk1MzgtYjk3MWI1NmMzNTE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"0db52da5-ea59-4490-9538-b971b56c3514\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:49:11.88Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c224d02f-e102-4e21-a2fb-7a89ec301a9e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-correlation-request-id": [ + "6c845689-9e99-4897-9917-38a819e4a1af" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154927Z:6c845689-9e99-4897-9917-38a819e4a1af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvMGRiNTJkYTUtZWE1OS00NDkwLTk1MzgtYjk3MWI1NmMzNTE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9f29d425-0172-451a-b9b8-5675e0211131" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "80a9c66c-bcd0-4d91-a06b-3faff84471d3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154928Z:80a9c66c-bcd0-4d91-a06b-3faff84471d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGhyZWF0LWRldGVjdGlvbi10ZXN0LTEvZGF0YWJhc2VzL2RhdGFiYXNlMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "91d294ed-05f5-45e1-9810-87fc0fceccfb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "f3b5f9dc-f6a6-448b-bc04-c993ea149dc1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "c2410584-62eb-489c-aabc-ce2e991d007b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154929Z:c2410584-62eb-489c-aabc-ce2e991d007b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "85f80c64-a069-47ee-9484-15eef6e34a89" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14940" + ], + "x-ms-correlation-request-id": [ + "a66539c3-c87c-4438-8763-02f9a182efbf" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154944Z:a66539c3-c87c-4438-8763-02f9a182efbf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ce1824db-8332-4285-986d-d87bda8f606b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-correlation-request-id": [ + "21307f49-5887-4592-aa20-d637fe49fbba" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155000Z:21307f49-5887-4592-aa20-d637fe49fbba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:50:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8c4e2c63-0025-452c-9b07-97ccd0333884" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-correlation-request-id": [ + "6ae94c69-0ff6-4d4e-bb47-458e5d3bc4c2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155015Z:6ae94c69-0ff6-4d4e-bb47-458e5d3bc4c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:50:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "387d07dd-9e47-4c70-afe3-9562255fadc1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14937" + ], + "x-ms-correlation-request-id": [ + "5d62d4d9-a77e-4b5b-b50b-24efc27a0011" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155031Z:5d62d4d9-a77e-4b5b-b50b-24efc27a0011" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:50:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "93dcf3ca-3ac0-4e2e-a464-64f7fedafcaa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14936" + ], + "x-ms-correlation-request-id": [ + "e9fb05c9-1fc8-464d-a434-843d05775448" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155046Z:e9fb05c9-1fc8-464d-a434-843d05775448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cff8c6cd-7d09-47dd-8549-4f9294035e5e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14935" + ], + "x-ms-correlation-request-id": [ + "28857a64-dd26-4707-92b5-647993837332" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155101Z:28857a64-dd26-4707-92b5-647993837332" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "456fe203-2430-44db-90e9-3fa618f53bc8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14934" + ], + "x-ms-correlation-request-id": [ + "d7495c4f-b3bc-4459-bae7-5460c78cbe3a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155117Z:d7495c4f-b3bc-4459-bae7-5460c78cbe3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a2a3b6c7-9b85-460d-b43f-156d5484eb1c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14933" + ], + "x-ms-correlation-request-id": [ + "90760f38-7179-4fb3-8c2f-b10464620540" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155134Z:90760f38-7179-4fb3-8c2f-b10464620540" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69de6882-2524-48a2-ab2e-a21cec40a8c3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14932" + ], + "x-ms-correlation-request-id": [ + "5c2737c0-2363-4b2f-b6f8-48a3c7aeb99d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155149Z:5c2737c0-2363-4b2f-b6f8-48a3c7aeb99d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "423a08a6-1bca-43fc-9541-fa99f73b3c93" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14931" + ], + "x-ms-correlation-request-id": [ + "f896e8c0-0672-4f09-9334-d68d388f8217" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155205Z:f896e8c0-0672-4f09-9334-d68d388f8217" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "78762747-471f-473b-87d6-21a2bac3a284" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14930" + ], + "x-ms-correlation-request-id": [ + "dec0b1f5-79a2-4296-be0e-96863c4d0691" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155205Z:dec0b1f5-79a2-4296-be0e-96863c4d0691" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "TestCrudInstanceFailoverGroup": [ + "sqlcrudtest-5522" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestCreateDropManagedDatabase.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestCreateDropManagedDatabase.json new file mode 100644 index 0000000000000..7fb411f4b9201 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestCreateDropManagedDatabase.json @@ -0,0 +1,2901 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96edc8fb-d511-4e1a-a422-965ff5e1d3fe" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"principalId\": \"f79f4324-01db-4944-99b4-8ebc895eda1f\",\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"f435658b-a8c3-4460-adf2-84617caef396\"\r\n },\r\n \"sku\": {\r\n \"name\": \"CLS3\",\r\n \"tier\": \"Standard\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"tdstage-haimb-dont-delete-3.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 1,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"name\": \"tdstage-haimb-dont-delete-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "97faf81b-7223-4daa-9da0-b6a356aff887" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-correlation-request-id": [ + "f8e5aaeb-6a59-4968-bcc9-61b935cf4bd7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161136Z:f8e5aaeb-6a59-4968-bcc9-61b935cf4bd7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "84b0d2bc-e6b4-4965-b4ed-542e52e393f2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:11:38.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/38982289-8687-4c85-84ba-831d1e4c07e0?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/38982289-8687-4c85-84ba-831d1e4c07e0?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "38982289-8687-4c85-84ba-831d1e4c07e0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "1bd5f185-e460-4cb8-840c-17b65d132a47" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161138Z:1bd5f185-e460-4cb8-840c-17b65d132a47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/38982289-8687-4c85-84ba-831d1e4c07e0?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzg5ODIyODktODY4Ny00Yzg1LTg0YmEtODMxZDFlNGMwN2UwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"38982289-8687-4c85-84ba-831d1e4c07e0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:11:38.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "56d1033f-d4f2-4b2f-931e-704f1973568c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "94bb6386-36c2-41cd-a2bf-12502290c5c8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161153Z:94bb6386-36c2-41cd-a2bf-12502290c5c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T16:11:38.34Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129\",\r\n \"name\": \"sqlcrudtest-1129\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "73b4ac8e-4ea3-4e35-a5a8-6d787f0dd7cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14953" + ], + "x-ms-correlation-request-id": [ + "5bb4f1b4-544b-474e-85bb-0bccb1bcf1e3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161154Z:5bb4f1b4-544b-474e-85bb-0bccb1bcf1e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05Mjc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"createMode\": \"Default\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "186" + ], + "x-ms-client-request-id": [ + "0cbd8c88-f028-4469-b1f8-aa0b93b89c8b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:11:56.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e4032d10-e5c8-4905-aade-7ad992191339?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e4032d10-e5c8-4905-aade-7ad992191339?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e4032d10-e5c8-4905-aade-7ad992191339" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "9dae82fd-08a3-4637-a395-d6a9cd7b36ef" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161156Z:9dae82fd-08a3-4637-a395-d6a9cd7b36ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e4032d10-e5c8-4905-aade-7ad992191339?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTQwMzJkMTAtZTVjOC00OTA1LWFhZGUtN2FkOTkyMTkxMzM5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e4032d10-e5c8-4905-aade-7ad992191339\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:11:56.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "02cc4778-fafb-413e-84fc-1761344c4810" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14952" + ], + "x-ms-correlation-request-id": [ + "111e804c-1704-47ca-bcff-950ba5e21f2b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161211Z:111e804c-1704-47ca-bcff-950ba5e21f2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05Mjc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T16:11:56.567Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927\",\r\n \"name\": \"sqlcrudtest-927\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "933a8b1a-8e14-4e42-bc27-42900d525e49" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14951" + ], + "x-ms-correlation-request-id": [ + "12222935-86ac-4b55-a8bd-6f9c0328bc5b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161212Z:12222935-86ac-4b55-a8bd-6f9c0328bc5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f3c0d491-b800-4e8e-936b-1b0a67fde011" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "100c5c86-2d23-4cc9-80ae-55db0242a5bf" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "8c7cb108-0141-478c-826b-5480e96b468e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161212Z:8c7cb108-0141-478c-826b-5480e96b468e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "841cd523-b0dc-4ca0-b720-96a56ee6b0da" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-correlation-request-id": [ + "992a070e-55ab-4547-af19-660738222bc5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161228Z:992a070e-55ab-4547-af19-660738222bc5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2b6eefb5-1577-481c-aa9a-9d0813a2f361" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14949" + ], + "x-ms-correlation-request-id": [ + "b03fffad-7311-4099-b6c5-d5cc1722e9c0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161244Z:b03fffad-7311-4099-b6c5-d5cc1722e9c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d3e87834-a48f-46a7-bbe7-3477c34bac59" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14948" + ], + "x-ms-correlation-request-id": [ + "37ea831d-261f-4556-9330-25dbc452b8a2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161259Z:37ea831d-261f-4556-9330-25dbc452b8a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:13:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "247edbd8-9c54-4c44-8b84-049016e1307d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14947" + ], + "x-ms-correlation-request-id": [ + "f6d91045-fdaf-4b58-8a8a-18d64bddb23a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161314Z:f6d91045-fdaf-4b58-8a8a-18d64bddb23a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:13:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8dad3f63-1bbd-4560-a530-6e798d74f8d3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14946" + ], + "x-ms-correlation-request-id": [ + "ca695bfa-c55a-4b16-a98e-347f13d15e21" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161330Z:ca695bfa-c55a-4b16-a98e-347f13d15e21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:13:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "61f159e6-64e4-40ec-8d81-638db787a9a0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14945" + ], + "x-ms-correlation-request-id": [ + "cd3533bb-88ca-42fc-b749-a2fb7a3dd84e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161345Z:cd3533bb-88ca-42fc-b749-a2fb7a3dd84e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6ec2cb39-042c-4e5a-8961-159202644c79" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-correlation-request-id": [ + "77bf32ef-0b05-418c-800e-04b97ebcdab2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161401Z:77bf32ef-0b05-418c-800e-04b97ebcdab2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c184dfc-2170-40f3-9add-ebaf36ec7927" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-correlation-request-id": [ + "741b1d7a-6582-4df3-8f7b-b0db9d3cba62" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161417Z:741b1d7a-6582-4df3-8f7b-b0db9d3cba62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "26c12010-587e-49e7-b18f-14cdfbeca173" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-correlation-request-id": [ + "dac1ffcc-7bf3-433d-9326-29b9e69b2c07" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161432Z:dac1ffcc-7bf3-433d-9326-29b9e69b2c07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e47984a7-61b2-415d-beaa-ef88c9adf131" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "aedf5a6f-5098-46e6-98e9-a6b463827b87" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161448Z:aedf5a6f-5098-46e6-98e9-a6b463827b87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "269645df-d8e7-4e69-a441-06d60521c2ea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14940" + ], + "x-ms-correlation-request-id": [ + "3bba8eac-afa9-4764-a59f-3dd072f8250a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161503Z:3bba8eac-afa9-4764-a59f-3dd072f8250a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9fd3764-f5b4-4606-8e6a-4d74baab2670" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-correlation-request-id": [ + "b6e17572-95d9-4b5c-8ab9-1afa16d478e4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161518Z:b6e17572-95d9-4b5c-8ab9-1afa16d478e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "934ccefc-f9c4-4084-ac7a-020592c2d3d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-correlation-request-id": [ + "e87b4ed3-e3b4-4fd1-a53f-b0caae36b60b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161534Z:e87b4ed3-e3b4-4fd1-a53f-b0caae36b60b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "94cee7e1-63fd-4f4b-aedf-f87c29ee7327" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14937" + ], + "x-ms-correlation-request-id": [ + "57f318f1-518d-4e91-b8db-bfc733f7af8c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161549Z:57f318f1-518d-4e91-b8db-bfc733f7af8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0cbc3aff-5292-477b-a59d-5da02ff59ee6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14936" + ], + "x-ms-correlation-request-id": [ + "ecb369af-6d9c-477b-aa87-cd608f6f61f9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161604Z:ecb369af-6d9c-477b-aa87-cd608f6f61f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e9789dcf-e129-44d7-92b7-664377bacd95" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14935" + ], + "x-ms-correlation-request-id": [ + "441d2b36-0ff2-406b-b561-0373380b7c79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161620Z:441d2b36-0ff2-406b-b561-0373380b7c79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "20786825-5983-4ec2-b312-fa56dec1b7c4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14934" + ], + "x-ms-correlation-request-id": [ + "6d83d445-a316-45c6-8604-ee312736d7bb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161636Z:6d83d445-a316-45c6-8604-ee312736d7bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e3ec4bb-2fff-4b4e-9012-f1bc9990aec7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14933" + ], + "x-ms-correlation-request-id": [ + "39319058-a33f-475c-8464-a7f4d6c51361" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161651Z:39319058-a33f-475c-8464-a7f4d6c51361" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "55844f02-0e86-4395-be1a-f2f6d357178f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14932" + ], + "x-ms-correlation-request-id": [ + "be5660b3-a854-4cba-a01c-20dee8f4ddf8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161707Z:be5660b3-a854-4cba-a01c-20dee8f4ddf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "99a8a6c7-7951-43d8-b4ce-4e94df355faf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14931" + ], + "x-ms-correlation-request-id": [ + "07168d3e-3af1-41c6-aa9a-d77184289521" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161707Z:07168d3e-3af1-41c6-aa9a-d77184289521" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05Mjc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "057f14e4-6ffc-490d-8713-da683838f22a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "7df614d1-c990-40a9-8d9b-8cb9c1b3f158" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "fcdd662d-3a0f-4002-9f87-59ccbb9c7cbe" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161708Z:fcdd662d-3a0f-4002-9f87-59ccbb9c7cbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7894fe4d-8af3-43d9-a918-0651246794d6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14930" + ], + "x-ms-correlation-request-id": [ + "92ee67a7-32c1-42a3-80d5-6406b2036645" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161723Z:92ee67a7-32c1-42a3-80d5-6406b2036645" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9a66cc5f-228b-4603-b25e-7ef3c6a7c4bb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14929" + ], + "x-ms-correlation-request-id": [ + "bcaf332c-7d79-4b04-9e40-92bf655bee39" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161739Z:bcaf332c-7d79-4b04-9e40-92bf655bee39" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7b1edfef-fd09-4b12-a9a8-4ed47684dbfa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14928" + ], + "x-ms-correlation-request-id": [ + "ecac646c-6823-431d-9496-b7357ea833a0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161755Z:ecac646c-6823-431d-9496-b7357ea833a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eeadc7c3-9fef-4c11-a8c1-984da3d7f694" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "7c3c2225-2a3b-4262-bec2-e30e2d6940e7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161810Z:7c3c2225-2a3b-4262-bec2-e30e2d6940e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c194365b-24c1-4c74-96af-784b32f9fce6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14926" + ], + "x-ms-correlation-request-id": [ + "9a1f248f-83fc-446c-851b-7eb4d4f5f093" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161826Z:9a1f248f-83fc-446c-851b-7eb4d4f5f093" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "019750e2-8b3f-46db-a51e-1aaecf2da40f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14925" + ], + "x-ms-correlation-request-id": [ + "e56b9056-4716-4ae1-9ff5-0b5814afd9f3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161841Z:e56b9056-4716-4ae1-9ff5-0b5814afd9f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "da589e4b-2018-4d44-b137-f2ccf158cdb5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14924" + ], + "x-ms-correlation-request-id": [ + "ca0cda17-b9a5-4f40-ad20-32be94601177" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161856Z:ca0cda17-b9a5-4f40-ad20-32be94601177" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5937103f-1d37-4d8e-a507-5e9f5a2c884a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14923" + ], + "x-ms-correlation-request-id": [ + "85da0454-b57a-499c-b24c-b1819e206df2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161912Z:85da0454-b57a-499c-b24c-b1819e206df2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e5578eed-2609-44bd-82cc-8abb526750ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14922" + ], + "x-ms-correlation-request-id": [ + "6dbdcc43-2aa6-469c-af82-38af8684fd43" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161927Z:6dbdcc43-2aa6-469c-af82-38af8684fd43" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a8a710a1-3dc0-4d22-aec0-342d56f8eb59" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14921" + ], + "x-ms-correlation-request-id": [ + "cf766b36-2398-4cee-a77e-6309892ea685" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161943Z:cf766b36-2398-4cee-a77e-6309892ea685" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e7aa170-54f3-4a6a-b92c-e0e9cf57e435" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14920" + ], + "x-ms-correlation-request-id": [ + "0b348519-6363-4152-8a3d-c079048e434c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161958Z:0b348519-6363-4152-8a3d-c079048e434c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fc36fa8f-a9e3-4a3d-afc5-0e184eadb560" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14921" + ], + "x-ms-correlation-request-id": [ + "5bd79961-b8a2-4e49-ad71-f230af2f79b6" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162014Z:5bd79961-b8a2-4e49-ad71-f230af2f79b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "549e303a-a234-456c-bfac-ede75c2717ec" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14920" + ], + "x-ms-correlation-request-id": [ + "6631f453-7a67-49ea-9b75-7b09eb0bf9ae" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162029Z:6631f453-7a67-49ea-9b75-7b09eb0bf9ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fdfbb1e8-42f1-4273-8cef-c4144f2a8ec3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14919" + ], + "x-ms-correlation-request-id": [ + "88dc57ae-a2e9-4a88-a65f-f66015246101" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162044Z:88dc57ae-a2e9-4a88-a65f-f66015246101" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a3d7354e-9131-4877-b101-c3c116303a3b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14918" + ], + "x-ms-correlation-request-id": [ + "5461a47e-52a1-4158-94eb-b50ff4c5975b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162100Z:5461a47e-52a1-4158-94eb-b50ff4c5975b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:21:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "76e0a1b9-c60f-4664-b00c-6081a017e10c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14917" + ], + "x-ms-correlation-request-id": [ + "d0e235b0-8b26-456c-82a1-ba051183450b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162115Z:d0e235b0-8b26-456c-82a1-ba051183450b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:21:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cff563b1-ca23-423a-a1de-3107195a5b1e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14916" + ], + "x-ms-correlation-request-id": [ + "f6ee046d-5fc8-494c-976d-5554de585a5a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162131Z:f6ee046d-5fc8-494c-976d-5554de585a5a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:21:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "de32d3cb-e8c9-482e-b7ae-1afa1b214e5d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "12f1cb96-182b-4149-bbbe-bdd697c20700" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162132Z:12f1cb96-182b-4149-bbbe-bdd697c20700" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "TestCreateDropManagedDatabase": [ + "sqlcrudtest-1129", + "sqlcrudtest-927" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestGetAndListManagedDatabase.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestGetAndListManagedDatabase.json new file mode 100644 index 0000000000000..197141b60e872 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestGetAndListManagedDatabase.json @@ -0,0 +1,5986 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4eb9712-fed8-4374-b95c-e32624ec3d4f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"principalId\": \"f79f4324-01db-4944-99b4-8ebc895eda1f\",\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"f435658b-a8c3-4460-adf2-84617caef396\"\r\n },\r\n \"sku\": {\r\n \"name\": \"CLS3\",\r\n \"tier\": \"Standard\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"tdstage-haimb-dont-delete-3.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 1,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"name\": \"tdstage-haimb-dont-delete-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9c97c4a0-71bf-4848-b72e-3b27546fef97" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "0de7d3f6-37d9-416d-9731-90f6d0ec54b8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155241Z:0de7d3f6-37d9-416d-9731-90f6d0ec54b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "d9f8c487-649a-4ae0-9895-b3cf09f9990b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:43.867Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/c384dd7a-97bd-495f-a09d-af641c99901e?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/c384dd7a-97bd-495f-a09d-af641c99901e?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "c384dd7a-97bd-495f-a09d-af641c99901e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "2a6d4f5c-5b7d-4b0c-94fd-63cc292aea2c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155244Z:2a6d4f5c-5b7d-4b0c-94fd-63cc292aea2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "e0cc16f1-d9a9-477f-b99e-bf072be0149f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:44.343Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/94dd6ffa-0097-4860-8055-1006b7c1e032?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/94dd6ffa-0097-4860-8055-1006b7c1e032?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "94dd6ffa-0097-4860-8055-1006b7c1e032" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "f6f2a883-b1eb-42cb-8369-0c7091ac1285" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155244Z:f6f2a883-b1eb-42cb-8369-0c7091ac1285" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "98162864-fe30-4813-8681-63e85b623f41" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:45.03Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e3b86267-bca7-4af1-ae8b-94fe0e934b90?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e3b86267-bca7-4af1-ae8b-94fe0e934b90?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e3b86267-bca7-4af1-ae8b-94fe0e934b90" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "38807576-0eca-4900-93be-257e018fa445" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155245Z:38807576-0eca-4900-93be-257e018fa445" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "bfe22e5b-056a-4664-8019-95d908f8b87a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:45.163Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e54b48e9-4586-4985-b824-1bd2ee953850?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e54b48e9-4586-4985-b824-1bd2ee953850?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e54b48e9-4586-4985-b824-1bd2ee953850" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "25200fac-95de-4537-930b-76435d08aaca" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155245Z:25200fac-95de-4537-930b-76435d08aaca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/c384dd7a-97bd-495f-a09d-af641c99901e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYzM4NGRkN2EtOTdiZC00OTVmLWEwOWQtYWY2NDFjOTk5MDFlP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c384dd7a-97bd-495f-a09d-af641c99901e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:43.867Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c2b42c62-e889-4a5d-8752-886955324932" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "969d638c-4d7d-4dd2-8056-64b5de6f70c7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155259Z:969d638c-4d7d-4dd2-8056-64b5de6f70c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/94dd6ffa-0097-4860-8055-1006b7c1e032?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTRkZDZmZmEtMDA5Ny00ODYwLTgwNTUtMTAwNmI3YzFlMDMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"94dd6ffa-0097-4860-8055-1006b7c1e032\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:44.343Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5201ec62-48b4-4f36-98f1-911a920a5e47" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14929" + ], + "x-ms-correlation-request-id": [ + "f98ae9dc-1cf3-4eaa-9ea8-10dbe4a169c1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155259Z:f98ae9dc-1cf3-4eaa-9ea8-10dbe4a169c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.04Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365\",\r\n \"name\": \"sqlcrudtest-9365\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2e098c52-988b-4657-89d3-ee5712dc28d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "94b87d0a-ccc3-4db8-b635-f7f8675e32f7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:94b87d0a-ccc3-4db8-b635-f7f8675e32f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58a81b79-a64f-452e-91c8-d00bc2529cef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.04Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365\",\r\n \"name\": \"sqlcrudtest-9365\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7b118976-a512-414a-b993-3b0da8ae4860" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "acbddfc3-94b5-4b98-9f4f-5c0768c8e5a9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:acbddfc3-94b5-4b98-9f4f-5c0768c8e5a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.517Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682\",\r\n \"name\": \"sqlcrudtest-5682\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "48929ace-03c5-417c-862e-36233aaee514" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "8d44cf95-348d-46cd-a75c-53231b6c58e1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:8d44cf95-348d-46cd-a75c-53231b6c58e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0cc962f4-6812-4cc2-9663-36fd91f37a3e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.517Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682\",\r\n \"name\": \"sqlcrudtest-5682\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d17ccde3-60f7-436d-8580-2413d9f0342a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "9f241409-2521-4250-ac87-e0cc6735cd55" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155302Z:9f241409-2521-4250-ac87-e0cc6735cd55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e54b48e9-4586-4985-b824-1bd2ee953850?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTU0YjQ4ZTktNDU4Ni00OTg1LWI4MjQtMWJkMmVlOTUzODUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e54b48e9-4586-4985-b824-1bd2ee953850\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:45.163Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b7c08dac-69b4-40d8-bff3-77daa4b9e7d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "18b85745-2164-48d5-b113-9b22d7ed4ed5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:18b85745-2164-48d5-b113-9b22d7ed4ed5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e3b86267-bca7-4af1-ae8b-94fe0e934b90?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTNiODYyNjctYmNhNy00YWYxLWFlOGItOTRmZTBlOTM0YjkwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e3b86267-bca7-4af1-ae8b-94fe0e934b90\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:45.03Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cb413d1e-ae18-4b90-9cef-6407b424ef01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14928" + ], + "x-ms-correlation-request-id": [ + "fa57dae8-9bf0-4859-8e71-b874059f8323" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:fa57dae8-9bf0-4859-8e71-b874059f8323" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.203Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826\",\r\n \"name\": \"sqlcrudtest-2826\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3ed77ad5-ed94-421f-9da0-5727987148eb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "7b2ccf2b-e80b-4bee-afef-3245b473f49d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:7b2ccf2b-e80b-4bee-afef-3245b473f49d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1912892b-dd91-4956-bb47-5af2c4d9cad8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.203Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826\",\r\n \"name\": \"sqlcrudtest-2826\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "38fac3f9-d00c-4ac5-be55-cbe1c3d7e640" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "e15be2c6-1075-49bf-bdcb-8d6e6d0c2e50" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155302Z:e15be2c6-1075-49bf-bdcb-8d6e6d0c2e50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.333Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381\",\r\n \"name\": \"sqlcrudtest-9381\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fdee5622-06fb-4e2d-b82c-b264a2f7be03" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "f0fd073b-d3c4-46ce-af56-d85e00c41962" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:f0fd073b-d3c4-46ce-af56-d85e00c41962" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1b2a66f8-d4e8-4890-a16a-7300823404cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.333Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381\",\r\n \"name\": \"sqlcrudtest-9381\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2b4438b5-8828-486b-9d7e-0e70ecb2afae" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "a90b6e30-6a10-488b-a455-6f069d3c603e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:a90b6e30-6a10-488b-a455-6f069d3c603e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c939f2c2-f41d-4a75-bd54-15f649534d45" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.203Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826\",\r\n \"name\": \"sqlcrudtest-2826\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n },\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.517Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682\",\r\n \"name\": \"sqlcrudtest-5682\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n },\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.04Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365\",\r\n \"name\": \"sqlcrudtest-9365\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n },\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.333Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381\",\r\n \"name\": \"sqlcrudtest-9381\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4dc719d1-eb5d-46a0-86a3-cdde49484665" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "dbe93425-3791-4e3b-9a4a-1a31e5a7e436" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155303Z:dbe93425-3791-4e3b-9a4a-1a31e5a7e436" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0fb3b117-ea59-4a55-a91c-f8cf93b475ca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "4b1e3418-b658-4259-bafa-b50d31018c50" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-correlation-request-id": [ + "3d83b179-d140-4a5b-b8fa-f6ec758de4df" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155304Z:3d83b179-d140-4a5b-b8fa-f6ec758de4df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2da16355-7f85-41f6-938c-df3f89c3cfe6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "eae8e292-98fc-447a-a39b-dde74a82eae3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155319Z:eae8e292-98fc-447a-a39b-dde74a82eae3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "040bd025-2eb7-4a0d-a3dc-275b39ca9fb3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "e3636af4-c201-469e-a01b-991744488488" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155335Z:e3636af4-c201-469e-a01b-991744488488" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b6a1f71d-f77b-474d-be69-8fdc7cdb7a52" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "0c5881ab-4d77-4ebe-9145-ba6cf678170b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155350Z:0c5881ab-4d77-4ebe-9145-ba6cf678170b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f7e3ea3e-12ed-47e1-8701-549481a9e986" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "3ec86dae-1781-4503-a44a-9fef709a1a88" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155406Z:3ec86dae-1781-4503-a44a-9fef709a1a88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "16f37ae1-56bc-4d1e-ae49-e695adab8552" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "cb1edaa7-e5d0-4098-9e88-44b9a910fde9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155422Z:cb1edaa7-e5d0-4098-9e88-44b9a910fde9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "46d39ebb-844e-4d04-9745-8bbef1e83cdb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "9eeadeb0-591f-4b77-9038-7d1b1d6b56a0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155438Z:9eeadeb0-591f-4b77-9038-7d1b1d6b56a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a92c1f02-d39e-40b2-b60f-a4c17dd5343f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "bd53d892-84d1-4d72-aaff-9140816dc4f8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155453Z:bd53d892-84d1-4d72-aaff-9140816dc4f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b5d17c97-e62c-4ef0-abc0-f60dcf4a766d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "3a212f42-ee60-4cfa-b393-3e6570dc90e5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155509Z:3a212f42-ee60-4cfa-b393-3e6570dc90e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4470a067-eedb-4897-a129-c82fd29d8023" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "3ed89108-e80a-405a-9e5d-0c7d84b55520" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155524Z:3ed89108-e80a-405a-9e5d-0c7d84b55520" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9118e8d-b35e-4d49-89ff-fe4ebf54ec26" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "c4069ad8-fab2-4571-bcd2-e8ac8cd69c3f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155540Z:c4069ad8-fab2-4571-bcd2-e8ac8cd69c3f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bdf18baf-5b75-487e-a294-9a8dd0761f24" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "4c267040-50f6-441d-8bff-9619ec86f45b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155555Z:4c267040-50f6-441d-8bff-9619ec86f45b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d81fd720-5d28-472e-9043-23f4ced2772e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "dbe33555-7500-4407-b937-aa4d6e9fc635" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155611Z:dbe33555-7500-4407-b937-aa4d6e9fc635" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "40f38104-82f8-4574-ab87-57163220c7d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "8012f853-11db-4948-acea-9676db89e39a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155626Z:8012f853-11db-4948-acea-9676db89e39a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "74103123-62f3-42de-9588-3c33bdea5166" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "fe79aa5c-2479-44d2-9194-de47ea4d9713" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155642Z:fe79aa5c-2479-44d2-9194-de47ea4d9713" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3afb2b52-7af2-4e45-87dd-769178ae7076" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "b7d17001-862a-4fb5-a781-8f556e4172a7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155657Z:b7d17001-862a-4fb5-a781-8f556e4172a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5b323efb-ff3a-4aee-a2fe-6b232a86d289" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "d0ddda33-72e3-44eb-b5fc-9f1c3017f48f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155658Z:d0ddda33-72e3-44eb-b5fc-9f1c3017f48f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7db63de5-126e-4f21-9667-195d16a5bb90" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "2fac8d51-a400-461f-a2c2-922a193198c2" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "ea9b51bb-827a-4b9d-9331-6734a0f2ea79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155701Z:ea9b51bb-827a-4b9d-9331-6734a0f2ea79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69e9484e-dd46-4c46-8d40-3938202bcff3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "e2d90659-9f18-4b50-8ece-9c5e619f1839" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155716Z:e2d90659-9f18-4b50-8ece-9c5e619f1839" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "54e927e3-4a4d-47be-b27c-03ea58864f52" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "d321f8bb-8fce-4fbd-8fa6-89d5e1764f27" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155731Z:d321f8bb-8fce-4fbd-8fa6-89d5e1764f27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "87497f10-06c4-4ad1-925a-7ea2714853d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "ffc9cd8c-e6c0-437f-b149-e1c234eb7167" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155747Z:ffc9cd8c-e6c0-437f-b149-e1c234eb7167" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fb903595-b6fa-461d-8be3-6a68c6e667fa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "e16a443f-5f51-4d20-9285-c528e6c87eac" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155802Z:e16a443f-5f51-4d20-9285-c528e6c87eac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "401d4c97-002c-4bbe-970e-087a95d218c0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "fccba426-23fa-4f2d-98b7-b3da28531938" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155817Z:fccba426-23fa-4f2d-98b7-b3da28531938" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "77515510-a06d-4e6c-9b03-53b0db6ec40e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "870bc003-52fe-492a-b8be-28bb603ea282" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155833Z:870bc003-52fe-492a-b8be-28bb603ea282" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "81519766-9f72-4763-9714-9d12a727e324" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "38675061-329f-415c-a159-3eda6da3f733" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155848Z:38675061-329f-415c-a159-3eda6da3f733" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b5051f95-0f0e-40e9-9997-9e7c83d7631b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "8bbf0009-d023-4fca-bb0e-a8dae9b335c0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155904Z:8bbf0009-d023-4fca-bb0e-a8dae9b335c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0f4f2e5e-a698-4a06-a04e-a7452a3be80a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "4f7104ae-eb7b-47d3-8826-345d4db5dc67" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155920Z:4f7104ae-eb7b-47d3-8826-345d4db5dc67" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "53f3e420-54b1-4bd1-83c7-0bffb8b6989a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "4588ad96-967e-499d-aec0-013dfe26a96e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155935Z:4588ad96-967e-499d-aec0-013dfe26a96e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e017a00-6486-4bae-aa42-e31f26b253ef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "d35fe135-4014-4853-be4e-97f8c86c48d2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155951Z:d35fe135-4014-4853-be4e-97f8c86c48d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5b44a372-1c20-4e8f-b587-93b8808e57ff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "ecff075f-7aa3-45d1-b77a-64b3a5cef210" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160006Z:ecff075f-7aa3-45d1-b77a-64b3a5cef210" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9bf9c070-a6fc-4867-8242-7f3ae694b702" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "1ba0ce42-046c-4d80-b545-b6c2b03fe377" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160021Z:1ba0ce42-046c-4d80-b545-b6c2b03fe377" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2370de3c-9ab0-4a82-9b88-08b7cd19be43" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "5d4c8106-de12-47d8-ab1f-75201ba112cc" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160037Z:5d4c8106-de12-47d8-ab1f-75201ba112cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "89cda733-6cb8-4c5b-b1c1-05b9a48cb02c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "0aa98941-75f7-49ca-85a0-1490e79bd04d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160052Z:0aa98941-75f7-49ca-85a0-1490e79bd04d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de087f6a-bb0e-43f7-9cf2-c6ff7a71aeb8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "bd7ad9f8-879f-402d-b36d-e72001cc8d9d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160107Z:bd7ad9f8-879f-402d-b36d-e72001cc8d9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9cae6e6-a26e-4275-bab2-68fc4ef84346" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "32215b88-a7cd-40d5-9da0-0d7bf1bf2b5e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160123Z:32215b88-a7cd-40d5-9da0-0d7bf1bf2b5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0871180c-7230-455c-afff-8bed80350415" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "95fa9ea2-5b7a-4fc2-8330-83302ca2b2af" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160138Z:95fa9ea2-5b7a-4fc2-8330-83302ca2b2af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5830681f-11ce-4099-bb8e-2754edb757db" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "ef573878-6b88-433c-bd08-b6f3478de8b9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160139Z:ef573878-6b88-433c-bd08-b6f3478de8b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce9ddf53-2ceb-43b3-84b6-431bb866f67e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e6928cb5-3008-4fe2-8551-539a3fc697d6" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "b855e623-3ddd-4600-aae3-a2885959a184" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160140Z:b855e623-3ddd-4600-aae3-a2885959a184" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2d0b2819-0c4b-4512-8d14-196cae2c7e29" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "85309f39-0f47-4354-bf43-6af1986f469e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160155Z:85309f39-0f47-4354-bf43-6af1986f469e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "87d0b9de-ef0b-46bf-a9d0-394353107e86" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "c0cf7e45-8c0a-4cd0-9d1e-e2f02fc9768b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160211Z:c0cf7e45-8c0a-4cd0-9d1e-e2f02fc9768b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "67d34e8c-eea9-40cf-922d-44a7ac97741a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "2c687620-23d7-493f-9da2-f38cbf252107" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160227Z:2c687620-23d7-493f-9da2-f38cbf252107" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "09bed2a0-8711-49cf-a510-06f8fa312213" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "b8210146-4dfe-48d9-bc0f-01cfcaa67368" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160243Z:b8210146-4dfe-48d9-bc0f-01cfcaa67368" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "402c2c61-890a-4e83-bab1-9d27736bfb8c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "5b7e5a50-2d44-40eb-92fa-1cccb4e7934d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160258Z:5b7e5a50-2d44-40eb-92fa-1cccb4e7934d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:03:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9c0ed01-9ade-4766-90d1-6a2ec3595816" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "3978c249-bf1c-4380-ab0f-30e9e8ac59cb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160313Z:3978c249-bf1c-4380-ab0f-30e9e8ac59cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:03:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c5cccda5-ddcf-4d7e-8aef-78754619df9c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "9f990be2-b29f-44b1-a979-4c63d7d6a4d2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160329Z:9f990be2-b29f-44b1-a979-4c63d7d6a4d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:03:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9704f0b0-4875-4e94-8084-108058a6a788" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "87649c09-e23e-45a8-b392-fd37d872f969" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160344Z:87649c09-e23e-45a8-b392-fd37d872f969" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "88d839f1-f9ce-4f9f-b449-415905341553" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "752bb86e-500f-4b6e-a664-3b20b3e6fffa" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160400Z:752bb86e-500f-4b6e-a664-3b20b3e6fffa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c38317a-d542-45d5-b8d8-e4164c7c3b82" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "34b6df8d-022c-4d88-b732-7a240033327f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160416Z:34b6df8d-022c-4d88-b732-7a240033327f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3c61d7cb-d964-4efa-9084-a0222dd2e7c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "619289bd-ad49-43ec-aebc-e1b0d737332e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160432Z:619289bd-ad49-43ec-aebc-e1b0d737332e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0796b10e-d3b3-4c4e-9578-08e7c914fc74" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "c72e54f3-92ec-4a2c-a03d-fba781001894" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160447Z:c72e54f3-92ec-4a2c-a03d-fba781001894" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e719454-c461-4cbb-8cd4-685b89da762e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "f646628e-35a1-4cde-85e4-155dd44e880a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160503Z:f646628e-35a1-4cde-85e4-155dd44e880a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fc551f4-16ba-472a-8e10-79223640d11d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "ecb0d705-4b6d-4125-88cc-d72b934a093c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160518Z:ecb0d705-4b6d-4125-88cc-d72b934a093c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b21f009e-a462-452a-983c-fc5300fa3758" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "00056c5a-e698-4cf1-ac8c-d1b8133dcf62" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160534Z:00056c5a-e698-4cf1-ac8c-d1b8133dcf62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8e447ab0-ab6d-4f93-8bde-427286a2e9ab" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "bb946571-a9f9-4c62-9723-8d6b8ae3e135" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160549Z:bb946571-a9f9-4c62-9723-8d6b8ae3e135" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9e5bcdb-03b0-45dd-baf5-60ea494df946" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "4521189c-e936-4f7c-9c0c-f5e2e40c30e3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160605Z:4521189c-e936-4f7c-9c0c-f5e2e40c30e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "61c8303c-6c5b-4b0c-8788-39554836c592" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "8b62fc05-9771-4245-80ba-f32b1d0bbf95" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160620Z:8b62fc05-9771-4245-80ba-f32b1d0bbf95" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "94a8b939-11f9-4aeb-9637-8a3ae17c1d23" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "e0a0d05d-54b6-4a6e-848d-b6c6451a4fda" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160621Z:e0a0d05d-54b6-4a6e-848d-b6c6451a4fda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "56921932-1a81-4fe6-a526-ff5cdae79602" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "ea302d50-e758-4023-b009-a7092cbeea74" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "257bdc7b-b124-4099-9082-6d6fbc6a66ff" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160622Z:257bdc7b-b124-4099-9082-6d6fbc6a66ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ff629bb9-5261-455a-8162-d12e01b963cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "2c19eaa5-052d-4ca2-8d76-40f5a08ccf37" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160638Z:2c19eaa5-052d-4ca2-8d76-40f5a08ccf37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3122ef5b-d760-400a-87dc-ef70f0adec8b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "2427f15f-7909-4786-a2e6-537fb6458e3c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160653Z:2427f15f-7909-4786-a2e6-537fb6458e3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "18fceb86-126f-4f5e-b572-edd515d2b7b5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "8dd151dd-ce01-435f-ae71-714f1375afea" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160708Z:8dd151dd-ce01-435f-ae71-714f1375afea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9bb6ffb0-8054-4786-87ae-e9805c66d6dd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "128d721d-01db-483f-b46b-982943198f28" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160724Z:128d721d-01db-483f-b46b-982943198f28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3022e3cd-1d54-444a-912b-b97d3a775859" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "5c137f8f-c182-4745-a50e-e76fe810bac2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160740Z:5c137f8f-c182-4745-a50e-e76fe810bac2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "62d2a9d6-533d-46db-a092-9f1baf85c2a6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "2e92703c-fbb7-4f5e-af0c-b46763bf30f5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160755Z:2e92703c-fbb7-4f5e-af0c-b46763bf30f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ea802ab5-5b86-486b-ba8f-0b122095306b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "148dc0b0-e651-4b27-aed6-93bc9c74f081" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160811Z:148dc0b0-e651-4b27-aed6-93bc9c74f081" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "28d9d7cd-1ff0-410d-8e12-8f23056506fd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "5e9aa8eb-c218-4415-97af-109d4f15439c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160826Z:5e9aa8eb-c218-4415-97af-109d4f15439c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c39c32e5-fa05-4b37-ac2e-8a096ede119d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "9fef281d-11d2-4266-ad62-04ec94dee84b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160842Z:9fef281d-11d2-4266-ad62-04ec94dee84b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "908507d6-5555-4d51-b527-18d25c7f7cce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "a1c8fbb3-7f3d-45e0-9891-8c92d6cbe67f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160858Z:a1c8fbb3-7f3d-45e0-9891-8c92d6cbe67f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "94e86a16-bd40-4fd3-9f59-5898fab630fd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "dd0f7245-7ab0-4a25-ad2d-620805db984d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160913Z:dd0f7245-7ab0-4a25-ad2d-620805db984d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "63ac01c6-a130-4529-afd9-89d44243fd62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "bef771e8-cf79-4405-a7b8-19d3324acfe4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160928Z:bef771e8-cf79-4405-a7b8-19d3324acfe4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d2c5ba07-f18e-482c-907d-8790b43f7c18" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-correlation-request-id": [ + "eb164d6b-54c2-42ca-ac46-a5f8973ae5b4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160944Z:eb164d6b-54c2-42ca-ac46-a5f8973ae5b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fadc4345-3680-40f0-97f7-0510d6d28fb0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "ac4a067d-81ce-4a34-8020-a874949b9ca4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160959Z:ac4a067d-81ce-4a34-8020-a874949b9ca4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:10:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "874ad3a7-a05a-45f4-a90d-872740716ed0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "12554c97-9229-44cd-b75f-d78be5bb0034" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161015Z:12554c97-9229-44cd-b75f-d78be5bb0034" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:10:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "49172eb8-221b-4104-8e55-14125b9b67e5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "438d5a0a-d1bf-45db-9a9c-7fb5eb83a30c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161030Z:438d5a0a-d1bf-45db-9a9c-7fb5eb83a30c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:10:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4a0fdbe5-fd49-426d-8786-70fc06a31a8e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "36b4c2b9-6027-4c30-90f9-70e2bcc67fd6" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161046Z:36b4c2b9-6027-4c30-90f9-70e2bcc67fd6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8eb0b94-a21c-4397-bb1c-b85ed4e174a1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-correlation-request-id": [ + "0cba508a-c4b1-4829-b2f1-530d43d94a7e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161101Z:0cba508a-c4b1-4829-b2f1-530d43d94a7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "14284da0-a730-4804-b881-4c1f84d617af" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "deccf6be-88d0-4c2f-9e73-f091f2557c12" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161117Z:deccf6be-88d0-4c2f-9e73-f091f2557c12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d5dae6c4-48c0-4c8c-b1c6-96f4456f56c8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "cfe5bdee-4140-4568-9e5f-252030c0d2a9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161133Z:cfe5bdee-4140-4568-9e5f-252030c0d2a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c7270462-e844-46fd-9ee3-914359615c26" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "57707342-b214-4669-9102-7a618ca11648" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161133Z:57707342-b214-4669-9102-7a618ca11648" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "CreateManagedDatabasesAsync": [ + "sqlcrudtest-9365", + "sqlcrudtest-9381", + "sqlcrudtest-5682", + "sqlcrudtest-2826" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedInstanceCrudScenarioTests/TestCreateUpdateGetDropManagedInstance.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedInstanceCrudScenarioTests/TestCreateUpdateGetDropManagedInstance.json new file mode 100644 index 0000000000000..73cc35e203d28 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedInstanceCrudScenarioTests/TestCreateUpdateGetDropManagedInstance.json @@ -0,0 +1,1532 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourcegroups/sqlcrudtest-5675?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU2NzU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"south east asia\",\r\n \"tags\": {\r\n \"sqlcrudtest-5675\": \"2018-04-18 16:39:14Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ], + "x-ms-client-request-id": [ + "45a491a7-13f4-42e9-a9dd-1ebc0dc5da0a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675\",\r\n \"name\": \"sqlcrudtest-5675\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"sqlcrudtest-5675\": \"2018-04-18 16:39:14Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:39:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "6e0239e6-0b52-444a-a02f-185a0c5e825b" + ], + "x-ms-correlation-request-id": [ + "6e0239e6-0b52-444a-a02f-185a0c5e825b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T163916Z:6e0239e6-0b52-444a-a02f-185a0c5e825b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"MIGP8G4\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "456" + ], + "x-ms-client-request-id": [ + "8ccf2bc1-fa4b-476b-8085-b63e4f90c700" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertManagedServer\",\r\n \"startTime\": \"2018-04-18T16:39:20.433Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:39:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "4b476540-13b6-4032-946a-aab3647c7998" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "a5e96239-33e3-4e8b-aef1-8e6db82a5082" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T163921Z:a5e96239-33e3-4e8b-aef1-8e6db82a5082" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNGI0NzY1NDAtMTNiNi00MDMyLTk0NmEtYWFiMzY0N2M3OTk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b476540-13b6-4032-946a-aab3647c7998\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:39:20.433Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:40:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d4ac17b8-5932-4b53-ae29-82054088b44e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14921" + ], + "x-ms-correlation-request-id": [ + "b632b9fc-c208-48b7-bc66-471f50da4b86" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164023Z:b632b9fc-c208-48b7-bc66-471f50da4b86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNGI0NzY1NDAtMTNiNi00MDMyLTk0NmEtYWFiMzY0N2M3OTk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b476540-13b6-4032-946a-aab3647c7998\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:39:20.433Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:41:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ff7372e0-3537-42c9-b17e-9d3df545236e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "b32df07a-3e7e-4144-9b90-97351cac61a9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164125Z:b32df07a-3e7e-4144-9b90-97351cac61a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:41:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b324fea8-4ba4-439d-bc05-a2fff90b1f8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "c23c21a9-319f-425d-a4d9-27504def7464" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164126Z:c23c21a9-319f-425d-a4d9-27504def7464" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "609c58df-9fdc-4094-b72f-8345dc7b31c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d1f48af3-5b26-4988-812d-1537cdee506d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "ea39609c-eaa5-49d2-9b54-3bef3b02cf80" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164330Z:ea39609c-eaa5-49d2-9b54-3bef3b02cf80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"asdf\": \"zxcv\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "370b889d-2d15-4d39-b69f-7ba61b1f2702" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14918" + ], + "x-ms-correlation-request-id": [ + "79334fb3-6e23-4a05-9ab9-a38aa545dd29" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164433Z:79334fb3-6e23-4a05-9ab9-a38aa545dd29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"MIGP8G4\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "456" + ], + "x-ms-client-request-id": [ + "71fd590d-fd00-49c1-b6e3-e16d6caad3cb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertManagedServer\",\r\n \"startTime\": \"2018-04-18T16:41:27.02Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:41:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "40c9e140-3ba2-4a3e-a6ea-5c7923638c6c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "5ff5bc34-9194-4305-a56f-6b6e5b976b29" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164127Z:5ff5bc34-9194-4305-a56f-6b6e5b976b29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNDBjOWUxNDAtM2JhMi00YTNlLWE2ZWEtNWM3OTIzNjM4YzZjP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"40c9e140-3ba2-4a3e-a6ea-5c7923638c6c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:41:27.02Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:42:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "852e1360-fb69-4c87-b24b-b057eec0c1d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14920" + ], + "x-ms-correlation-request-id": [ + "0aa0d5b1-2786-40a3-b643-f7ebaef8d383" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164228Z:0aa0d5b1-2786-40a3-b643-f7ebaef8d383" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNDBjOWUxNDAtM2JhMi00YTNlLWE2ZWEtNWM3OTIzNjM4YzZjP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"40c9e140-3ba2-4a3e-a6ea-5c7923638c6c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:41:27.02Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6e2a290a-5f1a-46f9-a402-77d321b38741" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "5e883398-551c-4e35-8c11-c6b21fb9cbdf" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164329Z:5e883398-551c-4e35-8c11-c6b21fb9cbdf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "daa90386-05f2-4240-805c-51846e9e079a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "39f09ad6-a133-4ccc-9879-df3828a90506" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164329Z:39f09ad6-a133-4ccc-9879-df3828a90506" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "74ba0ef1-ef76-46f8-912b-7320c7377bbb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ccfe51ca-0588-4688-8b7e-675a69fee429" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "da8ed0e1-6d5e-4bce-a7b1-8b14e45a6ee4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164330Z:da8ed0e1-6d5e-4bce-a7b1-8b14e45a6ee4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcz9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bdd8b564-8ebb-4de8-819d-9c9f3f6bbf92" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "06bfdf40-11f5-435b-8992-14beaa077e62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "0b7957a6-c4bf-45b4-946b-92ab45775bb1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164331Z:0b7957a6-c4bf-45b4-946b-92ab45775bb1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcz9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a2222d28-158a-4bc6-bdcf-7c59dcf5471b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ca27d9c9-917a-4a28-9d9f-38395983a1c4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "d19bc616-eb07-4121-9a47-14403a022919" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164451Z:d19bc616-eb07-4121-9a47-14403a022919" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcz9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae443d7f-3c1b-41dd-a18d-5144ab82e59d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c8155030-405e-4e66-a8a2-98126a6aa360" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14913" + ], + "x-ms-correlation-request-id": [ + "8a90fd99-d01d-48fe-86b1-0684f70faca7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164508Z:8a90fd99-d01d-48fe-86b1-0684f70faca7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"asdf\": \"zxcv\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "42" + ], + "x-ms-client-request-id": [ + "d8ad429d-ea04-47e2-ac91-24a2782dd404" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertManagedServer\",\r\n \"startTime\": \"2018-04-18T16:43:31.76Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/9fa8a764-2780-44da-92ea-c95316468178?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/9fa8a764-2780-44da-92ea-c95316468178?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "9fa8a764-2780-44da-92ea-c95316468178" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "11c05411-bef7-4f66-abf0-3ab981356721" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164332Z:11c05411-bef7-4f66-abf0-3ab981356721" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/9fa8a764-2780-44da-92ea-c95316468178?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vOWZhOGE3NjQtMjc4MC00NGRhLTkyZWEtYzk1MzE2NDY4MTc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9fa8a764-2780-44da-92ea-c95316468178\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:43:31.76Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0910661b-9dbd-4478-b2d1-2baaee007581" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14919" + ], + "x-ms-correlation-request-id": [ + "5238f884-678f-4811-aa3b-b9fae7846101" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164433Z:5238f884-678f-4811-aa3b-b9fae7846101" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0a8ebdaa-34f4-47d2-b8f9-fcdc7399eb5c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedServer\",\r\n \"startTime\": \"2018-04-18T16:44:34.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "72" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "032d19ab-6f77-4951-b3f5-5627b3b59d11" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "f13da77d-e332-47ae-8b1b-0387f4046a63" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164434Z:f13da77d-e332-47ae-8b1b-0387f4046a63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vMDMyZDE5YWItNmY3Ny00OTUxLWIzZjUtNTYyN2IzYjU5ZDExP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"032d19ab-6f77-4951-b3f5-5627b3b59d11\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:44:34.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8ffb605f-18ec-4e43-ae12-0183fbcceaa3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14917" + ], + "x-ms-correlation-request-id": [ + "e94bdeab-da4f-4971-9b4e-b335659f5011" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164450Z:e94bdeab-da4f-4971-9b4e-b335659f5011" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZU9wZXJhdGlvblJlc3VsdHMvMDMyZDE5YWItNmY3Ny00OTUxLWIzZjUtNTYyN2IzYjU5ZDExP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c0e0c703-c3b7-4fa7-858e-ba2354d37583" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14916" + ], + "x-ms-correlation-request-id": [ + "bc1eaf24-56cc-4428-ae21-071792c6ad9e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164451Z:bc1eaf24-56cc-4428-ae21-071792c6ad9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e02cc350-ed34-4c96-b4a4-9026a699a2b2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedServer\",\r\n \"startTime\": \"2018-04-18T16:44:52.04Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "d2014daf-4cb9-47f9-bae0-5bd2a7caaa35" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "e49839fe-9c2e-4751-b9b2-79a9b6ece54e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164452Z:e49839fe-9c2e-4751-b9b2-79a9b6ece54e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vZDIwMTRkYWYtNGNiOS00N2Y5LWJhZTAtNWJkMmE3Y2FhYTM1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d2014daf-4cb9-47f9-bae0-5bd2a7caaa35\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:44:52.04Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eeca78da-2443-4059-b597-a28f10fa81b7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "87ceeff6-5e35-488d-a3f7-1ecc2da4d381" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164507Z:87ceeff6-5e35-488d-a3f7-1ecc2da4d381" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZU9wZXJhdGlvblJlc3VsdHMvZDIwMTRkYWYtNGNiOS00N2Y5LWJhZTAtNWJkMmE3Y2FhYTM1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "460830ad-9d97-4d81-9498-d795eef8bb69" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14914" + ], + "x-ms-correlation-request-id": [ + "298d26b5-2ba6-4670-802d-7b168217cf52" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164507Z:298d26b5-2ba6-4670-802d-7b168217cf52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourcegroups/sqlcrudtest-5675?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU2NzU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16c6439f-48a9-412f-83a2-99220d4e106c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU2NzUtU09VVEhFQVNUQVNJQSIsImpvYkxvY2F0aW9uIjoic291dGhlYXN0YXNpYSJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "6847de99-2230-4de3-8e09-8ccfb49b2cbc" + ], + "x-ms-correlation-request-id": [ + "6847de99-2230-4de3-8e09-8ccfb49b2cbc" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164509Z:6847de99-2230-4de3-8e09-8ccfb49b2cbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-5675" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b", + "DefaultLocation": "south east asia", + "DefaultLocationId": "southeastasia" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 13d5eed516cfa..5941ef96d5896 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs index c28976b57e58b..b2957616c3b08 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs @@ -93,6 +93,35 @@ public Server CreateServer(ResourceGroup resourceGroup, string location) return v12Server; } + public ManagedInstance CreateManagedInstance(ResourceGroup resourceGroup) + { + return CreateManagedInstance(resourceGroup, TestEnvironmentUtilities.DefaultLocationId); + } + + public ManagedInstance CreateManagedInstance(ResourceGroup resourceGroup, string location) + { + SqlManagementClient sqlClient = GetClient(); + + string miName = "crud-tests-" + SqlManagementTestUtilities.GenerateName(); + Dictionary tags = new Dictionary(); + string subnetId = "/subscriptions/a8c9a924-06c0-4bde-9788-e7b1370969e1/resourceGroups/RG_MIPlayground/providers/Microsoft.Network/virtualNetworks/VNET_MIPlayground/subnets/MISubnet"; + Microsoft.Azure.Management.Sql.Models.Sku sku = new Microsoft.Azure.Management.Sql.Models.Sku(name: "CLS3", tier: "Standard"); + + var managedInstance = sqlClient.ManagedInstances.CreateOrUpdate(resourceGroup.Name, miName, new ManagedInstance() + { + AdministratorLogin = SqlManagementTestUtilities.DefaultLogin, + AdministratorLoginPassword = SqlManagementTestUtilities.DefaultPassword, + Sku = sku, + SubnetId = subnetId, + Tags = tags, + Location = location, + }); + + SqlManagementTestUtilities.ValidateManagedInstance(managedInstance, miName, SqlManagementTestUtilities.DefaultLogin, tags, location); + + return managedInstance; + } + protected virtual void Dispose(bool disposing) { if (!disposedValue) diff --git a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs index 76c5a1e635a6d..faf5aac389841 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs @@ -87,6 +87,17 @@ public static void ValidateServer(Server actual, string name, string login, stri Assert.Equal(location.ToLower().Replace(" ", ""), actual.Location.ToLower().Replace(" ", "")); } + public static void ValidateManagedInstance(ManagedInstance actual, string name, string login, Dictionary tags, string location) + { + Assert.NotNull(actual); + Assert.Equal(name, actual.Name); + Assert.Equal(login, actual.AdministratorLogin); + SqlManagementTestUtilities.AssertCollection(tags, actual.Tags); + + // Location is being returned two different ways across different APIs. + Assert.Equal(location.ToLower().Replace(" ", ""), actual.Location.ToLower().Replace(" ", "")); + } + public static void ValidateDatabase(dynamic expected, Database actual, string name) { Assert.Equal(name, actual.Name); @@ -216,6 +227,68 @@ public static void ValidateDatabaseEx(Database expected, Database actual) SqlManagementTestUtilities.AssertCollection(expected.Tags, actual.Tags); } } + + public static void ValidateManagedDatabase(dynamic expected, ManagedDatabase actual, string name) + { + Assert.Equal(name, actual.Name); + Assert.NotNull(actual.CreationDate); + Assert.NotNull(actual.Id); + Assert.NotNull(actual.Type); + + // Old 2014-04-01 apis return en-us location friendly name, e.g. "Japan East", + // newer apis return locaion id e.g. "japaneast". This makes comparison + // logic annoying until we have a newer api-version for database. + //Assert.Equal(expected.Location, actual.Location); + + if (!string.IsNullOrEmpty(expected.Collation)) + { + Assert.Equal(expected.Collation, actual.Collation); + } + else + { + Assert.NotNull(actual.Collation); + } + + if (expected.Location != null) + { + Assert.Equal(expected.Location, actual.Location); + } + else + { + Assert.NotNull(actual.Location); + } + } + + public static void ValidateManagedDatabaseEx(ManagedDatabase expected, ManagedDatabase actual) + { + Assert.Equal(expected.Name, actual.Name); + Assert.NotNull(actual.CreationDate); + Assert.NotNull(actual.Id); + Assert.NotNull(actual.Type); + + // Old 2014-04-01 apis return en-us location friendly name, e.g. "Japan East", + // newer apis return locaion id e.g. "japaneast". This makes comparison + // logic annoying until we have a newer api-version for database. + //Assert.Equal(expected.Location, actual.Location); + + if (!string.IsNullOrEmpty(expected.Collation)) + { + Assert.Equal(expected.Collation, actual.Collation); + } + else + { + Assert.NotNull(actual.Collation); + } + + if (expected.Location != null) + { + Assert.Equal(expected.Location, actual.Location); + } + else + { + Assert.NotNull(actual.Location); + } + } public static void ValidateElasticPool(dynamic expected, ElasticPool actual, string name) { @@ -267,6 +340,21 @@ public static void ValidateFailoverGroup(FailoverGroup expected, FailoverGroup a AssertCollection(expected.Tags, actual.Tags); } + public static void ValidateInstanceFailoverGroup(InstanceFailoverGroup expected, InstanceFailoverGroup actual, string name) + { + Assert.NotNull(actual); + Assert.NotNull(actual.Id); + Assert.NotNull(actual.Type); + + Assert.Equal(name, actual.Name); + Assert.Equal(expected.ReadOnlyEndpoint.FailoverPolicy, actual.ReadOnlyEndpoint.FailoverPolicy); + Assert.Equal(expected.ReadWriteEndpoint.FailoverPolicy, actual.ReadWriteEndpoint.FailoverPolicy); + Assert.Equal(expected.ReadWriteEndpoint.FailoverWithDataLossGracePeriodMinutes, actual.ReadWriteEndpoint.FailoverWithDataLossGracePeriodMinutes); + + Assert.Equal(expected.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId, actual.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId); + Assert.Equal(expected.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId, actual.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId); + } + public static void ValidateFirewallRule(FirewallRule expected, FirewallRule actual, string name) { Assert.NotNull(actual.Id); @@ -309,6 +397,31 @@ internal static Task CreateDatabasesAsync( })); } + // Wait for all databases to be created. + return Task.WhenAll(createDbTasks); + } + + internal static Task CreateManagedDatabasesAsync( + SqlManagementClient sqlClient, + string resourceGroupName, + ManagedInstance managedInstance, + string testPrefix, + int count) + { + List> createDbTasks = new List>(); + for (int i = 0; i < count; i++) + { + string name = SqlManagementTestUtilities.GenerateName(); + createDbTasks.Add(sqlClient.ManagedDatabases.CreateOrUpdateAsync( + resourceGroupName, + managedInstance.Name, + name, + new ManagedDatabase() + { + Location = managedInstance.Location + })); + } + // Wait for all databases to be created. return Task.WhenAll(createDbTasks); } diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index d03d1bbf2360ed719d1e658c4dbf4553c604afd7..5d8a4a8f75484f39e94ce63f74697b46922cfe96 100644 GIT binary patch literal 389 zcmY+A!EVAZ42JJ{3ST*dH7S(R(^!$V!%hrtJ3M{}y+_6Ceh zLDX&-EZ=9XZkK9V6s1`&GGnMkg?Z7ga&6jUS$1ljuhwnZCDR#fCU(1|^N+lv&neAP zs4ogJxm3`nj4{ETDs|Nyl4xwMqRqzpEiyJchl3qIn$ZvNE+t^1UBf@> Xc{X3@LIa4`+vUW+eeGXnIxBtvMJaz< literal 1298 zcmZ{k&2Q5{5XI+giT`1*9Be0PN=T(jlv05NrvSGcaO{LcA+>9p^6|$*e{a`r5>jM& zy&p4g=FPnI-#<6@)0URocWZ59xAxVXUHMgMGfo=z9p|O(crq*si&*dYCY;OLS;~&% zR4Ap@onO+~Ia{;eS_Rq#wkc6Itk>8tKndt6aeuQT?-Z{fWj;8a-Ud{Yp< z5p%&z`6=He9_gda##Z>`oQYux1D)OBm3GLbkDB8bcN{Y^3@FMbgX@lO;#oVaVjp|W zNlhlFJIb)IEn`gdl30buyR;iBFvoAtE?5S;8v9!;TWnNGc{a=wo;kCcxO4kxZ|pr| zhE7QMFL*3Z4nGiSOna9#eb4 zIAk2Nw_-kGd`4wdOV#G|F8z<~4CFhwhR!X)b9USzWqsIPahFC~>e>1#RQ_JnPkM&B zT*G}%{~F@djM7<++G}dPWOW5Xg}$VrjP(rsjJ||_!<;%-tc3LieZ+kKz4fnPo=~%d znv8hQeKjKc;4yn$3Qt*QFp@H#W*c&jy!sFCgKnqpi8?Q>CuG&o2WLOnY4{5Np4_(` R_QIsJQ@`*hi+s=2w+E+W;CKK4 From 43a0f9919a84633b05189bdde24954c2b363c846 Mon Sep 17 00:00:00 2001 From: Deema Alshamaa Date: Wed, 25 Apr 2018 12:56:20 -0700 Subject: [PATCH 02/26] STR tests and generated files --- .../IShortTermRetentionPoliciesOperations.cs | 189 +++ .../Generated/ISqlManagementClient.cs | 5 + .../Models/ShortTermRetentionPolicy.cs | 61 + .../Generated/SdkInfo_SqlManagementClient.cs | 1 + .../ShortTermRetentionPoliciesOperations.cs | 761 ++++++++++++ ...rmRetentionPoliciesOperationsExtensions.cs | 289 +++++ .../Generated/SqlManagementClient.cs | 6 + .../Sql.Tests/DatabaseRestoreScenarioTests.cs | 57 + .../TestShortTermRetentionPolicyOnBasic.json | 897 ++++++++++++++ ...TestShortTermRetentionPolicyOnPremium.json | 1046 +++++++++++++++++ src/SDKs/_metadata/sql_resource-manager.txt | 8 +- 11 files changed, 3316 insertions(+), 4 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs new file mode 100644 index 0000000000000..a3ec91ba4f89a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs @@ -0,0 +1,189 @@ +// +// 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; + + /// + /// ShortTermRetentionPoliciesOperations operations. + /// + public partial interface IShortTermRetentionPoliciesOperations + { + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, 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 0fab1c9a7481a..27790de5101f7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -291,5 +291,10 @@ public partial interface ISqlManagementClient : System.IDisposable /// IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } + /// + /// Gets the IShortTermRetentionPoliciesOperations. + /// + IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs new file mode 100644 index 0000000000000..608ac03e2765c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A short term retention policy resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ShortTermRetentionPolicy : ProxyResource + { + /// + /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// + public ShortTermRetentionPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The backup retention period in days. + /// This is how many days Point-in-Time Restore will be + /// supported. + public ShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + : base(id, name, type) + { + RetentionDays = retentionDays; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the backup retention period in days. This is how many + /// days Point-in-Time Restore will be supported. + /// + [JsonProperty(PropertyName = "properties.retentionDays")] + public int? RetentionDays { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index e00e947dff346..97dcee349b516 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -51,6 +51,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "Servers", "2015-05-01-preview"), new Tuple("Sql", "ServiceObjectives", "2014-04-01"), new Tuple("Sql", "ServiceTierAdvisors", "2014-04-01"), + new Tuple("Sql", "ShortTermRetentionPolicies", "2017-10-01-preview"), new Tuple("Sql", "SubscriptionUsages", "2015-05-01-preview"), new Tuple("Sql", "SyncAgents", "2015-05-01-preview"), new Tuple("Sql", "SyncGroups", "2015-05-01-preview"), diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs new file mode 100644 index 0000000000000..ee8c84b7e6dd3 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs @@ -0,0 +1,761 @@ +// +// 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; + + /// + /// ShortTermRetentionPoliciesOperations operations. + /// + internal partial class ShortTermRetentionPoliciesOperations : IServiceOperations, IShortTermRetentionPoliciesOperations + { + /// + /// Initializes a new instance of the ShortTermRetentionPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ShortTermRetentionPoliciesOperations(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 short term retention policy. + /// + /// + /// 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> 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 policyName = "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("policyName", policyName); + 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}/backupShortTermRetentionPolicies/{policyName}").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("{policyName}", System.Uri.EscapeDataString(policyName)); + _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; + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy 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 (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string policyName = "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("policyName", policyName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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}/backupShortTermRetentionPolicies/{policyName}").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("{policyName}", System.Uri.EscapeDataString(policyName)); + _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 != 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(); + } + // 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; + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy 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 (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string policyName = "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("policyName", policyName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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}/backupShortTermRetentionPolicies/{policyName}").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("{policyName}", System.Uri.EscapeDataString(policyName)); + _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("PATCH"); + _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 != 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(); + } + // 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/ShortTermRetentionPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs new file mode 100644 index 0000000000000..f67551b3a49df --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs @@ -0,0 +1,289 @@ +// +// 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 ShortTermRetentionPoliciesOperations. + /// + public static partial class ShortTermRetentionPoliciesOperationsExtensions + { + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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 ShortTermRetentionPolicy Get(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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 GetAsync(this IShortTermRetentionPoliciesOperations 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; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy CreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy Update(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.UpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy BeginCreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy BeginUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index 5f540eb7bef8d..d772a1a20b8d9 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -296,6 +296,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } + /// + /// Gets the IShortTermRetentionPoliciesOperations. + /// + public virtual IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// @@ -542,6 +547,7 @@ private void Initialize() DatabaseOperations = new DatabaseOperations(this); ElasticPoolOperations = new ElasticPoolOperations(this); InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); + ShortTermRetentionPolicies = new ShortTermRetentionPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; diff --git a/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs index 9666d524557a1..00a531d9d5133 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs @@ -219,6 +219,63 @@ public void TestLongTermRetentionV2Backups() } } + + [Fact] + public void TestShortTermRetentionPolicyOnPremium() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + // Create a Premium DB so it defaults to 35 days retention. + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + Database database = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), new Database { Location = server.Location, Edition = DatabaseEdition.Premium }); + + // Decrease retention period to 8 days and verfiy that it was updated. + ShortTermRetentionPolicy parameters = new ShortTermRetentionPolicy(retentionDays: 8); + sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + ShortTermRetentionPolicy policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters.RetentionDays, policy.RetentionDays); + + // Increase retention period to 35 days again and verfiy that it was updated. + parameters = new ShortTermRetentionPolicy(retentionDays: 35); + sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters.RetentionDays, policy.RetentionDays); + } + } + + [Fact] + public void TestShortTermRetentionPolicyOnBasic() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + int basicRetention = 7; + + // Create a Basic DB so it defaults to 7 days retention. + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + Database database = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), new Database { Location = server.Location, Edition = DatabaseEdition.Basic }); + + // Attempt to increase retention period to 8 days and verfiy that the operation fails. + ShortTermRetentionPolicy parameters = new ShortTermRetentionPolicy(retentionDays: 8); + sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + ShortTermRetentionPolicy policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(basicRetention, policy.RetentionDays); + + // Attempt to dncrease retention period to 3 days and verify operation failure. + parameters = new ShortTermRetentionPolicy(retentionDays: 3); + sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(basicRetention, policy.RetentionDays); + } + } + [Fact(Skip = "Manual test due to long setup time required (over 18 hours).")] public void TestLongTermRetentionV2Crud() { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json new file mode 100644 index 0000000000000..7884f397d3ef7 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json @@ -0,0 +1,897 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-617?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYxNz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-617\": \"2018-04-25 19:18:11Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "103" + ], + "x-ms-client-request-id": [ + "ca2e6a18-4693-4e0b-90db-95a0d0f54cf8" + ], + "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/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617\",\r\n \"name\": \"sqlcrudtest-617\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-617\": \"2018-04-25 19:18:11Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "240" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:18:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "72ea2dad-2e38-40f4-9242-1851f1516554" + ], + "x-ms-correlation-request-id": [ + "72ea2dad-2e38-40f4-9242-1851f1516554" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191812Z:72ea2dad-2e38-40f4-9242-1851f1516554" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTc/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 Central US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "189" + ], + "x-ms-client-request-id": [ + "7e7783d2-1fbb-4f18-a84a-bea3ef0a22c6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:18:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d4c301ff-69ae-4323-adad-f89626fcc638" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191815Z:d4c301ff-69ae-4323-adad-f89626fcc638" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:18:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "74097c7c-5b1b-4a7e-b78a-8487ab5144ac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "06b79594-c3f2-4c9d-9d6d-369e0cda4a4f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191825Z:06b79594-c3f2-4c9d-9d6d-369e0cda4a4f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:18:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "53a26c79-7d46-4a85-92b6-42f16b3e64ae" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "ca773b4f-c034-46dd-8a14-5c8f36ae9d48" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191845Z:ca773b4f-c034-46dd-8a14-5c8f36ae9d48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:19:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d6cc448d-6e5d-45a9-823e-522ca59b26e7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "867a8993-0cd4-4865-ac4e-577f38bf6caa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191905Z:867a8993-0cd4-4865-ac4e-577f38bf6caa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:19:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0c7026e6-dd3a-49a2-b466-fcd7d9e170e6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "f15b96b6-b869-47ef-9581-45d4c6f5e242" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191925Z:f15b96b6-b869-47ef-9581-45d4c6f5e242" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.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-1017.database.windows.net\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017\",\r\n \"name\": \"sqlcrudtest-1017\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:19:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d6fb6acc-f909-4090-b9cb-596e10e90ff2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "408e9af1-140e-45ed-bf90-d4d300015dc5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191926Z:408e9af1-140e-45ed-bf90-d4d300015dc5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzU/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"edition\": \"Basic\"\r\n },\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "84" + ], + "x-ms-client-request-id": [ + "50f6aa05-6714-4081-8a55-949bfd208b89" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T12:19:26.813-07:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:19:26 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/operationResults/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "4ec63782-f5ea-44c6-9b42-499ad6f97efc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "985c4d05-9b4e-472c-bc35-d97377bd27cf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191926Z:985c4d05-9b4e-472c-bc35-d97377bd27cf" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYXp1cmVBc3luY09wZXJhdGlvbi80ZWM2Mzc4Mi1mNWVhLTQ0YzYtOWI0Mi00OTlhZDZmOTdlZmM/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"4ec63782-f5ea-44c6-9b42-499ad6f97efc\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:19:56 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "40ee2f07-69ac-4b37-8734-c0258c34ae9d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "0a80925e-57af-40c0-9088-84b824ad8ebd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191956Z:0a80925e-57af-40c0-9088-84b824ad8ebd" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYXp1cmVBc3luY09wZXJhdGlvbi80ZWM2Mzc4Mi1mNWVhLTQ0YzYtOWI0Mi00OTlhZDZmOTdlZmM/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"4ec63782-f5ea-44c6-9b42-499ad6f97efc\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:20:26 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dff3d9e2-c5ff-4361-b3c8-929d8b6427da" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "042284da-60b7-4f20-9d3d-ca2ed0fb5133" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T192027Z:042284da-60b7-4f20-9d3d-ca2ed0fb5133" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzU/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175\",\r\n \"name\": \"sqlcrudtest-7175\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0,user\",\r\n \"managedBy\": null,\r\n \"properties\": {\r\n \"databaseId\": \"48b69277-55f4-4149-b6a9-a41dce354962\",\r\n \"edition\": \"Basic\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"Basic\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"creationDate\": \"2018-04-25T19:19:27.017Z\",\r\n \"currentServiceObjectiveId\": \"dd6d99bb-f193-4ec1-86f2-43d3bccbc49c\",\r\n \"requestedServiceObjectiveId\": \"dd6d99bb-f193-4ec1-86f2-43d3bccbc49c\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"West US 2\",\r\n \"earliestRestoreDate\": \"2018-04-25T19:50:02.533Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null,\r\n \"zoneRedundant\": false,\r\n \"isUpgradeRequested\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:20:26 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e38ec7d-5a93-4394-aaae-a3dcf17711bd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "1ae7df13-e636-45c0-9132-f3c4214a0876" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T192027Z:1ae7df13-e636-45c0-9132-f3c4214a0876" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ca4dae1c-c31d-4d89-8642-59ce36980290" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:20:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a275bec8-fb5a-4ff9-8c08-0ff055c5b26a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "8a047945-fe3d-43b7-b709-7b143d45cfb9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T192030Z:8a047945-fe3d-43b7-b709-7b143d45cfb9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "642b8f18-d180-4964-92b5-7b388b558b98" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:20:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "20d528ff-ee7c-4014-9aae-cbea1008aa9f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "2dbf0a63-8345-41a5-80b1-c824a2288835" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T192033Z:2dbf0a63-8345-41a5-80b1-c824a2288835" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-617?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYxNz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d3b21eb-c676-4f7f-b812-fff5826cf35f" + ], + "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": [ + "Wed, 25 Apr 2018 19:20:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYxNy1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b1d8fd0c-81d1-470f-93ea-34b7810e79ad" + ], + "x-ms-correlation-request-id": [ + "b1d8fd0c-81d1-470f-93ea-34b7810e79ad" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T192034Z:b1d8fd0c-81d1-470f-93ea-34b7810e79ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-617" + ], + "CreateServer": [ + "sqlcrudtest-1017" + ], + "TestShortTermRetentionPolicyOnBasic": [ + "sqlcrudtest-7175" + ] + }, + "Variables": { + "SubscriptionId": "a8f5abd6-ccbc-4801-89e3-cfc7219946ba", + "DefaultLocation": "West Central US" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json new file mode 100644 index 0000000000000..4db616b259d8f --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json @@ -0,0 +1,1046 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-8792?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3OTI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-8792\": \"2018-04-25 19:11:28Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ], + "x-ms-client-request-id": [ + "fd9114bb-ce6c-48e2-8f55-26f9cd45f337" + ], + "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/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792\",\r\n \"name\": \"sqlcrudtest-8792\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8792\": \"2018-04-25 19:11:28Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:11:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "593b7259-6001-4ea8-96d1-05f07366a5fc" + ], + "x-ms-correlation-request-id": [ + "593b7259-6001-4ea8-96d1-05f07366a5fc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191129Z:593b7259-6001-4ea8-96d1-05f07366a5fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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 Central US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "189" + ], + "x-ms-client-request-id": [ + "51185210-4fac-48c5-9528-329dee45eaab" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:11:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "fb8427d6-3d67-4ea2-826d-788941b7df1a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "4c398139-5c32-43f2-bc93-6d6b5c040ad6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191132Z:4c398139-5c32-43f2-bc93-6d6b5c040ad6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYjg0MjdkNi0zZDY3LTRlYTItODI2ZC03ODg5NDFiN2RmMWE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fb8427d6-3d67-4ea2-826d-788941b7df1a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:11:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dd621e5d-8461-41b5-bc2f-2f322b0fd679" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "746725c4-0202-4729-a2e6-db3e099f73d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191142Z:746725c4-0202-4729-a2e6-db3e099f73d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYjg0MjdkNi0zZDY3LTRlYTItODI2ZC03ODg5NDFiN2RmMWE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fb8427d6-3d67-4ea2-826d-788941b7df1a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:12:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9fe0e36c-c609-442d-ab5e-2c735d7ce0fc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "a4616e6c-c706-4869-b07c-5159f87f7bf7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191202Z:a4616e6c-c706-4869-b07c-5159f87f7bf7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYjg0MjdkNi0zZDY3LTRlYTItODI2ZC03ODg5NDFiN2RmMWE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fb8427d6-3d67-4ea2-826d-788941b7df1a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:12:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7e03c146-01f9-4e6d-8a56-8ae66c7b76cf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "0ab28889-6144-49a3-a0c2-fe388189b0e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191222Z:0ab28889-6144-49a3-a0c2-fe388189b0e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.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-7389.database.windows.net\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389\",\r\n \"name\": \"sqlcrudtest-7389\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:12:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "72e630bb-f092-4fd4-b079-afe4072095d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "0ed37874-99fb-4ce1-8106-e52d5f063b86" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191222Z:0ed37874-99fb-4ce1-8106-e52d5f063b86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"edition\": \"Premium\"\r\n },\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "86" + ], + "x-ms-client-request-id": [ + "1a7e53da-eeee-4571-b11f-a34e97a937e1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T12:12:24.255-07:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:12:23 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/operationResults/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + ], + "Retry-After": [ + "30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "da05379b-577c-48ed-b9c5-f3c4ba94912c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "7209e45b-9b3f-4a03-9a3e-cb2aca173646" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191224Z:7209e45b-9b3f-4a03-9a3e-cb2aca173646" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2F6dXJlQXN5bmNPcGVyYXRpb24vZGEwNTM3OWItNTc3Yy00OGVkLWI5YzUtZjNjNGJhOTQ5MTJjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"da05379b-577c-48ed-b9c5-f3c4ba94912c\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:12:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e7c90609-e13c-4584-b2b0-49e53b8d2863" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "ead3989f-d938-4465-b6cb-52f582992492" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191254Z:ead3989f-d938-4465-b6cb-52f582992492" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2F6dXJlQXN5bmNPcGVyYXRpb24vZGEwNTM3OWItNTc3Yy00OGVkLWI5YzUtZjNjNGJhOTQ5MTJjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"da05379b-577c-48ed-b9c5-f3c4ba94912c\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:13:24 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4fada2d6-bb3b-4b48-82b4-88134434008c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "3313553a-d0be-49fd-917b-5bb05b3a6238" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191324Z:3313553a-d0be-49fd-917b-5bb05b3a6238" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2F6dXJlQXN5bmNPcGVyYXRpb24vZGEwNTM3OWItNTc3Yy00OGVkLWI5YzUtZjNjNGJhOTQ5MTJjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operationId\": \"da05379b-577c-48ed-b9c5-f3c4ba94912c\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:13:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "756f0c92-ab85-484d-b4a1-341acc419017" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "39d0ee3e-18b0-484a-b681-7b93b6a158cd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191354Z:39d0ee3e-18b0-484a-b681-7b93b6a158cd" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013\",\r\n \"name\": \"sqlcrudtest-3013\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0,user\",\r\n \"managedBy\": null,\r\n \"properties\": {\r\n \"databaseId\": \"3dd60ea6-b1aa-4dda-8248-37110b15007f\",\r\n \"edition\": \"Premium\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"P1\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"536870912000\",\r\n \"creationDate\": \"2018-04-25T19:12:24.46Z\",\r\n \"currentServiceObjectiveId\": \"7203483a-c4fb-4304-9e9f-17c71c904f5d\",\r\n \"requestedServiceObjectiveId\": \"7203483a-c4fb-4304-9e9f-17c71c904f5d\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"West US 2\",\r\n \"earliestRestoreDate\": \"2018-04-25T19:43:27.01Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null,\r\n \"zoneRedundant\": false,\r\n \"isUpgradeRequested\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:13:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fc4eb34f-1a5c-43a2-b95d-1f53ff667195" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "77ffc7b1-d0da-4aad-9594-b72043411f82" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191354Z:77ffc7b1-d0da-4aad-9594-b72043411f82" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "52" + ], + "x-ms-client-request-id": [ + "a054e613-c1dd-48fb-b3f0-de316432ff4a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T19:13:55.397Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:13:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyOperationResults/387d916b-28c7-4d90-b44a-350c0193247f?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyAzureAsyncOperation/387d916b-28c7-4d90-b44a-350c0193247f?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "452941ba-ce69-4a8c-9e41-66686cde663e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "a8805eba-9115-4f93-add8-f1e00c4a7f46" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191355Z:a8805eba-9115-4f93-add8-f1e00c4a7f46" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "53" + ], + "x-ms-client-request-id": [ + "6fd03722-510a-425e-97be-4272e5336bde" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T19:13:58.04Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:13:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyOperationResults/bac7ef0d-0bb7-46dc-b33d-1dda3de36f2f?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyAzureAsyncOperation/bac7ef0d-0bb7-46dc-b33d-1dda3de36f2f?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "08cde6de-bd31-4ae9-9250-a53ed248db08" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "6acf8234-5237-4412-ad43-26c4c6c005c9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191358Z:6acf8234-5237-4412-ad43-26c4c6c005c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0059fe33-e67d-4158-88c6-f0f7283d0a56" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:13:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "82b5c338-16bc-4cb1-9e41-60daf753987e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "bc3aa0a4-3622-4580-99c5-0ad4dd9aff6d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191357Z:bc3aa0a4-3622-4580-99c5-0ad4dd9aff6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "00ff5386-9d88-4269-b6cc-57563bb9eacb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 25 Apr 2018 19:14:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "42fa0925-e186-424d-9f88-4a2914947f15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "d2cf1c72-4424-41e8-8806-da100b0e929a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191400Z:d2cf1c72-4424-41e8-8806-da100b0e929a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-8792?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3OTI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "52963db3-cf66-433b-b1b1-821b5a7c2710" + ], + "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": [ + "Wed, 25 Apr 2018 19:14:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg3OTItV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "332a8329-71c5-47fc-a0a7-fe1c21b9fcf1" + ], + "x-ms-correlation-request-id": [ + "332a8329-71c5-47fc-a0a7-fe1c21b9fcf1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180425T191401Z:332a8329-71c5-47fc-a0a7-fe1c21b9fcf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8792" + ], + "CreateServer": [ + "sqlcrudtest-7389" + ], + "TestShortTermRetentionPolicyOnPremium": [ + "sqlcrudtest-3013" + ] + }, + "Variables": { + "SubscriptionId": "a8f5abd6-ccbc-4801-89e3-cfc7219946ba", + "DefaultLocation": "West Central US" + } +} \ 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 5d8a4a8f75484..91482102c034a 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,14 +1,14 @@ Type dsc to start/install the DS Consolidated Console -2018-04-23 18:27:18 UTC +2018-04-25 17:32:03 UTC 1) azure-rest-api-specs repository information -GitHub user: ziwa-msft +GitHub user: dalshamaa Branch: master -Commit: b2b515668c940cceba1a36b732cbf88d19379b8d +Commit: 97dd133a5cc01381bf213049fcd387da259c65e7 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\ziwa\AppData\Roaming\npm `-- autorest@2.0.4262 +Bootstrapper version: C:\Users\deema\AppData\Roaming\npm `-- autorest@2.0.4262 Latest installed version: From 5a65db02d901eefa09a24321267b84b9cd9215b4 Mon Sep 17 00:00:00 2001 From: Deema Alshamaa Date: Wed, 25 Apr 2018 13:26:05 -0700 Subject: [PATCH 03/26] updated the assembly and csproj version --- .../Management.Sql/Microsoft.Azure.Management.Sql.csproj | 4 ++-- .../SqlManagement/Management.Sql/Properties/AssemblyInfo.cs | 2 +- src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj index 992e25221a261..306e1e4498f0b 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -7,12 +7,12 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.13.1-preview + 1.13.2-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 1fa72077e9787..3639c5dc0fca2 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.13.1.0")] +[assembly: AssemblyFileVersion("1.13.2.0")] diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 5941ef96d5896..accaaeb0f942f 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -23,7 +23,7 @@ - + From 1e52a8b21f7f6f257c1e22fe6edc8485586baecb Mon Sep 17 00:00:00 2001 From: yaakoviyun Date: Wed, 9 May 2018 16:12:34 +0300 Subject: [PATCH 04/26] Adding VA generated files and template for tests --- ...eVulnerabilityAssessmentScansOperations.cs | 1109 +++++++++++++++++ ...lityAssessmentScansOperationsExtensions.cs | 319 +++++ ...eVulnerabilityAssessmentScansOperations.cs | 206 +++ .../Generated/ISqlManagementClient.cs | 5 + .../Models/DatabaseVulnerabilityAssessment.cs | 83 ++ ...abaseVulnerabilityAssessmentScansExport.cs | 63 + ...ilityAssessmentRecurringScansProperties.cs | 76 ++ .../VulnerabilityAssessmentScanError.cs | 61 + .../VulnerabilityAssessmentScanRecord.cs | 124 ++ .../VulnerabilityAssessmentScanState.cs | 24 + .../VulnerabilityAssessmentScanTriggerType.cs | 22 + .../Generated/SdkInfo_SqlManagementClient.cs | 36 +- .../Generated/SqlManagementClient.cs | 6 + ...aseVulnerabilityAssessmentScenarioTests.cs | 133 ++ src/SDKs/_metadata/sql_resource-manager.txt | 11 +- 15 files changed, 2261 insertions(+), 17 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs create mode 100644 src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs 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 0000000000000..9661d7a0c3980 --- /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 ExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExecuteWithHttpMessagesAsync(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 BeginExecuteWithHttpMessagesAsync(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, "BeginExecute", 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 0000000000000..fc09dc8ec8383 --- /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 Execute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + operations.ExecuteAsync(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 ExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ExecuteWithHttpMessagesAsync(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 BeginExecute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + operations.BeginExecuteAsync(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 BeginExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginExecuteWithHttpMessagesAsync(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/IDatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs new file mode 100644 index 0000000000000..1556a97386f9b --- /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 ExecuteWithHttpMessagesAsync(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 BeginExecuteWithHttpMessagesAsync(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/ISqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs index 6d60f338a605e..7c5a7fa3f1010 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -286,6 +286,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 0000000000000..7c06d83df98df --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs @@ -0,0 +1,83 @@ +// +// 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. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// 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. + /// The recurring scans settings + public DatabaseVulnerabilityAssessment(string id = default(string), string name = default(string), string type = default(string), string storageContainerPath = default(string), string storageContainerSasKey = 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; } + + } +} 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 0000000000000..3079732cb63cd --- /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 0000000000000..94b0e00b39ab4 --- /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 0000000000000..d381ce53ff141 --- /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 0000000000000..298f1c24a1f83 --- /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 0000000000000..503c61895227f --- /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 0000000000000..252a76bff40a2 --- /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 be91333074968..15d0c70db5bda 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,7 @@ 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", "DatabaseVulnerabilityAssessmentScans", "2017-10-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 +68,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 de51d7d21b0c7..b6eda8ee0db19 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -291,6 +291,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. /// @@ -541,6 +546,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/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs new file mode 100644 index 0000000000000..27a98f52459ae --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs @@ -0,0 +1,133 @@ +// 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.Data.SqlClient; +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 Microsoft.Azure.Test.HttpRecorder; +using System; +using Microsoft.Rest.Azure; + +namespace Sql.Tests +{ + public class DatabaseVulnerabilityAssessmentScenarioTests + { + [Fact] + public 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); + + // Verify Policy is disabled to begin with + DataMaskingPolicy policy = sqlClient.DataMaskingPolicies.Get(resourceGroup.Name, server.Name, dbName); + Assert.Equal(DataMaskingState.Disabled, policy.DataMaskingState); + + }; + } + + + [Fact] + public void TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines() + { + + } + + [Fact] + public 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); + + // Set policy + + // Run some scans + string scanId = string.Format("scan1_{0}", DateTime.UtcNow.Ticks); + sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId); + + string scanId1 = string.Format("scan3_{0}", DateTime.UtcNow.Ticks); + sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId1); + + // Veroify 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 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); + + // Set policy + + // Run some scans + string scanId = string.Format("scan1_{0}", DateTime.UtcNow.Ticks); + sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId); + sqlClient.DatabaseVulnerabilityAssessmentScans.Export(resourceGroup.Name, server.Name, dbName, scanId); + } + } + } +} diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index b5a6936ab9c62..08e93adb0c740 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,11 +1,14 @@ -2018-04-18 23:35:28 UTC + +Type dsc to start/install the DS Consolidated Console + +2018-05-09 11:37:12 UTC 1) azure-rest-api-specs repository information -GitHub user: jugeorge +GitHub user: yaakoviyun Branch: master -Commit: d08c7f54a125819caaa8c5f553206d1adbae60f9 +Commit: 44bbc7e2975528efd4a0e39d54876629314aad5c 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: From 00e26cf5cecbe5715856e652ace8b378fc81a42d Mon Sep 17 00:00:00 2001 From: yaakoviyun Date: Sun, 13 May 2018 08:47:30 +0300 Subject: [PATCH 05/26] Adding VA balse and policy APIs --- ...bilityAssessmentRuleBaselinesOperations.cs | 711 ++++++++++++++++++ ...ssmentRuleBaselinesOperationsExtensions.cs | 196 +++++ ...abaseVulnerabilityAssessmentsOperations.cs | 686 +++++++++++++++++ ...rabilityAssessmentsOperationsExtensions.cs | 172 +++++ ...bilityAssessmentRuleBaselinesOperations.cs | 130 ++++ ...abaseVulnerabilityAssessmentsOperations.cs | 120 +++ .../Generated/ISqlManagementClient.cs | 10 + ...baseVulnerabilityAssessmentRuleBaseline.cs | 85 +++ ...VulnerabilityAssessmentRuleBaselineItem.cs | 70 ++ .../Generated/SdkInfo_SqlManagementClient.cs | 2 + .../Generated/SqlManagementClient.cs | 12 + src/SDKs/_metadata/sql_resource-manager.txt | 4 +- 12 files changed, 2196 insertions(+), 2 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs 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 0000000000000..24c1350e069b5 --- /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 0000000000000..2056fb20b9603 --- /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/DatabaseVulnerabilityAssessmentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs new file mode 100644 index 0000000000000..ac7738e453037 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs @@ -0,0 +1,686 @@ +// +// 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 (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 0000000000000..264fd66ee33cc --- /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 0000000000000..a91d62d5fb85d --- /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/IDatabaseVulnerabilityAssessmentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs new file mode 100644 index 0000000000000..1e4aa09b2be5b --- /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 7c5a7fa3f1010..0e0bcae50781f 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. /// 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 0000000000000..c986ecdc847f5 --- /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 0000000000000..0b771e41c74bd --- /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/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index 15d0c70db5bda..df61ed5c7bde7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -28,7 +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"), diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index b6eda8ee0db19..e9fc4cc457b29 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. /// @@ -537,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); diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index 08e93adb0c740..d70dd33ab55ef 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,12 +1,12 @@ Type dsc to start/install the DS Consolidated Console -2018-05-09 11:37:12 UTC +2018-05-12 18:15:45 UTC 1) azure-rest-api-specs repository information GitHub user: yaakoviyun Branch: master -Commit: 44bbc7e2975528efd4a0e39d54876629314aad5c +Commit: 2344dd5a986df8d4dc87a9cd74df62d35e0f6f08 2) AutoRest information Requested version: latest From e980019daaacf17adcf9f94efcde369598e8e4ca Mon Sep 17 00:00:00 2001 From: yaakoviyun Date: Mon, 14 May 2018 15:14:38 +0300 Subject: [PATCH 06/26] Adding tests and recordings --- ...aseVulnerabilityAssessmentScenarioTests.cs | 177 ++- ...teGetDatabaseVulnerabilityAssessments.json | 1296 ++++++++++++++++ ...abaseVulnerabilityAssessmentBaselines.json | 1299 +++++++++++++++++ 3 files changed, 2759 insertions(+), 13 deletions(-) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json diff --git a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs index 27a98f52459ae..ac349376ce17e 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs @@ -2,23 +2,27 @@ // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Data.SqlClient; 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 Microsoft.Azure.Test.HttpRecorder; 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 void TestCreateUpdateGetDatabaseVulnerabilityAssessments() + public async void TestCreateUpdateGetDatabaseVulnerabilityAssessments() { string testPrefix = "sqlvulnerabilityassessmentcrudtest-"; using (SqlManagementTestContext context = new SqlManagementTestContext(this)) @@ -36,22 +40,91 @@ public void TestCreateUpdateGetDatabaseVulnerabilityAssessments() }); Assert.NotNull(db1); - // Verify Policy is disabled to begin with - DataMaskingPolicy policy = sqlClient.DataMaskingPolicies.Get(resourceGroup.Name, server.Name, dbName); - Assert.Equal(DataMaskingState.Disabled, policy.DataMaskingState); - + // 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 void TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines() + 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); + + // Set policy + await SetPolicy(context, sqlClient, resourceGroup, server, dbName); + + // Set basleine + 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 basleine + 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 basleine + 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 void TestExcetueGetListDatabaseVulnerabilityAssessmentScans() + public async void TestExcetueGetListDatabaseVulnerabilityAssessmentScans() { using (SqlManagementTestContext context = new SqlManagementTestContext(this)) { @@ -71,12 +144,13 @@ public void TestExcetueGetListDatabaseVulnerabilityAssessmentScans() Assert.NotNull(db1); // Set policy + await SetPolicy(context, sqlClient, resourceGroup, server, dbName); // Run some scans - string scanId = string.Format("scan1_{0}", DateTime.UtcNow.Ticks); + string scanId = string.Format("scantest1_{0}", DateTime.UtcNow.Ticks); sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId); - string scanId1 = string.Format("scan3_{0}", DateTime.UtcNow.Ticks); + string scanId1 = string.Format("scantest2_{0}", DateTime.UtcNow.Ticks); sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId1); // Veroify get scan and list scans @@ -102,7 +176,7 @@ public void TestExcetueGetListDatabaseVulnerabilityAssessmentScans() } [Fact] - public void TestExportDatabaseVulnerabilityAssessmentScans() + public async void TestExportDatabaseVulnerabilityAssessmentScans() { using (SqlManagementTestContext context = new SqlManagementTestContext(this)) { @@ -122,6 +196,7 @@ public void TestExportDatabaseVulnerabilityAssessmentScans() Assert.NotNull(db1); // Set policy + await SetPolicy(context, sqlClient, resourceGroup, server, dbName); // Run some scans string scanId = string.Format("scan1_{0}", DateTime.UtcNow.Ticks); @@ -129,5 +204,81 @@ public void TestExportDatabaseVulnerabilityAssessmentScans() 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 0000000000000..b7f8623d7cef0 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json @@ -0,0 +1,1296 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-4039?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQwMzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-4039\": \"2018-05-14 12:06:49Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "076efd45-8659-4aa6-8a5a-9c090db201a9" + ], + "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-4039\",\r\n \"name\": \"sqlcrudtest-4039\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-4039\": \"2018-05-14 12:06:49Z\"\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, 14 May 2018 12:06:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "87008bbf-e92f-4da9-b743-1cae8e1c5418" + ], + "x-ms-correlation-request-id": [ + "87008bbf-e92f-4da9-b743-1cae8e1c5418" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120652Z:87008bbf-e92f-4da9-b743-1cae8e1c5418" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "0f3c6dcb-a6af-44f8-afb7-fbee2386346e" + ], + "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-14T12:06:58.513Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:06:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverOperationResults/70ee4900-9869-49b1-9e42-2d7731d9e26b?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-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "70ee4900-9869-49b1-9e42-2d7731d9e26b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "2117a9df-1a28-4ebe-a903-db5a78baee3d" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120658Z:2117a9df-1a28-4ebe-a903-db5a78baee3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83MGVlNDkwMC05ODY5LTQ5YjEtOWU0Mi0yZDc3MzFkOWUyNmI/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\": \"70ee4900-9869-49b1-9e42-2d7731d9e26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:06:58.513Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:07:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e4d0953e-feb6-40b1-83a4-1fd3f8a12364" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14916" + ], + "x-ms-correlation-request-id": [ + "cd785251-9ad8-4c4f-b92a-5393d62949ba" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120709Z:cd785251-9ad8-4c4f-b92a-5393d62949ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83MGVlNDkwMC05ODY5LTQ5YjEtOWU0Mi0yZDc3MzFkOWUyNmI/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\": \"70ee4900-9869-49b1-9e42-2d7731d9e26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:06:58.513Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:07:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "98228674-5436-44bd-a966-51d5f1a85249" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "7d2b41ad-1b4f-4e6f-9f81-616654b7fb0c" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120729Z:7d2b41ad-1b4f-4e6f-9f81-616654b7fb0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83MGVlNDkwMC05ODY5LTQ5YjEtOWU0Mi0yZDc3MzFkOWUyNmI/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\": \"70ee4900-9869-49b1-9e42-2d7731d9e26b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:06:58.513Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:07:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dbfeec81-9f37-469a-9f87-2f755fc9f419" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14914" + ], + "x-ms-correlation-request-id": [ + "1c2ad0be-4da6-4b0f-ae41-75d829a4bb3d" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120750Z:1c2ad0be-4da6-4b0f-ae41-75d829a4bb3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-4506.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506\",\r\n \"name\": \"sqlcrudtest-4506\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:07:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b485f0f7-0d9e-4846-a537-e9ada668eb0c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14913" + ], + "x-ms-correlation-request-id": [ + "a8a3cf05-73b1-460f-bef0-37291d6baab0" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120750Z:a8a3cf05-73b1-460f-bef0-37291d6baab0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQ/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": [ + "33c5f7bf-4e19-45f3-af7e-a3fa50f84c71" + ], + "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-14T12:07:53.507Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:07:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/323f59d3-958c-4946-b2b4-9be50d09dfc2?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-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "b3d6a1ae-832b-40a5-a3d3-b2f5626c445b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "bf3cfb49-5109-4235-be56-4cd4d337345c" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120753Z:bf3cfb49-5109-4235-be56-4cd4d337345c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyM2Y1OWQzLTk1OGMtNDk0Ni1iMmI0LTliZTUwZDA5ZGZjMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"323f59d3-958c-4946-b2b4-9be50d09dfc2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:07:53.507Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:08:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cb3a3fe1-b8f9-4206-b3ac-9b652feb4413" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14912" + ], + "x-ms-correlation-request-id": [ + "b499b39e-a788-405b-8feb-9f0d5f66f55c" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120809Z:b499b39e-a788-405b-8feb-9f0d5f66f55c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyM2Y1OWQzLTk1OGMtNDk0Ni1iMmI0LTliZTUwZDA5ZGZjMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"323f59d3-958c-4946-b2b4-9be50d09dfc2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:07:53.507Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:08:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "804503e4-e218-4068-89a7-973922d79cd9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14911" + ], + "x-ms-correlation-request-id": [ + "da58b46b-c73b-46af-809b-8bad80e26e73" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120824Z:da58b46b-c73b-46af-809b-8bad80e26e73" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyM2Y1OWQzLTk1OGMtNDk0Ni1iMmI0LTliZTUwZDA5ZGZjMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"323f59d3-958c-4946-b2b4-9be50d09dfc2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:07:53.507Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:08:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a32325a7-c570-4179-b73d-6af6f5de3722" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14910" + ], + "x-ms-correlation-request-id": [ + "e3ae3fa6-7751-4f51-97e6-14eb2ad16c9e" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120840Z:e3ae3fa6-7751-4f51-97e6-14eb2ad16c9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQ/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\": \"7b7c2d48-640c-4d66-8432-69290a883522\",\r\n \"creationDate\": \"2018-05-14T12:07:53.833Z\",\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-14T12:38:33.44Z\",\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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404\",\r\n \"name\": \"sqlvulnerabilityassessmentcrudtest-7404\",\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, 14 May 2018 12:08:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8d87a4c1-0771-4820-9508-b3615b19e30e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14909" + ], + "x-ms-correlation-request-id": [ + "fe031758-85ff-435a-8f9e-e2d4c3d29dca" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120840Z:fe031758-85ff-435a-8f9e-e2d4c3d29dca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a43f3ab7-2fb2-4c58-b324-ed57c2c1400c" + ], + "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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/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, 14 May 2018 12:08:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8e586bb5-8f59-4040-b54f-83b35bc0e1a4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14908" + ], + "x-ms-correlation-request-id": [ + "85a8d89c-6ff2-46e7-8c0b-e07bba0b53ca" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120851Z:85a8d89c-6ff2-46e7-8c0b-e07bba0b53ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67c001dd-16fe-4fd9-9e38-86f5560ddab0" + ], + "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://sqlvatest4536.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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/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, 14 May 2018 12:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c064541f-e315-49ab-a467-c57a91346181" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14907" + ], + "x-ms-correlation-request-id": [ + "785ac445-f8a4-4455-af10-d47baf57f69e" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120927Z:785ac445-f8a4-4455-af10-d47baf57f69e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5066a1f0-6468-4201-9ff3-10fa1ee83b60" + ], + "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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/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, 14 May 2018 12:09:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "45936547-48e1-44a0-b2a5-01d13e5490ea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14906" + ], + "x-ms-correlation-request-id": [ + "96a99917-4d21-4387-ada9-611363733047" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120957Z:96a99917-4d21-4387-ada9-611363733047" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Storage/storageAccounts/sqlvatest4536?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q0NTM2P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": [ + "25dc7d08-bae3-4b32-bd1e-2f43d8af5f5f" + ], + "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, 14 May 2018 12:08:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/1ccb1305-5b29-48b9-83a4-cf0dab67db3a?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": [ + "1ccb1305-5b29-48b9-83a4-cf0dab67db3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "e4abc2c5-322d-4391-a32d-b5211d0cf6d7" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120859Z:e4abc2c5-322d-4391-a32d-b5211d0cf6d7" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/1ccb1305-5b29-48b9-83a4-cf0dab67db3a?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvMWNjYjEzMDUtNWIyOS00OGI5LTgzYTQtY2YwZGFiNjdkYjNhP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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-4039/providers/Microsoft.Storage/storageAccounts/sqlvatest4536\",\r\n \"name\": \"sqlvatest4536\",\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-14T12:08:58.6708603Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-14T12:08:58.6708603Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-14T12:08:58.4833549Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest4536.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest4536.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, 14 May 2018 12:09:16 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": [ + "ca49a398-517b-4c02-a84a-503455a2dd99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "bd6a7511-99c5-4eb9-ac80-43b3c8cdbc18" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120916Z:bd6a7511-99c5-4eb9-ac80-43b3c8cdbc18" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Storage/storageAccounts/sqlvatest4536/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q0NTM2L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "de9f0010-4dcf-4e5c-9972-116a21d5fd29" + ], + "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\": \"IyZJ08YfAXnGgHCVprdVkFU3TMyVW8XwOsOqEkflig+cpWRTxWLudFifSgI4TRz6xghC9w9u50hi3am8x1A4UA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"2P75x001dLlI9fgv2VPbPOCxOWBtcKz9K/abihVgrHeh1iMCz81Fux75dkc2iuf9irs7N/YHV7xVtrpaZHNnAg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:09:17 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": [ + "9c7b74be-45e2-4bde-b3bc-e8423436c40b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "6953248b-5ad4-4b11-ba92-6632478ebf6e" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120917Z:6953248b-5ad4-4b11-ba92-6632478ebf6e" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4536.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=n6lcCvY7hw4oySSPjnA9nDZjFRWxuuEz7oNJx98KqhY%3D&se=2018-05-14T13%3A09%3A18Z&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": [ + "25855e0f-af6e-4dc7-a4fd-e72176318113" + ], + "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://sqlvatest4536.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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/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, 14 May 2018 12:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "083addad-a779-46dd-a964-cbcc2aa064c7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "63bcfb6b-f079-4010-b258-68079b1b93ab" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120926Z:63bcfb6b-f079-4010-b258-68079b1b93ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5d5fb89e-78fc-4ad9-becd-ca21892ead7a" + ], + "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, 14 May 2018 12:09:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "07955227-b68e-4be7-95a0-ad222a1658d5" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "f8276fc1-d8a6-4048-a9c6-1b30fec54e6f" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T120954Z:f8276fc1-d8a6-4048-a9c6-1b30fec54e6f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-4039?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQwMzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dfb4081b-c133-491b-92f1-a2dbbd187207" + ], + "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, 14 May 2018 12:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDQwMzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "2047c616-3c8c-43e4-964e-36930aeda325" + ], + "x-ms-correlation-request-id": [ + "2047c616-3c8c-43e4-964e-36930aeda325" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121007Z:2047c616-3c8c-43e4-964e-36930aeda325" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-4039" + ], + "CreateServer": [ + "sqlcrudtest-4506" + ], + "TestCreateUpdateGetDatabaseVulnerabilityAssessments": [ + "sqlvulnerabilityassessmentcrudtest-7404" + ], + "CreateStorageContainer": [ + "sqlvatest4536" + ] + }, + "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/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json new file mode 100644 index 0000000000000..21b773922a708 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json @@ -0,0 +1,1299 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6534?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6534\": \"2018-05-14 12:10:51Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "34831a43-1841-4b27-b47c-eae1a8ce853e" + ], + "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-6534\",\r\n \"name\": \"sqlcrudtest-6534\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6534\": \"2018-05-14 12:10: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, 14 May 2018 12:10:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "7d65c1df-387e-41bf-9d7b-1a8873d67ca9" + ], + "x-ms-correlation-request-id": [ + "7d65c1df-387e-41bf-9d7b-1a8873d67ca9" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121054Z:7d65c1df-387e-41bf-9d7b-1a8873d67ca9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "9882e781-32d8-47b4-a57d-8e5590f44549" + ], + "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-14T12:11:00.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:11:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverOperationResults/ae2f821f-d142-444a-a7a6-3d31f70f63e4?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-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "ae2f821f-d142-444a-a7a6-3d31f70f63e4" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "8accde8c-909c-404d-a2a6-877264ce80f0" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121100Z:8accde8c-909c-404d-a2a6-877264ce80f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9hZTJmODIxZi1kMTQyLTQ0NGEtYTdhNi0zZDMxZjcwZjYzZTQ/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\": \"ae2f821f-d142-444a-a7a6-3d31f70f63e4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:00.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:11:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "da945b9d-407f-46ef-b01d-e955ab6c31b8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "fb414ab7-a7ac-4e48-a5fe-36f4ed8c09eb" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121111Z:fb414ab7-a7ac-4e48-a5fe-36f4ed8c09eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9hZTJmODIxZi1kMTQyLTQ0NGEtYTdhNi0zZDMxZjcwZjYzZTQ/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\": \"ae2f821f-d142-444a-a7a6-3d31f70f63e4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:00.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:11:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "436d8d52-699d-4dee-8008-182dbe418f4b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "9c4edd58-3de4-4d90-9b23-e38300b452fb" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121132Z:9c4edd58-3de4-4d90-9b23-e38300b452fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9hZTJmODIxZi1kMTQyLTQ0NGEtYTdhNi0zZDMxZjcwZjYzZTQ/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\": \"ae2f821f-d142-444a-a7a6-3d31f70f63e4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:11:00.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:11:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c8204afa-fc2a-4b79-bb11-7208a6227454" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "8dc3abd5-d107-4af2-b1aa-66319e9726e7" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121152Z:8dc3abd5-d107-4af2-b1aa-66319e9726e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-9832.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832\",\r\n \"name\": \"sqlcrudtest-9832\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:11:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "038a7588-79a4-4cc5-91fa-4cd8c5627dc4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "2b6eaf0f-13df-4559-8e70-3ffed0e5a81c" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121153Z:2b6eaf0f-13df-4559-8e70-3ffed0e5a81c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "d29542f9-abd1-4323-9a6f-ca881acc86cf" + ], + "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-14T12:11:56.46Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:11:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/70a45688-e4ff-4ec0-8e2b-682cd260a20c?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-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "251cc8a6-6297-46d9-9421-85cc0a57b038" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "aa8fd4af-2cfb-4f58-972d-7f362511f92d" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121156Z:aa8fd4af-2cfb-4f58-972d-7f362511f92d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzcwYTQ1Njg4LWU0ZmYtNGVjMC04ZTJiLTY4MmNkMjYwYTIwYz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"70a45688-e4ff-4ec0-8e2b-682cd260a20c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:56.46Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:12:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7c4bce99-5013-4ac6-9fe5-038aad1b0d3b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "d0a8702e-8448-43f4-a885-c477e8babd19" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121212Z:d0a8702e-8448-43f4-a885-c477e8babd19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzcwYTQ1Njg4LWU0ZmYtNGVjMC04ZTJiLTY4MmNkMjYwYTIwYz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"70a45688-e4ff-4ec0-8e2b-682cd260a20c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:56.46Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:12:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0098e06f-d9a9-4af7-8997-a1a5aa40721e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "40e2dc09-0ea3-49db-8187-8fae8a16a7ab" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121227Z:40e2dc09-0ea3-49db-8187-8fae8a16a7ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzcwYTQ1Njg4LWU0ZmYtNGVjMC04ZTJiLTY4MmNkMjYwYTIwYz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"70a45688-e4ff-4ec0-8e2b-682cd260a20c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:11:56.46Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:12:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c6e5d341-c028-42f8-9930-7157986b373e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "ab74c892-5018-413a-9603-644ac674e171" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121243Z:ab74c892-5018-413a-9603-644ac674e171" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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\": \"8fd20c04-7983-47ab-90bb-e761ae9d277c\",\r\n \"creationDate\": \"2018-05-14T12:11:56.693Z\",\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-14T12:42:33.397Z\",\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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-9684\",\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, 14 May 2018 12:12:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "52792147-68df-4118-a903-270c789f96ba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "e5f2133d-1f19-4d2d-94f9-7328bb334580" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121244Z:e5f2133d-1f19-4d2d-94f9-7328bb334580" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Storage/storageAccounts/sqlvatest8983?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4OTgzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": [ + "f49ff91b-9e1b-45fa-afe5-e43b47002c13" + ], + "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, 14 May 2018 12:12:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/b541dc4e-3f69-4e5a-a7d9-1f41801f1a0c?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": [ + "b541dc4e-3f69-4e5a-a7d9-1f41801f1a0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "d7cbff40-e4fe-4408-9b31-b613aaacbe93" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121251Z:d7cbff40-e4fe-4408-9b31-b613aaacbe93" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/b541dc4e-3f69-4e5a-a7d9-1f41801f1a0c?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvYjU0MWRjNGUtM2Y2OS00ZTVhLWE3ZDktMWY0MTgwMWYxYTBjP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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-6534/providers/Microsoft.Storage/storageAccounts/sqlvatest8983\",\r\n \"name\": \"sqlvatest8983\",\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-14T12:12:50.8561287Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-14T12:12:50.8561287Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-14T12:12:50.7936597Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest8983.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest8983.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, 14 May 2018 12:13:08 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": [ + "2411c92f-60d4-4266-9a64-852a70c4e4c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "07d0a761-f2c2-46b7-8adc-3e5f36971304" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121308Z:07d0a761-f2c2-46b7-8adc-3e5f36971304" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Storage/storageAccounts/sqlvatest8983/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4OTgzL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c45360f2-362a-46a2-9f0c-a977cd715233" + ], + "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\": \"s59ydWrNIatvP1ifBP8bmrQdr4ilDtV7oMw99LO+NbDobkkGYuqWnS8ei6pZdnO4hW8PNrFRjxpChzHQi+MRmA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"3mzV+XNOoWqGUFd+hSujjoE0yGAIHU+SGkTkDgPrMzrkRuc1E59i8A92zLzW+7KR+5P7c8abAD3QEr1Z4s9WMQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 14 May 2018 12:13:08 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": [ + "110a393f-2a4d-4cfd-a96d-efaa45fb7ea7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "44c30f16-0078-4d61-94a6-3f7ecf56f0e5" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121309Z:44c30f16-0078-4d61-94a6-3f7ecf56f0e5" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest8983.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=aPrhQDhTYTj0OQ0rOmB%2BtpTzkx5kHAs0VYgdsUOawY4%3D&se=2018-05-14T13%3A13%3A10Z&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": [ + "8346802f-c8fa-4fa8-831c-954b8e835806" + ], + "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://sqlvatest8983.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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/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, 14 May 2018 12:13:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9657b9b4-412e-435f-8066-12d05aa3d7f5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "286534c8-c469-458b-86d5-fd9ddbd918cd" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121319Z:286534c8-c469-458b-86d5-fd9ddbd918cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "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": [ + "135c05f7-b9f2-41ed-972c-a63b823fb694" + ], + "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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/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, 14 May 2018 12:13:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4750b2a2-7311-457c-aa02-f882ff74b7db" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "f3ba8e09-fd23-4c24-b2e5-d7eea8531745" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121322Z:f3ba8e09-fd23-4c24-b2e5-d7eea8531745" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5b366720-be0a-4c57-b071-0c2847bbc5ab" + ], + "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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/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, 14 May 2018 12:13:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "658eedb7-a0f2-4fd3-9b64-fbd84be7874a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "11ec6255-7b09-46d9-996b-48a9d175c3c3" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121323Z:11ec6255-7b09-46d9-996b-48a9d175c3c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "82bf83e9-a186-4a5d-9c39-80766481df8b" + ], + "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, 14 May 2018 12:13:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ce8c8342-f17a-444f-b799-0b1b5e768aca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "d16c0026-96e1-4a06-9059-c0204a0f2896" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121325Z:d16c0026-96e1-4a06-9059-c0204a0f2896" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25fdc7dd-8a56-4d1f-a1fc-e4114f001930" + ], + "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, 14 May 2018 12:13:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5ba4f1eb-011a-487c-a61e-79c5c54a0f80" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "66f270db-abd0-4315-9efd-720665626087" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121324Z:66f270db-abd0-4315-9efd-720665626087" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6534?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3a39a899-b90d-4e52-8ee3-e1bd1c30ca4e" + ], + "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, 14 May 2018 12:13:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY1MzQtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "ac9341b0-0420-4810-8660-e63f18413677" + ], + "x-ms-correlation-request-id": [ + "ac9341b0-0420-4810-8660-e63f18413677" + ], + "x-ms-routing-request-id": [ + "UKSOUTH:20180514T121327Z:ac9341b0-0420-4810-8660-e63f18413677" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-6534" + ], + "CreateServer": [ + "sqlcrudtest-9832" + ], + "TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines": [ + "sqlvulnerabilityassessmentbaselinetest-9684" + ], + "CreateStorageContainer": [ + "sqlvatest8983" + ] + }, + "Variables": { + "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file From bff238fef8e2c21293062b6905e9a6eb62677a2c Mon Sep 17 00:00:00 2001 From: yaakoviyun Date: Wed, 16 May 2018 19:36:58 +0300 Subject: [PATCH 07/26] Adding tests record --- ...abaseVulnerabilityAssessmentBaselines.json | 336 ++-- ...tDatabaseVulnerabilityAssessmentScans.json | 1610 +++++++++++++++++ ...tDatabaseVulnerabilityAssessmentScans.json | 1293 +++++++++++++ 3 files changed, 3071 insertions(+), 168 deletions(-) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json 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 index 21b773922a708..04856503aca86 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6534?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6063?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwNjM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6534\": \"2018-05-14 12:10:51Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6063\": \"2018-05-16 16:02:52Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "34831a43-1841-4b27-b47c-eae1a8ce853e" + "f77a6426-ea63-4668-a5d3-258f62ae4956" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534\",\r\n \"name\": \"sqlcrudtest-6534\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6534\": \"2018-05-14 12:10:51Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063\",\r\n \"name\": \"sqlcrudtest-6063\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6063\": \"2018-05-16 16:02:52Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:10:54 GMT" + "Wed, 16 May 2018 16:02:55 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "7d65c1df-387e-41bf-9d7b-1a8873d67ca9" + "ba5146cf-e87b-4106-a8b3-774876c13a58" ], "x-ms-correlation-request-id": [ - "7d65c1df-387e-41bf-9d7b-1a8873d67ca9" + "ba5146cf-e87b-4106-a8b3-774876c13a58" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121054Z:7d65c1df-387e-41bf-9d7b-1a8873d67ca9" + "WESTEUROPE:20180516T160256Z:ba5146cf-e87b-4106-a8b3-774876c13a58" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "9882e781-32d8-47b4-a57d-8e5590f44549" + "8a8f01b9-d58a-4434-b50b-aa2431513eb4" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-14T12:11:00.597Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:11:00 GMT" + "Wed, 16 May 2018 16:03:06 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverOperationResults/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverOperationResults/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "ae2f821f-d142-444a-a7a6-3d31f70f63e4" + "380da8e0-783e-4b23-b164-a68efa73d2c6" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-correlation-request-id": [ - "8accde8c-909c-404d-a2a6-877264ce80f0" + "e94f39de-123c-4aea-b7f1-4c14f632accb" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121100Z:8accde8c-909c-404d-a2a6-877264ce80f0" + "WESTEUROPE:20180516T160307Z:e94f39de-123c-4aea-b7f1-4c14f632accb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9hZTJmODIxZi1kMTQyLTQ0NGEtYTdhNi0zZDMxZjcwZjYzZTQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zODBkYThlMC03ODNlLTRiMjMtYjE2NC1hNjhlZmE3M2QyYzY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ae2f821f-d142-444a-a7a6-3d31f70f63e4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:00.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"380da8e0-783e-4b23-b164-a68efa73d2c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:11:11 GMT" + "Wed, 16 May 2018 16:03:18 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "da945b9d-407f-46ef-b01d-e955ab6c31b8" + "3290d9e7-47e0-4c2b-9b90-aae7e79f5479" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "fb414ab7-a7ac-4e48-a5fe-36f4ed8c09eb" + "a1bcff86-c9c2-4346-9aa7-d052422b45d4" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121111Z:fb414ab7-a7ac-4e48-a5fe-36f4ed8c09eb" + "WESTEUROPE:20180516T160318Z:a1bcff86-c9c2-4346-9aa7-d052422b45d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9hZTJmODIxZi1kMTQyLTQ0NGEtYTdhNi0zZDMxZjcwZjYzZTQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zODBkYThlMC03ODNlLTRiMjMtYjE2NC1hNjhlZmE3M2QyYzY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ae2f821f-d142-444a-a7a6-3d31f70f63e4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:00.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"380da8e0-783e-4b23-b164-a68efa73d2c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:11:32 GMT" + "Wed, 16 May 2018 16:03:38 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "436d8d52-699d-4dee-8008-182dbe418f4b" + "7238cf5d-3d79-4bf2-8f0c-72ad34105894" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "9c4edd58-3de4-4d90-9b23-e38300b452fb" + "c328519c-22c4-44e7-bcc0-f05356a3b9fc" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121132Z:9c4edd58-3de4-4d90-9b23-e38300b452fb" + "WESTEUROPE:20180516T160338Z:c328519c-22c4-44e7-bcc0-f05356a3b9fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ae2f821f-d142-444a-a7a6-3d31f70f63e4?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9hZTJmODIxZi1kMTQyLTQ0NGEtYTdhNi0zZDMxZjcwZjYzZTQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zODBkYThlMC03ODNlLTRiMjMtYjE2NC1hNjhlZmE3M2QyYzY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ae2f821f-d142-444a-a7a6-3d31f70f63e4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:11:00.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"380da8e0-783e-4b23-b164-a68efa73d2c6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:11:52 GMT" + "Wed, 16 May 2018 16:03:58 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c8204afa-fc2a-4b79-bb11-7208a6227454" + "1b990be3-fefc-4ffd-9922-f6c7bdb31f5e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "8dc3abd5-d107-4af2-b1aa-66319e9726e7" + "fce09e36-b53c-468f-b585-35ee92f6d94b" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121152Z:8dc3abd5-d107-4af2-b1aa-66319e9726e7" + "WESTEUROPE:20180516T160358Z:fce09e36-b53c-468f-b585-35ee92f6d94b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +334,7 @@ "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-9832.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832\",\r\n \"name\": \"sqlcrudtest-9832\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-3647.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647\",\r\n \"name\": \"sqlcrudtest-3647\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:11:52 GMT" + "Wed, 16 May 2018 16:03:59 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "038a7588-79a4-4cc5-91fa-4cd8c5627dc4" + "6593c4dd-7cb5-4851-b127-c95609a6928c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "2b6eaf0f-13df-4559-8e70-3ffed0e5a81c" + "a3a3eb7f-4b26-40c4-9466-479f6cdbc56c" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121153Z:2b6eaf0f-13df-4559-8e70-3ffed0e5a81c" + "WESTEUROPE:20180516T160359Z:a3a3eb7f-4b26-40c4-9466-479f6cdbc56c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,7 +394,7 @@ "29" ], "x-ms-client-request-id": [ - "d29542f9-abd1-4323-9a6f-ca881acc86cf" + "2c790341-a265-4667-8038-8e1bcc55b6fc" ], "accept-language": [ "en-US" @@ -404,10 +404,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-14T12:11:56.46Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:11:55 GMT" + "Wed, 16 May 2018 16:04:01 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "251cc8a6-6297-46d9-9421-85cc0a57b038" + "db1ecbc6-91bf-40c9-b853-165326c092e8" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1198" ], "x-ms-correlation-request-id": [ - "aa8fd4af-2cfb-4f58-972d-7f362511f92d" + "f88eb3e7-991a-4e98-8026-7240ea11cce1" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121156Z:aa8fd4af-2cfb-4f58-972d-7f362511f92d" + "WESTEUROPE:20180516T160402Z:f88eb3e7-991a-4e98-8026-7240ea11cce1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,8 +458,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzcwYTQ1Njg4LWU0ZmYtNGVjMC04ZTJiLTY4MmNkMjYwYTIwYz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUwNDMyZDZmLWVmZmQtNDZlMS1iMzgxLTk2NTYzYjAzMTBiNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -468,7 +468,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"70a45688-e4ff-4ec0-8e2b-682cd260a20c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:56.46Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"50432d6f-effd-46e1-b381-96563b0310b6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:12:11 GMT" + "Wed, 16 May 2018 16:04:17 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7c4bce99-5013-4ac6-9fe5-038aad1b0d3b" + "f279129c-9ac7-45f9-953a-a6e8a06b2f0a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "d0a8702e-8448-43f4-a885-c477e8babd19" + "1bef1d7d-4dc4-4719-96a2-cc5485976341" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121212Z:d0a8702e-8448-43f4-a885-c477e8babd19" + "WESTEUROPE:20180516T160417Z:1bef1d7d-4dc4-4719-96a2-cc5485976341" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,8 +519,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzcwYTQ1Njg4LWU0ZmYtNGVjMC04ZTJiLTY4MmNkMjYwYTIwYz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUwNDMyZDZmLWVmZmQtNDZlMS1iMzgxLTk2NTYzYjAzMTBiNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -529,7 +529,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"70a45688-e4ff-4ec0-8e2b-682cd260a20c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:11:56.46Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"50432d6f-effd-46e1-b381-96563b0310b6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:12:27 GMT" + "Wed, 16 May 2018 16:04:32 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0098e06f-d9a9-4af7-8997-a1a5aa40721e" + "780a3c99-7776-414b-81c6-b83105132e4e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "40e2dc09-0ea3-49db-8187-8fae8a16a7ab" + "f926386e-3cdf-4021-a74a-531322e81463" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121227Z:40e2dc09-0ea3-49db-8187-8fae8a16a7ab" + "WESTEUROPE:20180516T160432Z:f926386e-3cdf-4021-a74a-531322e81463" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +580,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/70a45688-e4ff-4ec0-8e2b-682cd260a20c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzcwYTQ1Njg4LWU0ZmYtNGVjMC04ZTJiLTY4MmNkMjYwYTIwYz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUwNDMyZDZmLWVmZmQtNDZlMS1iMzgxLTk2NTYzYjAzMTBiNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -590,7 +590,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"70a45688-e4ff-4ec0-8e2b-682cd260a20c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:11:56.46Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"50432d6f-effd-46e1-b381-96563b0310b6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:12:42 GMT" + "Wed, 16 May 2018 16:04:47 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c6e5d341-c028-42f8-9930-7157986b373e" + "be116612-62a1-4a19-84e1-4f73c004cd85" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "ab74c892-5018-413a-9603-644ac674e171" + "b84d1b6d-d4dc-4bf5-a0c0-b72b8a8ebbc0" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121243Z:ab74c892-5018-413a-9603-644ac674e171" + "WESTEUROPE:20180516T160448Z:b84d1b6d-d4dc-4bf5-a0c0-b72b8a8ebbc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +641,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -651,7 +651,7 @@ "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\": \"8fd20c04-7983-47ab-90bb-e761ae9d277c\",\r\n \"creationDate\": \"2018-05-14T12:11:56.693Z\",\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-14T12:42:33.397Z\",\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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-9684\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"c7d2d771-f306-4180-98d0-5815737442bf\",\r\n \"creationDate\": \"2018-05-16T16:04:02.363Z\",\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-16T16:34:34.763Z\",\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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-4204\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:12:43 GMT" + "Wed, 16 May 2018 16:04:48 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "52792147-68df-4118-a903-270c789f96ba" + "6b3235a1-116f-4c31-885a-073409338bb8" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "e5f2133d-1f19-4d2d-94f9-7328bb334580" + "f7cdfb8b-b765-48d9-9e3f-660d9902230a" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121244Z:e5f2133d-1f19-4d2d-94f9-7328bb334580" + "WESTEUROPE:20180516T160449Z:f7cdfb8b-b765-48d9-9e3f-660d9902230a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,8 +699,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Storage/storageAccounts/sqlvatest8983?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4OTgzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Storage/storageAccounts/sqlvatest8714?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4NzE0P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "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": { @@ -711,7 +711,7 @@ "152" ], "x-ms-client-request-id": [ - "f49ff91b-9e1b-45fa-afe5-e43b47002c13" + "58c27bdf-fefd-4c8c-bd2b-c63b7c3f0ebe" ], "accept-language": [ "en-US" @@ -736,13 +736,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:12:50 GMT" + "Wed, 16 May 2018 16:05:02 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/b541dc4e-3f69-4e5a-a7d9-1f41801f1a0c?monitor=true&api-version=2017-06-01" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/7327f825-7ad9-444b-b3bd-0e624ec52b93?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -751,19 +751,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b541dc4e-3f69-4e5a-a7d9-1f41801f1a0c" + "7327f825-7ad9-444b-b3bd-0e624ec52b93" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1199" ], "x-ms-correlation-request-id": [ - "d7cbff40-e4fe-4408-9b31-b613aaacbe93" + "bdf1ff40-5689-42ce-8a32-b5aabe0fb51e" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121251Z:d7cbff40-e4fe-4408-9b31-b613aaacbe93" + "WESTEUROPE:20180516T160502Z:bdf1ff40-5689-42ce-8a32-b5aabe0fb51e" ], "X-Content-Type-Options": [ "nosniff" @@ -772,8 +772,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/b541dc4e-3f69-4e5a-a7d9-1f41801f1a0c?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvYjU0MWRjNGUtM2Y2OS00ZTVhLWE3ZDktMWY0MTgwMWYxYTBjP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/7327f825-7ad9-444b-b3bd-0e624ec52b93?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNzMyN2Y4MjUtN2FkOS00NDRiLWIzYmQtMGU2MjRlYzUyYjkzP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -782,7 +782,7 @@ "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-6534/providers/Microsoft.Storage/storageAccounts/sqlvatest8983\",\r\n \"name\": \"sqlvatest8983\",\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-14T12:12:50.8561287Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-14T12:12:50.8561287Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-14T12:12:50.7936597Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest8983.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest8983.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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-6063/providers/Microsoft.Storage/storageAccounts/sqlvatest8714\",\r\n \"name\": \"sqlvatest8714\",\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-16T16:05:01.6086246Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-16T16:05:01.6086246Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-16T16:05:01.5304666Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest8714.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest8714.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -794,7 +794,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:08 GMT" + "Wed, 16 May 2018 16:05:19 GMT" ], "Pragma": [ "no-cache" @@ -809,19 +809,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "2411c92f-60d4-4266-9a64-852a70c4e4c0" + "4254ca9d-9b0f-486c-a8e8-f75b4752dc56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14999" ], "x-ms-correlation-request-id": [ - "07d0a761-f2c2-46b7-8adc-3e5f36971304" + "a935d29e-7b80-459f-9d39-2f8592149d30" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121308Z:07d0a761-f2c2-46b7-8adc-3e5f36971304" + "WESTEUROPE:20180516T160519Z:a935d29e-7b80-459f-9d39-2f8592149d30" ], "X-Content-Type-Options": [ "nosniff" @@ -830,13 +830,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Storage/storageAccounts/sqlvatest8983/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4OTgzL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Storage/storageAccounts/sqlvatest8714/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4NzE0L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c45360f2-362a-46a2-9f0c-a977cd715233" + "1a15a9f9-3626-4871-8190-bdaf9c8cc66e" ], "accept-language": [ "en-US" @@ -846,7 +846,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"s59ydWrNIatvP1ifBP8bmrQdr4ilDtV7oMw99LO+NbDobkkGYuqWnS8ei6pZdnO4hW8PNrFRjxpChzHQi+MRmA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"3mzV+XNOoWqGUFd+hSujjoE0yGAIHU+SGkTkDgPrMzrkRuc1E59i8A92zLzW+7KR+5P7c8abAD3QEr1Z4s9WMQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"oYgn95Xs82QMSZXcpp6Ujsj9cu1bApgB+45JfxTIjZas7nXu7sidPUqd81o2dOrhblUuTWShQHayyfWe9WvpGQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"JFfCZf2z8jvu4pOcCvlJ4Xxh7a5FcbF2rEJwubZgaQ5+buLZI8ktxRzc30mvtJ5pV3Xqtqgx6cqstj59EICf2A==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:08 GMT" + "Wed, 16 May 2018 16:05:19 GMT" ], "Pragma": [ "no-cache" @@ -873,19 +873,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "110a393f-2a4d-4cfd-a96d-efaa45fb7ea7" + "e3ef75a5-2309-4812-ad18-02c135d31fe3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1198" ], "x-ms-correlation-request-id": [ - "44c30f16-0078-4d61-94a6-3f7ecf56f0e5" + "a041927f-9d18-464e-8fb8-c1e6e14b6c0d" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121309Z:44c30f16-0078-4d61-94a6-3f7ecf56f0e5" + "WESTEUROPE:20180516T160520Z:a041927f-9d18-464e-8fb8-c1e6e14b6c0d" ], "X-Content-Type-Options": [ "nosniff" @@ -894,19 +894,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest8983.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=aPrhQDhTYTj0OQ0rOmB%2BtpTzkx5kHAs0VYgdsUOawY4%3D&se=2018-05-14T13%3A13%3A10Z&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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest8714.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=SwvoCj2lEbE2psPw7uVAXlfkAUvbIZi5L6cTLfOhfAw%3D&se=2018-05-16T17%3A05%3A21Z&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" + "457" ], "x-ms-client-request-id": [ - "8346802f-c8fa-4fa8-831c-954b8e835806" + "3f963515-8bd9-4262-8df5-24260364dd90" ], "accept-language": [ "en-US" @@ -916,7 +916,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest8983.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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest8714.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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -928,7 +928,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:18 GMT" + "Wed, 16 May 2018 16:05:28 GMT" ], "Pragma": [ "no-cache" @@ -943,16 +943,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9657b9b4-412e-435f-8066-12d05aa3d7f5" + "08b863f4-f465-4fce-bf5a-9995897b2bb8" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1197" ], "x-ms-correlation-request-id": [ - "286534c8-c469-458b-86d5-fd9ddbd918cd" + "44c54f84-aeac-4d6c-b23b-505c90017a61" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121319Z:286534c8-c469-458b-86d5-fd9ddbd918cd" + "WESTEUROPE:20180516T160528Z:44c54f84-aeac-4d6c-b23b-505c90017a61" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -964,8 +964,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "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": { @@ -976,7 +976,7 @@ "242" ], "x-ms-client-request-id": [ - "135c05f7-b9f2-41ed-972c-a63b823fb694" + "842408e4-3236-4065-8cf8-c437787f7562" ], "accept-language": [ "en-US" @@ -986,7 +986,7 @@ "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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}", + "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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/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" @@ -998,7 +998,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:21 GMT" + "Wed, 16 May 2018 16:05:32 GMT" ], "Pragma": [ "no-cache" @@ -1013,16 +1013,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4750b2a2-7311-457c-aa02-f882ff74b7db" + "4fccde16-802b-45c7-aa93-2ca52b79d9c1" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1196" ], "x-ms-correlation-request-id": [ - "f3ba8e09-fd23-4c24-b2e5-d7eea8531745" + "f77443f6-83bf-437d-8ea7-68504dcdda15" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121322Z:f3ba8e09-fd23-4c24-b2e5-d7eea8531745" + "WESTEUROPE:20180516T160532Z:f77443f6-83bf-437d-8ea7-68504dcdda15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1034,13 +1034,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5b366720-be0a-4c57-b071-0c2847bbc5ab" + "53163906-f6fc-4c09-af2c-e0eaf5eb8afc" ], "accept-language": [ "en-US" @@ -1050,7 +1050,7 @@ "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-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}", + "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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/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" @@ -1062,7 +1062,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:22 GMT" + "Wed, 16 May 2018 16:05:33 GMT" ], "Pragma": [ "no-cache" @@ -1077,16 +1077,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "658eedb7-a0f2-4fd3-9b64-fbd84be7874a" + "78c5b5e3-9716-4f7e-8c61-ba5b0eb97ed5" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "11ec6255-7b09-46d9-996b-48a9d175c3c3" + "5948f8e6-7ba9-4170-a235-904b06ea7a2e" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121323Z:11ec6255-7b09-46d9-996b-48a9d175c3c3" + "WESTEUROPE:20180516T160533Z:5948f8e6-7ba9-4170-a235-904b06ea7a2e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1098,13 +1098,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "82bf83e9-a186-4a5d-9c39-80766481df8b" + "f9e41a7c-f189-44be-b23f-19e34cdb2a28" ], "accept-language": [ "en-US" @@ -1129,7 +1129,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:24 GMT" + "Wed, 16 May 2018 16:05:35 GMT" ], "Pragma": [ "no-cache" @@ -1138,16 +1138,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ce8c8342-f17a-444f-b799-0b1b5e768aca" + "72da092e-6fc1-4fcc-b226-f87b6dcf85cc" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "d16c0026-96e1-4a06-9059-c0204a0f2896" + "d41e2ec2-153c-4b49-8ee7-e64e7006a8e9" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121325Z:d16c0026-96e1-4a06-9059-c0204a0f2896" + "WESTEUROPE:20180516T160535Z:d41e2ec2-153c-4b49-8ee7-e64e7006a8e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1159,13 +1159,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6534/providers/Microsoft.Sql/servers/sqlcrudtest-9832/databases/sqlvulnerabilityassessmentbaselinetest-9684/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODMyL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC05Njg0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "25fdc7dd-8a56-4d1f-a1fc-e4114f001930" + "2f39cfd7-e3b0-4ecd-b68a-2c87e886975a" ], "accept-language": [ "en-US" @@ -1187,7 +1187,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:23 GMT" + "Wed, 16 May 2018 16:05:34 GMT" ], "Pragma": [ "no-cache" @@ -1196,16 +1196,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "5ba4f1eb-011a-487c-a61e-79c5c54a0f80" + "9814cecd-3095-4e4d-8d36-02ee53cdcef0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "66f270db-abd0-4315-9efd-720665626087" + "e068bb44-cba6-41ef-b719-c8a1b4bb800b" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121324Z:66f270db-abd0-4315-9efd-720665626087" + "WESTEUROPE:20180516T160534Z:e068bb44-cba6-41ef-b719-c8a1b4bb800b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1217,13 +1217,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6534?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6063?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwNjM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3a39a899-b90d-4e52-8ee3-e1bd1c30ca4e" + "99bcfc16-d184-46d6-9dc6-f546b7f64860" ], "accept-language": [ "en-US" @@ -1245,13 +1245,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:13:27 GMT" + "Wed, 16 May 2018 16:05:40 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY1MzQtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYwNjMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1260,13 +1260,13 @@ "14999" ], "x-ms-request-id": [ - "ac9341b0-0420-4810-8660-e63f18413677" + "0b0570b0-ee8f-4212-874c-49f98293eef7" ], "x-ms-correlation-request-id": [ - "ac9341b0-0420-4810-8660-e63f18413677" + "0b0570b0-ee8f-4212-874c-49f98293eef7" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121327Z:ac9341b0-0420-4810-8660-e63f18413677" + "WESTEUROPE:20180516T160540Z:0b0570b0-ee8f-4212-874c-49f98293eef7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1280,16 +1280,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-6534" + "sqlcrudtest-6063" ], "CreateServer": [ - "sqlcrudtest-9832" + "sqlcrudtest-3647" ], "TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines": [ - "sqlvulnerabilityassessmentbaselinetest-9684" + "sqlvulnerabilityassessmentbaselinetest-4204" ], "CreateStorageContainer": [ - "sqlvatest8983" + "sqlvatest8714" ] }, "Variables": { 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 0000000000000..23014076220f0 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json @@ -0,0 +1,1610 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5541?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1NDE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5541\": \"2018-05-16 15:52:53Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "21e43c15-c247-4525-8a20-b1dddec245e7" + ], + "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-5541\",\r\n \"name\": \"sqlcrudtest-5541\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5541\": \"2018-05-16 15:52:53Z\"\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": [ + "Wed, 16 May 2018 15:52:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c4700efd-1cd7-4ffe-8d5b-1090c84d31f3" + ], + "x-ms-correlation-request-id": [ + "c4700efd-1cd7-4ffe-8d5b-1090c84d31f3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155258Z:c4700efd-1cd7-4ffe-8d5b-1090c84d31f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "2e541582-cbcf-4dbb-b814-d854a511e4cb" + ], + "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-16T15:53:09.64Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:53:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverOperationResults/20e26534-77b2-4cf1-b3f7-5902c5146633?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-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "20e26534-77b2-4cf1-b3f7-5902c5146633" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "bf8b8cc9-73dc-4983-9826-b7f75da617b3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155309Z:bf8b8cc9-73dc-4983-9826-b7f75da617b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMGUyNjUzNC03N2IyLTRjZjEtYjNmNy01OTAyYzUxNDY2MzM/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\": \"20e26534-77b2-4cf1-b3f7-5902c5146633\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:53:09.64Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:53:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9f394c3f-d9f9-446d-b676-538687e5c721" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14945" + ], + "x-ms-correlation-request-id": [ + "a2ff2496-f0f9-4754-8dba-0482939b977c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155320Z:a2ff2496-f0f9-4754-8dba-0482939b977c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMGUyNjUzNC03N2IyLTRjZjEtYjNmNy01OTAyYzUxNDY2MzM/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\": \"20e26534-77b2-4cf1-b3f7-5902c5146633\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:53:09.64Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:53:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4a109955-3e91-427d-bcce-a410fec3d7b6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-correlation-request-id": [ + "1c44e84f-aeed-4496-acad-94b42618dc3b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155340Z:1c44e84f-aeed-4496-acad-94b42618dc3b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMGUyNjUzNC03N2IyLTRjZjEtYjNmNy01OTAyYzUxNDY2MzM/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\": \"20e26534-77b2-4cf1-b3f7-5902c5146633\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:53:09.64Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:54:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4c85182b-fb41-4c2a-b030-f895b0b22397" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-correlation-request-id": [ + "cbe2490a-1338-41f2-a33d-048ba3036a00" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155401Z:cbe2490a-1338-41f2-a33d-048ba3036a00" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-3714.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714\",\r\n \"name\": \"sqlcrudtest-3714\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:54:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "309f0745-2e85-48fc-b46d-ebf838130455" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-correlation-request-id": [ + "8dffed0b-99eb-41d2-a414-ec85d6f8d506" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155401Z:8dffed0b-99eb-41d2-a414-ec85d6f8d506" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTg/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": [ + "c4b9ac8b-e99f-41fc-a610-92ee5156ae87" + ], + "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-16T15:54:04.677Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:54:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/28d57e21-1438-4c75-9228-23392544a6f7?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-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "276cc8c7-0232-42c1-9236-47a60f862607" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "6f2b1817-c442-414e-acb9-d741c5d374de" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155404Z:6f2b1817-c442-414e-acb9-d741c5d374de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI4ZDU3ZTIxLTE0MzgtNGM3NS05MjI4LTIzMzkyNTQ0YTZmNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"28d57e21-1438-4c75-9228-23392544a6f7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:54:04.677Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:54:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9543ad92-e3a0-424b-936d-f6911f08c355" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "addc2d7d-44d9-4ba0-8fd9-6b7dd1da92bf" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155420Z:addc2d7d-44d9-4ba0-8fd9-6b7dd1da92bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI4ZDU3ZTIxLTE0MzgtNGM3NS05MjI4LTIzMzkyNTQ0YTZmNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"28d57e21-1438-4c75-9228-23392544a6f7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:54:04.677Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:54:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d2e681fe-b92f-4611-95c0-eab699e25b57" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14940" + ], + "x-ms-correlation-request-id": [ + "97826e83-deff-45f0-9658-536c2eb9a18e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155437Z:97826e83-deff-45f0-9658-536c2eb9a18e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI4ZDU3ZTIxLTE0MzgtNGM3NS05MjI4LTIzMzkyNTQ0YTZmNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"28d57e21-1438-4c75-9228-23392544a6f7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:54:04.677Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:54:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1b15c701-5787-4abd-9a4a-e261d89b2e89" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-correlation-request-id": [ + "67caa980-6611-4921-8b7b-782e65ea4812" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155453Z:67caa980-6611-4921-8b7b-782e65ea4812" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTg/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\": \"9db12e79-64e1-480c-959f-a55eeb0db783\",\r\n \"creationDate\": \"2018-05-16T15:54:04.94Z\",\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-16T16:24:40.483Z\",\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-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318\",\r\n \"name\": \"sqlvulnerabilityassessmentscantest-7318\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:54:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "16110bff-8d3b-42ca-96d3-9d63ca5bfe96" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-correlation-request-id": [ + "06c74495-19dd-411f-996e-96dbfa04e54f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155453Z:06c74495-19dd-411f-996e-96dbfa04e54f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Storage/storageAccounts/sqlvatest5599?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q1NTk5P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": [ + "3a1417e8-2093-4d62-8de7-8846e53eb795" + ], + "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": [ + "Wed, 16 May 2018 15:55:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/c9d62a72-8133-4337-9241-f6a38441b82b?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": [ + "c9d62a72-8133-4337-9241-f6a38441b82b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "6c3b6db7-5b8e-451c-8758-21ab6ff868e9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155506Z:6c3b6db7-5b8e-451c-8758-21ab6ff868e9" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/c9d62a72-8133-4337-9241-f6a38441b82b?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvYzlkNjJhNzItODEzMy00MzM3LTkyNDEtZjZhMzg0NDFiODJiP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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-5541/providers/Microsoft.Storage/storageAccounts/sqlvatest5599\",\r\n \"name\": \"sqlvatest5599\",\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-16T15:55:05.608461Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-16T15:55:05.608461Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-16T15:55:05.5297504Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest5599.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest5599.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": [ + "Wed, 16 May 2018 15:55: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": [ + "bc0e6d44-960a-468b-b7f8-7c5b8b3a0ca1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "f5e1fe25-ee72-451e-9eee-1d42e43eab39" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155523Z:f5e1fe25-ee72-451e-9eee-1d42e43eab39" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Storage/storageAccounts/sqlvatest5599/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q1NTk5L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cd6948b6-6768-42be-8fa1-315838d89dbd" + ], + "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\": \"wU2ZFQU91djysKtbC0ZU9w+eJ7qgYTjSqRPDOiI0+Lz7YR32bCSs0m0k6iw9qXX9HDgj6lByEhQx7jctjOIthw==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"M1Mcl8O3cncfIoCYBHFmhWbDGJQwL6CGTBTZPhHUoKmQqfuG7XDKT3BG6qKP6r76blaSrPh2Qsq0sLIFIRMOLw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:55: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": [ + "714d6d94-ed94-4f25-97a8-1f00a9c972d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "91786600-90df-47e1-9e62-f195776f37ef" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155524Z:91786600-90df-47e1-9e62-f195776f37ef" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=Cwyt71lyf5yveahErySGHMKa1yoGV3VOUt3x%2BE2dpwU%3D&se=2018-05-16T16%3A55%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": [ + "459" + ], + "x-ms-client-request-id": [ + "b4e837eb-7b4d-4f9a-8651-273887a7c9a0" + ], + "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://sqlvatest5599.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-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/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": [ + "Wed, 16 May 2018 15:55:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "04e3c24b-ccc7-4e6d-81ec-6ffcd1beb59d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "59233fed-b43b-4dbf-898a-b400d738005e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155534Z:59233fed-b43b-4dbf-898a-b400d738005e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest1_636620829337261191/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxXzYzNjYyMDgyOTMzNzI2MTE5MS9pbml0aWF0ZVNjYW4/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "43159a7f-2d96-4e90-a21f-1d07bea3e19a" + ], + "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-16T15:55:34.853Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "97" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:55:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?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-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "601cf8ca-d7fd-4cc6-8947-e636d6a3447f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "cf663986-8338-49e2-a8b0-5d99ac192fae" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155535Z:cf663986-8338-49e2-a8b0-5d99ac192fae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9kMDg3NmQ4Yi02YTc1LTRlYWItYTQzZC1mYmVlNWMxOGFkOGU/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\": \"d0876d8b-6a75-4eab-a43d-fbee5c18ad8e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:55:34.853Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:55:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c915fc2-4f31-44e0-b699-010f761854cf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-correlation-request-id": [ + "e94c780b-9749-4ba2-aacd-579b77fc0007" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155550Z:e94c780b-9749-4ba2-aacd-579b77fc0007" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9kMDg3NmQ4Yi02YTc1LTRlYWItYTQzZC1mYmVlNWMxOGFkOGU/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\": \"scantest1_636620829337261191\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:34.853Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases//vulnerabilityAssessments/Default/scans/scantest1_636620829337261191\",\r\n \"name\": \"scantest1_636620829337261191\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "635" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:55:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "fcd27ed3-f468-4045-928f-383ad0ff368d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-correlation-request-id": [ + "10c53661-21b0-46c8-959d-3d5984761a28" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155551Z:10c53661-21b0-46c8-959d-3d5984761a28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest2_636620829509887101/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyXzYzNjYyMDgyOTUwOTg4NzEwMS9pbml0aWF0ZVNjYW4/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf722451-94e7-4624-ab10-08dad3e4817e" + ], + "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-16T15:55:52.013Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "97" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:55:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?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-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "3c5fdfe9-4e66-4bc0-b577-884a8806e228" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "f05e2b96-4e4b-47f0-82e1-6ad1d0829d0b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155552Z:f05e2b96-4e4b-47f0-82e1-6ad1d0829d0b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9lOGEwZmMyMS1jMmQ3LTRlYTItYWIwNi03NmUzNjc5OWEyOWU/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\": \"e8a0fc21-c2d7-4ea2-ab06-76e36799a29e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:55:52.013Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:56:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "aa2ba8f7-0c31-47fb-bd62-c3a4c971049e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-correlation-request-id": [ + "f8b62969-9bbe-4b23-8c24-f9613ffa0742" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155608Z:f8b62969-9bbe-4b23-8c24-f9613ffa0742" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9lOGEwZmMyMS1jMmQ3LTRlYTItYWIwNi03NmUzNjc5OWEyOWU/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\": \"scantest2_636620829509887101\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:52.013Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases//vulnerabilityAssessments/Default/scans/scantest2_636620829509887101\",\r\n \"name\": \"scantest2_636620829509887101\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "635" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:56:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c11982b4-388f-4663-961a-d8bf90135f7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "1716e270-2de5-4d02-af69-3f266c54b16d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155608Z:1716e270-2de5-4d02-af69-3f266c54b16d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest1_636620829337261191?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxXzYzNjYyMDgyOTMzNzI2MTE5MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e86048dc-d665-462e-bfed-1f6688dbdfb0" + ], + "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_636620829337261191\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:36.605769Z\",\r\n \"endTime\": \"2018-05-16T15:55:46.7468675Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest1_636620829337261191\",\r\n \"name\": \"scantest1_636620829337261191\",\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": [ + "Wed, 16 May 2018 15:56:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b4a3d460-e916-4e0d-8318-ea17039f2f98" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14940" + ], + "x-ms-correlation-request-id": [ + "3f3ea2ad-e5b7-464b-885d-cd4f7fc7c373" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155608Z:3f3ea2ad-e5b7-464b-885d-cd4f7fc7c373" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b504bf99-d6a7-4687-9e10-8791672e1a48" + ], + "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_636620829337261191\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:36.605769Z\",\r\n \"endTime\": \"2018-05-16T15:55:46.7468675Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest1_636620829337261191\",\r\n \"name\": \"scantest1_636620829337261191\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n },\r\n {\r\n \"properties\": {\r\n \"scanId\": \"scantest2_636620829509887101\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:52.2783475Z\",\r\n \"endTime\": \"2018-05-16T15:55:56.0128654Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest2_636620829509887101\",\r\n \"name\": \"scantest2_636620829509887101\",\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": [ + "Wed, 16 May 2018 15:56:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "497d0c3e-87f0-44a5-8eab-c581d66eaa19" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-correlation-request-id": [ + "3b9c5aab-0541-4695-9b06-571881b50c4f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155609Z:3b9c5aab-0541-4695-9b06-571881b50c4f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest2_636620829509887101?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyXzYzNjYyMDgyOTUwOTg4NzEwMT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "558123dd-5c21-4113-a0ad-407da448b984" + ], + "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_636620829509887101\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:52.2783475Z\",\r\n \"endTime\": \"2018-05-16T15:55:56.0128654Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest2_636620829509887101\",\r\n \"name\": \"scantest2_636620829509887101\",\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": [ + "Wed, 16 May 2018 15:56:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "899f80c6-b0bc-49b7-b87a-e4c4b0d81d96" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-correlation-request-id": [ + "ba91a5ac-8ca5-49cc-b1be-0339bef15814" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155609Z:ba91a5ac-8ca5-49cc-b1be-0339bef15814" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5541?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1NDE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "328c106e-163f-4b1d-9ae7-860a2260b2c2" + ], + "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": [ + "Wed, 16 May 2018 15:56:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU1NDEtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "d91e5781-29f0-4b33-9c85-93270570a55a" + ], + "x-ms-correlation-request-id": [ + "d91e5781-29f0-4b33-9c85-93270570a55a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155613Z:d91e5781-29f0-4b33-9c85-93270570a55a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-5541" + ], + "CreateServer": [ + "sqlcrudtest-3714" + ], + "TestExcetueGetListDatabaseVulnerabilityAssessmentScans": [ + "sqlvulnerabilityassessmentscantest-7318" + ], + "CreateStorageContainer": [ + "sqlvatest5599" + ] + }, + "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/TestExportDatabaseVulnerabilityAssessmentScans.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json new file mode 100644 index 0000000000000..280472821435c --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json @@ -0,0 +1,1293 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6432?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0MzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6432\": \"2018-05-16 15:58:56Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "0e5b4ba2-1800-4a6a-beae-cb09f47ee450" + ], + "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-6432\",\r\n \"name\": \"sqlcrudtest-6432\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6432\": \"2018-05-16 15: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": [ + "Wed, 16 May 2018 15:59:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "9ba8630c-f9e2-4adb-865f-793cd65daa2c" + ], + "x-ms-correlation-request-id": [ + "9ba8630c-f9e2-4adb-865f-793cd65daa2c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155900Z:9ba8630c-f9e2-4adb-865f-793cd65daa2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "3fa8d032-e157-41ba-b3a7-87416f15b826" + ], + "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-16T15:59:11.647Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:59:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverOperationResults/3d740383-97bb-4ad8-8516-96d5cb9c716e?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-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "3d740383-97bb-4ad8-8516-96d5cb9c716e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "ebd92c4b-110f-4edc-b8bc-309caa47cdf4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155912Z:ebd92c4b-110f-4edc-b8bc-309caa47cdf4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zZDc0MDM4My05N2JiLTRhZDgtODUxNi05NmQ1Y2I5YzcxNmU/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\": \"3d740383-97bb-4ad8-8516-96d5cb9c716e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:59:11.647Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:59:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3ba18af1-494a-4832-b52f-1c853c23cd17" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "23b0f23e-7622-4f55-a84f-4c00ae4b5b7e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155922Z:23b0f23e-7622-4f55-a84f-4c00ae4b5b7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zZDc0MDM4My05N2JiLTRhZDgtODUxNi05NmQ1Y2I5YzcxNmU/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\": \"3d740383-97bb-4ad8-8516-96d5cb9c716e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:59:11.647Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 15:59:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7ee9e5a1-41c2-4c75-ad8c-e8b96cb8cdd4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "52b3abe9-7b70-4b74-895f-50c572eecc8f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T155943Z:52b3abe9-7b70-4b74-895f-50c572eecc8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zZDc0MDM4My05N2JiLTRhZDgtODUxNi05NmQ1Y2I5YzcxNmU/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\": \"3d740383-97bb-4ad8-8516-96d5cb9c716e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:59:11.647Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:00:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "51717303-a8cf-4704-9be6-57c8032bbd3c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "d95352a6-ba95-4138-997a-63a3504a1b72" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160003Z:d95352a6-ba95-4138-997a-63a3504a1b72" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-8296.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296\",\r\n \"name\": \"sqlcrudtest-8296\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:00:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c381266-b768-4b76-bcfc-23492362c25d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "6f1524b7-37a1-4706-bb99-aecbf095b6ca" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160003Z:6f1524b7-37a1-4706-bb99-aecbf095b6ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzE/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": [ + "b2a131f5-7fee-439f-bff8-4a5eeb51adba" + ], + "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-16T16:00:06.487Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:00:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/e6833f5b-8a73-4a64-91bf-c3082612e051?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-6432/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e6833f5b-8a73-4a64-91bf-c3082612e051?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "60192944-9877-4b90-9e69-68dfb93af7eb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "16e38b5f-47f1-4f3e-8c88-e071132e562b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160007Z:16e38b5f-47f1-4f3e-8c88-e071132e562b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e6833f5b-8a73-4a64-91bf-c3082612e051?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U2ODMzZjViLThhNzMtNGE2NC05MWJmLWMzMDgyNjEyZTA1MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6833f5b-8a73-4a64-91bf-c3082612e051\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:00:06.487Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:00:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "93482e88-7dc7-4b09-b1f7-46e71d641a8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "0bc14051-33e5-4344-b46a-6afc35ebb613" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160025Z:0bc14051-33e5-4344-b46a-6afc35ebb613" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e6833f5b-8a73-4a64-91bf-c3082612e051?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U2ODMzZjViLThhNzMtNGE2NC05MWJmLWMzMDgyNjEyZTA1MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6833f5b-8a73-4a64-91bf-c3082612e051\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:00:06.487Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:00:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5518accb-84c0-4a33-b355-120557763b6f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "f7993fba-2c96-40ba-883c-49e9f55cc87b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160041Z:f7993fba-2c96-40ba-883c-49e9f55cc87b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzE/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\": \"14532e6e-0ce9-4e2f-a355-113b50164d06\",\r\n \"creationDate\": \"2018-05-16T16:00:07.487Z\",\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-16T16:30:39.713Z\",\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-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331\",\r\n \"name\": \"sqlvulnerabilityassessmentexportscantest-3331\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:00:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b750726d-8631-44f6-9c0e-e0af9b5485c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "cf7cb07f-0228-47a5-8875-2bcab1274b23" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160041Z:cf7cb07f-0228-47a5-8875-2bcab1274b23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Storage/storageAccounts/sqlvatest839?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4Mzk/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": [ + "726aa42d-1822-4038-87f1-c39ddb1d4ec8" + ], + "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": [ + "Wed, 16 May 2018 16:00:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/74fcf578-21cf-4f61-9b10-671a6d183951?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": [ + "74fcf578-21cf-4f61-9b10-671a6d183951" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "59004a39-50ac-443c-b61d-66242719c195" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160051Z:59004a39-50ac-443c-b61d-66242719c195" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/74fcf578-21cf-4f61-9b10-671a6d183951?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNzRmY2Y1NzgtMjFjZi00ZjYxLTliMTAtNjcxYTZkMTgzOTUxP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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-6432/providers/Microsoft.Storage/storageAccounts/sqlvatest839\",\r\n \"name\": \"sqlvatest839\",\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-16T16:00:50.9151473Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-16T16:00:50.9151473Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-16T16:00:50.8526438Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest839.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest839.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": [ + "Wed, 16 May 2018 16:01:10 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": [ + "51a4f02b-7a57-4864-b630-f80fac3928cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "7134bad2-ce0d-49a3-a5a0-a1dfa3520d25" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160110Z:7134bad2-ce0d-49a3-a5a0-a1dfa3520d25" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Storage/storageAccounts/sqlvatest839/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4MzkvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2ff55b3-5bba-4117-9232-0adf25153251" + ], + "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\": \"OTsdAM/XF0Wdh0BB+axyuwDpuodAnL+MDQmwZWTY7lvbSLfdIwPVrn19JPQLvZ+8ey6u97sC8bfZVL9tNJRXrA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"ozodOsi2newMNOdzWnDVRW9GXuXSLsJ2BdHH35u13vXnu1Q9eLmLy5i03wks7UZX3fD1zUBWiNDboaq4rv9DwA==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:01:10 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": [ + "a3ad166e-d8db-47a7-babc-7f8010379f9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "a0b23414-85eb-4ba4-828c-d40e7361d064" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160111Z:a0b23414-85eb-4ba4-828c-d40e7361d064" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest839.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=tcyjrlFBzL9Ap%2BcCI5blJTVFxm1o7ZoY43lzFg2xnMg%3D&se=2018-05-16T17%3A01%3A13Z&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": [ + "458" + ], + "x-ms-client-request-id": [ + "73fb9cb6-36d7-49ae-8dd3-ae6769cd9e56" + ], + "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://sqlvatest839.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-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/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": [ + "Wed, 16 May 2018 16:01:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3c4d3d7c-4789-4ef3-b7e8-6c3a35d502a7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "7631c58e-5833-4fd6-a051-7c0200ecc81e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160120Z:7631c58e-5833-4fd6-a051-7c0200ecc81e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/default/scans/scan1_636620832809793820/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfNjM2NjIwODMyODA5NzkzODIwL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b380333c-fa44-45c5-9fe4-c91872c1aa4d" + ], + "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-16T16:01:21.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "97" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:01:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?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-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "496b3064-51cc-4191-8685-e394b0c48e6d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "522389b6-6271-4fd0-9d59-c889ed40a869" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160121Z:522389b6-6271-4fd0-9d59-c889ed40a869" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9kNGM2ZmZhZS05MDE3LTRhNGItOTE5MC02ZDdlYzUyNzExZWU/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\": \"d4c6ffae-9017-4a4b-9190-6d7ec52711ee\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:01:21.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:01:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4b62d654-1597-446c-8ce2-6fd0c599a7e8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "7739e8db-99e8-4244-92ec-00e9c86f14ea" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160137Z:7739e8db-99e8-4244-92ec-00e9c86f14ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9kNGM2ZmZhZS05MDE3LTRhNGItOTE5MC02ZDdlYzUyNzExZWU/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\": \"d4c6ffae-9017-4a4b-9190-6d7ec52711ee\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:01:21.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:01:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "450ccab5-ac6b-4651-815a-95e3ebd46a3c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "b81f7a40-97fc-4d5d-be48-27637cfea106" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160152Z:b81f7a40-97fc-4d5d-be48-27637cfea106" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9kNGM2ZmZhZS05MDE3LTRhNGItOTE5MC02ZDdlYzUyNzExZWU/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_636620832809793820\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T16:01:21.273Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest839.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases//vulnerabilityAssessments/Default/scans/scan1_636620832809793820\",\r\n \"name\": \"scan1_636620832809793820\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "622" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:01:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "805ef6d6-c5e8-40a9-8129-fee09ffa43ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "1c14751a-c23c-4317-8a3b-eb6217b95823" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160153Z:1c14751a-c23c-4317-8a3b-eb6217b95823" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/default/scans/scan1_636620832809793820/export?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfNjM2NjIwODMyODA5NzkzODIwL2V4cG9ydD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "172b0cea-2a4f-4fd5-a690-a4f5d85ccc36" + ], + "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://sqlvatest839.blob.core.windows.net/vulnerability-assessment/scans/sqlcrudtest-8296/sqlvulnerabilityassessmentexportscantest-3331/scan_scan1_636620832809793820.xlsx\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/Default/scans/scan1_636620832809793820/export\",\r\n \"name\": \"scan1_636620832809793820\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "595" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 16 May 2018 16:01:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8c1d4056-7f41-45d1-b2fd-f1b40f8a68b3" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "b7acdabc-01d5-4cc7-9996-7ef57b03aefb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160156Z:b7acdabc-01d5-4cc7-9996-7ef57b03aefb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6432?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0MzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b8b2474-d352-43f0-9629-03f1730043a8" + ], + "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": [ + "Wed, 16 May 2018 16:02:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY0MzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "8dc5db1c-4856-45ab-af7f-011ee7f25a15" + ], + "x-ms-correlation-request-id": [ + "8dc5db1c-4856-45ab-af7f-011ee7f25a15" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180516T160201Z:8dc5db1c-4856-45ab-af7f-011ee7f25a15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-6432" + ], + "CreateServer": [ + "sqlcrudtest-8296" + ], + "TestExportDatabaseVulnerabilityAssessmentScans": [ + "sqlvulnerabilityassessmentexportscantest-3331" + ], + "CreateStorageContainer": [ + "sqlvatest839" + ] + }, + "Variables": { + "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file From f09e656ceaa4f377fa73c36854320d24bdda4995 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 17:38:03 -0700 Subject: [PATCH 08/26] Adding .NET sdk --- .../Generated/IJobAgentsOperations.cs | 292 +++ .../Generated/IJobCredentialsOperations.cs | 178 ++ .../Generated/IJobExecutionsOperations.cs | 393 ++++ .../Generated/IJobStepExecutionsOperations.cs | 150 ++ .../Generated/IJobStepsOperations.cs | 288 +++ .../IJobTargetExecutionsOperations.cs | 240 +++ .../Generated/IJobTargetGroupsOperations.cs | 178 ++ .../Generated/IJobVersionsOperations.cs | 118 ++ .../Generated/IJobsOperations.cs | 178 ++ .../Generated/ISqlManagementClient.cs | 45 + .../Generated/JobAgentsOperations.cs | 1351 ++++++++++++ .../JobAgentsOperationsExtensions.cs | 455 ++++ .../Generated/JobCredentialsOperations.cs | 1085 ++++++++++ .../JobCredentialsOperationsExtensions.cs | 272 +++ .../Generated/JobExecutionsOperations.cs | 1862 +++++++++++++++++ .../JobExecutionsOperationsExtensions.cs | 640 ++++++ .../Generated/JobStepExecutionsOperations.cs | 732 +++++++ .../JobStepExecutionsOperationsExtensions.cs | 235 +++ .../Generated/JobStepsOperations.cs | 1740 +++++++++++++++ .../Generated/JobStepsOperationsExtensions.cs | 458 ++++ .../JobTargetExecutionsOperations.cs | 1197 +++++++++++ ...JobTargetExecutionsOperationsExtensions.cs | 391 ++++ .../Generated/JobTargetGroupsOperations.cs | 1085 ++++++++++ .../JobTargetGroupsOperationsExtensions.cs | 272 +++ .../Generated/JobVersionsOperations.cs | 658 ++++++ .../JobVersionsOperationsExtensions.cs | 173 ++ .../Generated/JobsOperations.cs | 1081 ++++++++++ .../Generated/JobsOperationsExtensions.cs | 272 +++ .../Management.Sql/Generated/Models/Job.cs | 75 + .../Generated/Models/JobAgent.cs | 100 + .../Generated/Models/JobAgentState.cs | 25 + .../Generated/Models/JobAgentUpdate.cs | 53 + .../Generated/Models/JobCredential.cs | 84 + .../Generated/Models/JobExecution.cs | 172 ++ .../Generated/Models/JobExecutionLifecycle.cs | 30 + .../Generated/Models/JobExecutionTarget.cs | 71 + .../Generated/Models/JobSchedule.cs | 88 + .../Generated/Models/JobScheduleType.cs | 60 + .../Generated/Models/JobStep.cs | 139 ++ .../Generated/Models/JobStepAction.cs | 87 + .../Generated/Models/JobStepActionSource.cs | 21 + .../Generated/Models/JobStepActionType.cs | 21 + .../Models/JobStepExecutionOptions.cs | 90 + .../Generated/Models/JobStepOutput.cs | 140 ++ .../Generated/Models/JobStepOutputType.cs | 21 + .../Generated/Models/JobTarget.cs | 125 ++ .../Generated/Models/JobTargetGroup.cs | 83 + .../Models/JobTargetGroupMembershipType.cs | 60 + .../Generated/Models/JobTargetType.cs | 25 + .../Generated/Models/JobVersion.cs | 46 + .../Generated/Models/ProvisioningState.cs | 25 + .../Generated/SdkInfo_SqlManagementClient.cs | 44 +- .../Generated/SqlManagementClient.cs | 54 + src/SDKs/_metadata/sql_resource-manager.txt | 13 +- 54 files changed, 17753 insertions(+), 18 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.cs diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs new file mode 100644 index 0000000000000..dc06028b44716 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs @@ -0,0 +1,292 @@ +// +// 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; + + /// + /// JobAgentsOperations operations. + /// + public partial interface IJobAgentsOperations + { + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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 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>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job agent. + /// + /// + /// 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 job agent to be retrieved. + /// + /// + /// 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 jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// 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 jobAgentName, JobAgent parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + /// + /// 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 jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs new file mode 100644 index 0000000000000..2c411e4e4ba6c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs @@ -0,0 +1,178 @@ +// +// 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; + + /// + /// JobCredentialsOperations operations. + /// + public partial interface IJobCredentialsOperations + { + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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 job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a jobs credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 jobAgentName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential state. + /// + /// + /// 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 jobAgentName, string credentialName, JobCredential parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 jobAgentName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs new file mode 100644 index 0000000000000..caeaf4fdba60d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs @@ -0,0 +1,393 @@ +// +// 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; + + /// + /// JobExecutionsOperations operations. + /// + public partial interface IJobExecutionsOperations + { + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 job agent. + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + /// + /// 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 CancelWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists a job's executions. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + /// + /// 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 jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// 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 jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all executions in a job agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists a job's executions. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs new file mode 100644 index 0000000000000..ba6472843910f --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs @@ -0,0 +1,150 @@ +// +// 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; + + /// + /// JobStepExecutionsOperations operations. + /// + public partial interface IJobStepExecutionsOperations + { + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a step execution of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// 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 jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs new file mode 100644 index 0000000000000..e2f428fa8e210 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs @@ -0,0 +1,288 @@ +// +// 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; + + /// + /// JobStepsOperations operations. + /// + public partial interface IJobStepsOperations + { + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + /// + /// 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>> ListByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified version of a job step. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + /// + /// 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> GetByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job step in a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// 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 jobAgentName, string jobName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job step. This will implicitly create a new + /// job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + /// + /// 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 jobAgentName, string jobName, string stepName, JobStep parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job step. This will implicitly create a new job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + /// + /// 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 jobAgentName, string jobName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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>> ListByVersionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs new file mode 100644 index 0000000000000..fcc85a2daf87f --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs @@ -0,0 +1,240 @@ +// +// 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; + + /// + /// JobTargetExecutionsOperations operations. + /// + public partial interface IJobTargetExecutionsOperations + { + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByStepWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a target execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target 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 jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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>> ListByStepNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs new file mode 100644 index 0000000000000..8fab528c6e990 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs @@ -0,0 +1,178 @@ +// +// 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; + + /// + /// JobTargetGroupsOperations operations. + /// + public partial interface IJobTargetGroupsOperations + { + /// + /// Gets all target groups in an agent. + /// + /// + /// 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 job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// 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 jobAgentName, string targetGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target group. + /// + /// + /// 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 jobAgentName, string targetGroupName, JobTargetGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// 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 jobAgentName, string targetGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all target groups in an agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs new file mode 100644 index 0000000000000..4b64755044aed --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs @@ -0,0 +1,118 @@ +// +// 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; + + /// + /// JobVersionsOperations operations. + /// + public partial interface IJobVersionsOperations + { + /// + /// Gets all versions of a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// 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 jobAgentName, string jobName, int jobVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all versions of a job. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs new file mode 100644 index 0000000000000..cd52372c7049d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs @@ -0,0 +1,178 @@ +// +// 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; + + /// + /// JobsOperations operations. + /// + public partial interface IJobsOperations + { + /// + /// Gets a list of jobs. + /// + /// + /// 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 job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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 jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job state. + /// + /// + /// 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 jobAgentName, string jobName, Job parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to delete. + /// + /// + /// 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 jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of jobs. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, 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 6d60f338a605e..3467f110e7683 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -241,6 +241,51 @@ public partial interface ISqlManagementClient : System.IDisposable /// IVirtualNetworkRulesOperations VirtualNetworkRules { get; } + /// + /// Gets the IJobAgentsOperations. + /// + IJobAgentsOperations JobAgents { get; } + + /// + /// Gets the IJobCredentialsOperations. + /// + IJobCredentialsOperations JobCredentials { get; } + + /// + /// Gets the IJobExecutionsOperations. + /// + IJobExecutionsOperations JobExecutions { get; } + + /// + /// Gets the IJobsOperations. + /// + IJobsOperations Jobs { get; } + + /// + /// Gets the IJobStepExecutionsOperations. + /// + IJobStepExecutionsOperations JobStepExecutions { get; } + + /// + /// Gets the IJobStepsOperations. + /// + IJobStepsOperations JobSteps { get; } + + /// + /// Gets the IJobTargetExecutionsOperations. + /// + IJobTargetExecutionsOperations JobTargetExecutions { get; } + + /// + /// Gets the IJobTargetGroupsOperations. + /// + IJobTargetGroupsOperations JobTargetGroups { get; } + + /// + /// Gets the IJobVersionsOperations. + /// + IJobVersionsOperations JobVersions { get; } + /// /// Gets the ILongTermRetentionBackupsOperations. /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs new file mode 100644 index 0000000000000..1dd2de8a01872 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs @@ -0,0 +1,1351 @@ +// +// 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; + + /// + /// JobAgentsOperations operations. + /// + internal partial class JobAgentsOperations : IServiceOperations, IJobAgentsOperations + { + /// + /// Initializes a new instance of the JobAgentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobAgentsOperations(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 list of job agents in a server. + /// + /// + /// 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. + /// + /// + /// 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>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, 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 (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServer", 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}/jobAgents").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _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; + } + + /// + /// Gets a job agent. + /// + /// + /// 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 job agent to be retrieved. + /// + /// + /// 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 jobAgentName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + 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}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgent 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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 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("jobAgentName", jobAgentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 && (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(); + } + // 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; + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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("PATCH"); + _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 != 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(); + } + // 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; + } + + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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>> ListByServerNextWithHttpMessagesAsync(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, "ListByServerNext", 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/JobAgentsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperationsExtensions.cs new file mode 100644 index 0000000000000..df77f9f2c4c01 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperationsExtensions.cs @@ -0,0 +1,455 @@ +// +// 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 JobAgentsOperations. + /// + public static partial class JobAgentsOperationsExtensions + { + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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. + /// + public static IPage ListByServer(this IJobAgentsOperations operations, string resourceGroupName, string serverName) + { + return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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 cancellation token. + /// + public static async Task> ListByServerAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job agent. + /// + /// + /// 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 job agent to be retrieved. + /// + public static JobAgent Get(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a job agent. + /// + /// + /// 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 job agent to be retrieved. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + public static JobAgent CreateOrUpdate(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + public static void Delete(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + public static JobAgent Update(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + public static JobAgent BeginCreateOrUpdate(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + public static void BeginDelete(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + operations.BeginDeleteAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 job agent to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + public static JobAgent BeginUpdate(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of job agents in a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByServerNext(this IJobAgentsOperations operations, string nextPageLink) + { + return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of job agents in a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerNextAsync(this IJobAgentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs new file mode 100644 index 0000000000000..e030fd0a02274 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs @@ -0,0 +1,1085 @@ +// +// 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; + + /// + /// JobCredentialsOperations operations. + /// + internal partial class JobCredentialsOperations : IServiceOperations, IJobCredentialsOperations + { + /// + /// Initializes a new instance of the JobCredentialsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobCredentialsOperations(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 list of jobs credentials. + /// + /// + /// 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 job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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}/jobAgents/{jobAgentName}/credentials").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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; + } + + /// + /// Gets a jobs credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 jobAgentName, string credentialName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (credentialName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "credentialName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("credentialName", credentialName); + 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}/jobAgents/{jobAgentName}/credentials/{credentialName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); + _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 job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential state. + /// + /// + /// 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 jobAgentName, string credentialName, JobCredential 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (credentialName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "credentialName"); + } + 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 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("jobAgentName", jobAgentName); + tracingParameters.Add("credentialName", credentialName); + 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}/jobAgents/{jobAgentName}/credentials/{credentialName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); + _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; + } + + /// + /// Deletes a job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 jobAgentName, string credentialName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (credentialName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "credentialName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("credentialName", credentialName); + 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}/jobAgents/{jobAgentName}/credentials/{credentialName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); + _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 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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/JobCredentialsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperationsExtensions.cs new file mode 100644 index 0000000000000..201d80b3efada --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperationsExtensions.cs @@ -0,0 +1,272 @@ +// +// 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 JobCredentialsOperations. + /// + public static partial class JobCredentialsOperationsExtensions + { + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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 job agent. + /// + public static IPage ListByAgent(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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 job agent. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a jobs credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + public static JobCredential Get(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, credentialName).GetAwaiter().GetResult(); + } + + /// + /// Gets a jobs credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, credentialName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential state. + /// + public static JobCredential CreateOrUpdate(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, JobCredential parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, credentialName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, JobCredential parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + public static void Delete(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, credentialName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job credential. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, credentialName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobCredentialsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobCredentialsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs new file mode 100644 index 0000000000000..f357a5b98afa4 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs @@ -0,0 +1,1862 @@ +// +// 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; + + /// + /// JobExecutionsOperations operations. + /// + internal partial class JobExecutionsOperations : IServiceOperations, IJobExecutionsOperations + { + /// + /// Initializes a new instance of the JobExecutionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobExecutionsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 job agent. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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}/jobAgents/{jobAgentName}/executions").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + /// + /// 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 CancelWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Cancel", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _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) + { + 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; + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists a job's executions. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJob", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Gets a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + /// + /// 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 jobAgentName, string jobName, System.Guid jobExecutionId, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _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 updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/start").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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(); + } + // 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 updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _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; + // 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 && (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(); + } + // 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; + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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; + } + + /// + /// Lists a job's executions. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(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, "ListByJobNext", 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/JobExecutionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperationsExtensions.cs new file mode 100644 index 0000000000000..11e6982fb1535 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperationsExtensions.cs @@ -0,0 +1,640 @@ +// +// 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 JobExecutionsOperations. + /// + public static partial class JobExecutionsOperationsExtensions + { + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 job agent. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByAgent(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 job agent. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + public static void Cancel(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + operations.CancelAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CancelWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + public static JobExecution Create(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.CreateAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists a job's executions. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByJob(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByJobAsync(resourceGroupName, serverName, jobAgentName, jobName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists a job's executions. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + public static JobExecution Get(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Gets a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + public static JobExecution CreateOrUpdate(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + public static JobExecution BeginCreate(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.BeginCreateAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + public static JobExecution BeginCreateOrUpdate(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobExecutionsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists a job's executions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobNext(this IJobExecutionsOperations operations, string nextPageLink) + { + return operations.ListByJobNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists a job's executions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobNextAsync(this IJobExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs new file mode 100644 index 0000000000000..9af657b8e1468 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs @@ -0,0 +1,732 @@ +// +// 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; + + /// + /// JobStepExecutionsOperations operations. + /// + internal partial class JobStepExecutionsOperations : IServiceOperations, IJobStepExecutionsOperations + { + /// + /// Initializes a new instance of the JobStepExecutionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobStepExecutionsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJobExecution", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Gets a step execution of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// 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 jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("stepName", stepName); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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; + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(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, "ListByJobExecutionNext", 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/JobStepExecutionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperationsExtensions.cs new file mode 100644 index 0000000000000..57c38c69f208d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperationsExtensions.cs @@ -0,0 +1,235 @@ +// +// 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 JobStepExecutionsOperations. + /// + public static partial class JobStepExecutionsOperationsExtensions + { + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByJobExecution(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByJobExecutionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionAsync(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a step execution of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + public static JobExecution Get(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName).GetAwaiter().GetResult(); + } + + /// + /// Gets a step execution of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobExecutionNext(this IJobStepExecutionsOperations operations, string nextPageLink) + { + return operations.ListByJobExecutionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionNextAsync(this IJobStepExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs new file mode 100644 index 0000000000000..1bc81f5513c00 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs @@ -0,0 +1,1740 @@ +// +// 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; + + /// + /// JobStepsOperations operations. + /// + internal partial class JobStepsOperations : IServiceOperations, IJobStepsOperations + { + /// + /// Initializes a new instance of the JobStepsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobStepsOperations(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 all job steps in the specified job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + /// + /// 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>> ListByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobVersion", jobVersion); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByVersion", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobVersion}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobVersion, Client.SerializationSettings).Trim('"'))); + _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; + } + + /// + /// Gets the specified version of a job step. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + /// + /// 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> GetByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobVersion", jobVersion); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetByVersion", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobVersion}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobVersion, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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; + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJob", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/steps").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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; + } + + /// + /// Gets a job step in a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// 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 jobAgentName, string jobName, string stepName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("stepName", stepName); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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 job step. This will implicitly create a new job + /// version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + /// + /// 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 jobAgentName, string jobName, string stepName, JobStep 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("stepName", stepName); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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; + } + + /// + /// Deletes a job step. This will implicitly create a new job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + /// + /// 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 jobAgentName, string jobName, string stepName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("stepName", stepName); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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>> ListByVersionNextWithHttpMessagesAsync(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, "ListByVersionNext", 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; + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(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, "ListByJobNext", 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/JobStepsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperationsExtensions.cs new file mode 100644 index 0000000000000..1da13d7365d4a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperationsExtensions.cs @@ -0,0 +1,458 @@ +// +// 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 JobStepsOperations. + /// + public static partial class JobStepsOperationsExtensions + { + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + public static IPage ListByVersion(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) + { + return operations.ListByVersionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByVersionAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByVersionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the specified version of a job step. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + public static JobStep GetByVersion(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName) + { + return operations.GetByVersionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, stepName).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified version of a job step. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + /// + /// The cancellation token. + /// + public static async Task GetByVersionAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByVersionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, stepName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + public static IPage ListByJob(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.ListByJobAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job step in a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + public static JobStep Get(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName).GetAwaiter().GetResult(); + } + + /// + /// Gets a job step in a job's current version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job step. This will implicitly create a new job + /// version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + public static JobStep CreateOrUpdate(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, JobStep parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job step. This will implicitly create a new job + /// version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, JobStep parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job step. This will implicitly create a new job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + public static void Delete(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job step. This will implicitly create a new job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByVersionNext(this IJobStepsOperations operations, string nextPageLink) + { + return operations.ListByVersionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByVersionNextAsync(this IJobStepsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByVersionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobNext(this IJobStepsOperations operations, string nextPageLink) + { + return operations.ListByJobNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobNextAsync(this IJobStepsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs new file mode 100644 index 0000000000000..d4817fd08a08e --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs @@ -0,0 +1,1197 @@ +// +// 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; + + /// + /// JobTargetExecutionsOperations operations. + /// + internal partial class JobTargetExecutionsOperations : IServiceOperations, IJobTargetExecutionsOperations + { + /// + /// Initializes a new instance of the JobTargetExecutionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobTargetExecutionsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJobExecution", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByStepWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByStep", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Gets a target execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target 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 jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("targetId", targetId); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _url = _url.Replace("{targetId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(targetId, Client.SerializationSettings).Trim('"'))); + _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; + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(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, "ListByJobExecutionNext", 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; + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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>> ListByStepNextWithHttpMessagesAsync(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, "ListByStepNext", 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/JobTargetExecutionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperationsExtensions.cs new file mode 100644 index 0000000000000..98b6476e61998 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperationsExtensions.cs @@ -0,0 +1,391 @@ +// +// 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 JobTargetExecutionsOperations. + /// + public static partial class JobTargetExecutionsOperationsExtensions + { + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByJobExecution(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByJobExecutionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByStep(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByStepAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByStepAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByStepWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a target execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target id. + /// + public static JobExecution Get(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, targetId).GetAwaiter().GetResult(); + } + + /// + /// Gets a target execution. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target id. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, targetId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobExecutionNext(this IJobTargetExecutionsOperations operations, string nextPageLink) + { + return operations.ListByJobExecutionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionNextAsync(this IJobTargetExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByStepNext(this IJobTargetExecutionsOperations operations, string nextPageLink) + { + return operations.ListByStepNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByStepNextAsync(this IJobTargetExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByStepNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs new file mode 100644 index 0000000000000..38240af52680c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs @@ -0,0 +1,1085 @@ +// +// 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; + + /// + /// JobTargetGroupsOperations operations. + /// + internal partial class JobTargetGroupsOperations : IServiceOperations, IJobTargetGroupsOperations + { + /// + /// Initializes a new instance of the JobTargetGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobTargetGroupsOperations(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 all target groups in an agent. + /// + /// + /// 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 job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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}/jobAgents/{jobAgentName}/targetGroups").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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; + } + + /// + /// Gets a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// 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 jobAgentName, string targetGroupName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (targetGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "targetGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("targetGroupName", targetGroupName); + 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}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{targetGroupName}", System.Uri.EscapeDataString(targetGroupName)); + _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 target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target group. + /// + /// + /// 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 jobAgentName, string targetGroupName, JobTargetGroup 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (targetGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "targetGroupName"); + } + 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 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("jobAgentName", jobAgentName); + tracingParameters.Add("targetGroupName", targetGroupName); + 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}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{targetGroupName}", System.Uri.EscapeDataString(targetGroupName)); + _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; + } + + /// + /// Deletes a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// 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 jobAgentName, string targetGroupName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (targetGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "targetGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("targetGroupName", targetGroupName); + 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}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{targetGroupName}", System.Uri.EscapeDataString(targetGroupName)); + _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 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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/JobTargetGroupsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperationsExtensions.cs new file mode 100644 index 0000000000000..21cc86013942c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperationsExtensions.cs @@ -0,0 +1,272 @@ +// +// 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 JobTargetGroupsOperations. + /// + public static partial class JobTargetGroupsOperationsExtensions + { + /// + /// Gets all target groups in an agent. + /// + /// + /// 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 job agent. + /// + public static IPage ListByAgent(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// 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 job agent. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + public static JobTargetGroup Get(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, targetGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target group. + /// + public static JobTargetGroup CreateOrUpdate(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, JobTargetGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target group. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, JobTargetGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + public static void Delete(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, targetGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a target group. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobTargetGroupsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobTargetGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs new file mode 100644 index 0000000000000..95c25514ce534 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs @@ -0,0 +1,658 @@ +// +// 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; + + /// + /// JobVersionsOperations operations. + /// + internal partial class JobVersionsOperations : IServiceOperations, IJobVersionsOperations + { + /// + /// Initializes a new instance of the JobVersionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobVersionsOperations(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 all versions of a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJob", 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}/jobAgents/{jobAgentName}/jobs/{jobName}/versions").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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; + } + + /// + /// Gets a job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// 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 jobAgentName, string jobName, int jobVersion, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobVersion", jobVersion); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobVersion}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobVersion, Client.SerializationSettings).Trim('"'))); + _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; + } + + /// + /// Gets all versions of a job. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(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, "ListByJobNext", 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/JobVersionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperationsExtensions.cs new file mode 100644 index 0000000000000..c43416b642a1d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperationsExtensions.cs @@ -0,0 +1,173 @@ +// +// 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 JobVersionsOperations. + /// + public static partial class JobVersionsOperationsExtensions + { + /// + /// Gets all versions of a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + public static IPage ListByJob(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.ListByJobAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Gets all versions of a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobAsync(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + public static JobVersion Get(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets a job version. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all versions of a job. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobNext(this IJobVersionsOperations operations, string nextPageLink) + { + return operations.ListByJobNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all versions of a job. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobNextAsync(this IJobVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs new file mode 100644 index 0000000000000..c332ef3b62aec --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs @@ -0,0 +1,1081 @@ +// +// 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; + + /// + /// JobsOperations operations. + /// + internal partial class JobsOperations : IServiceOperations, IJobsOperations + { + /// + /// Initializes a new instance of the JobsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobsOperations(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 list of jobs. + /// + /// + /// 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 job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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}/jobAgents/{jobAgentName}/jobs").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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; + } + + /// + /// Gets a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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 jobAgentName, string jobName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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 job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job state. + /// + /// + /// 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 jobAgentName, string jobName, Job 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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; + } + + /// + /// Deletes a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to delete. + /// + /// + /// 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 jobAgentName, string jobName, 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 (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + 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("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + 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}/jobAgents/{jobAgentName}/jobs/{jobName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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 && (int)_statusCode != 204) + { + 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; + } + + /// + /// Gets a list of jobs. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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/JobsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperationsExtensions.cs new file mode 100644 index 0000000000000..2382754e9beaa --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperationsExtensions.cs @@ -0,0 +1,272 @@ +// +// 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 JobsOperations. + /// + public static partial class JobsOperationsExtensions + { + /// + /// Gets a list of jobs. + /// + /// + /// 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 job agent. + /// + public static IPage ListByAgent(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs. + /// + /// + /// 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 job agent. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + public static Job Get(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Gets a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job state. + /// + public static Job CreateOrUpdate(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, Job parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, Job parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to delete. + /// + public static void Delete(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job. + /// + /// + /// 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 job agent. + /// + /// + /// The name of the job to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of jobs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs new file mode 100644 index 0000000000000..f8308d23d0844 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs @@ -0,0 +1,75 @@ +// +// 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 job. + /// + [Rest.Serialization.JsonTransformation] + public partial class Job : ProxyResource + { + /// + /// Initializes a new instance of the Job class. + /// + public Job() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Job class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// User-defined description of the + /// job. + /// The job version number. + /// Schedule properties of the job. + public Job(string id = default(string), string name = default(string), string type = default(string), string description = default(string), int? version = default(int?), JobSchedule schedule = default(JobSchedule)) + : base(id, name, type) + { + Description = description; + Version = version; + Schedule = schedule; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets user-defined description of the job. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets the job version number. + /// + [JsonProperty(PropertyName = "properties.version")] + public int? Version { get; private set; } + + /// + /// Gets or sets schedule properties of the job. + /// + [JsonProperty(PropertyName = "properties.schedule")] + public JobSchedule Schedule { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.cs new file mode 100644 index 0000000000000..fe6f269eab8ab --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An Azure SQL job agent. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobAgent : TrackedResource + { + /// + /// Initializes a new instance of the JobAgent class. + /// + public JobAgent() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobAgent class. + /// + /// Resource location. + /// Resource ID of the database to store job + /// metadata in. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// The name and tier of the SKU. + /// The state of the job agent. Possible values + /// include: 'Creating', 'Ready', 'Updating', 'Deleting', + /// 'Disabled' + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) + : base(location, id, name, type, tags) + { + Sku = sku; + DatabaseId = databaseId; + State = state; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name and tier of the SKU. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets resource ID of the database to store job metadata in. + /// + [JsonProperty(PropertyName = "properties.databaseId")] + public string DatabaseId { get; set; } + + /// + /// Gets the state of the job agent. Possible values include: + /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (DatabaseId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DatabaseId"); + } + if (Sku != null) + { + Sku.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.cs new file mode 100644 index 0000000000000..b8897f53cb79c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.cs @@ -0,0 +1,25 @@ +// +// 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 JobAgentState. + /// + public static class JobAgentState + { + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + public const string Disabled = "Disabled"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs new file mode 100644 index 0000000000000..f0a908f10564d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs @@ -0,0 +1,53 @@ +// +// 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; + + /// + /// An update to an Azure SQL job agent. + /// + public partial class JobAgentUpdate + { + /// + /// Initializes a new instance of the JobAgentUpdate class. + /// + public JobAgentUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobAgentUpdate class. + /// + /// Resource tags. + public JobAgentUpdate(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs new file mode 100644 index 0000000000000..5d91d4bddf993 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs @@ -0,0 +1,84 @@ +// +// 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 stored credential that can be used by a job to connect to target + /// databases. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobCredential : ProxyResource + { + /// + /// Initializes a new instance of the JobCredential class. + /// + public JobCredential() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobCredential class. + /// + /// The credential user name. + /// The credential password. + /// Resource ID. + /// Resource name. + /// Resource type. + public JobCredential(string username, string password, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + Username = username; + Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the credential user name. + /// + [JsonProperty(PropertyName = "properties.username")] + public string Username { get; set; } + + /// + /// Gets or sets the credential password. + /// + [JsonProperty(PropertyName = "properties.password")] + public string Password { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Username == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Username"); + } + if (Password == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Password"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.cs new file mode 100644 index 0000000000000..39c3e70baf2c6 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.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.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// An execution of a job + /// + [Rest.Serialization.JsonTransformation] + public partial class JobExecution : ProxyResource + { + /// + /// Initializes a new instance of the JobExecution class. + /// + public JobExecution() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobExecution class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The job version number. + /// The job step name. + /// The job step id. + /// The unique identifier of the job + /// execution. + /// The detailed state of the job execution. + /// Possible values include: 'Created', 'InProgress', + /// 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', + /// 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', + /// 'Skipped' + /// The ARM provisioning state of the + /// job execution. Possible values include: 'Created', 'InProgress', + /// 'Succeeded', 'Failed', 'Canceled' + /// The time that the job execution was + /// created. + /// The time that the job execution + /// started. + /// The time that the job execution + /// completed. + /// Number of times the job execution has + /// been attempted. + /// Start time of the current + /// attempt. + /// The last status or error message. + /// The target that this execution is executed + /// on. + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + : base(id, name, type) + { + JobVersion = jobVersion; + StepName = stepName; + StepId = stepId; + JobExecutionId = jobExecutionId; + Lifecycle = lifecycle; + ProvisioningState = provisioningState; + CreateTime = createTime; + StartTime = startTime; + EndTime = endTime; + CurrentAttempts = currentAttempts; + CurrentAttemptStartTime = currentAttemptStartTime; + LastMessage = lastMessage; + Target = target; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the job version number. + /// + [JsonProperty(PropertyName = "properties.jobVersion")] + public int? JobVersion { get; private set; } + + /// + /// Gets the job step name. + /// + [JsonProperty(PropertyName = "properties.stepName")] + public string StepName { get; private set; } + + /// + /// Gets the job step id. + /// + [JsonProperty(PropertyName = "properties.stepId")] + public int? StepId { get; private set; } + + /// + /// Gets the unique identifier of the job execution. + /// + [JsonProperty(PropertyName = "properties.jobExecutionId")] + public System.Guid? JobExecutionId { get; private set; } + + /// + /// Gets the detailed state of the job execution. Possible values + /// include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', + /// 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', + /// 'TimedOut', 'Canceled', 'Skipped' + /// + [JsonProperty(PropertyName = "properties.lifecycle")] + public string Lifecycle { get; private set; } + + /// + /// Gets the ARM provisioning state of the job execution. Possible + /// values include: 'Created', 'InProgress', 'Succeeded', 'Failed', + /// 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets the time that the job execution was created. + /// + [JsonProperty(PropertyName = "properties.createTime")] + public System.DateTime? CreateTime { get; private set; } + + /// + /// Gets the time that the job execution started. + /// + [JsonProperty(PropertyName = "properties.startTime")] + public System.DateTime? StartTime { get; private set; } + + /// + /// Gets the time that the job execution completed. + /// + [JsonProperty(PropertyName = "properties.endTime")] + public System.DateTime? EndTime { get; private set; } + + /// + /// Gets or sets number of times the job execution has been attempted. + /// + [JsonProperty(PropertyName = "properties.currentAttempts")] + public int? CurrentAttempts { get; set; } + + /// + /// Gets start time of the current attempt. + /// + [JsonProperty(PropertyName = "properties.currentAttemptStartTime")] + public System.DateTime? CurrentAttemptStartTime { get; private set; } + + /// + /// Gets the last status or error message. + /// + [JsonProperty(PropertyName = "properties.lastMessage")] + public string LastMessage { get; private set; } + + /// + /// Gets the target that this execution is executed on. + /// + [JsonProperty(PropertyName = "properties.target")] + public JobExecutionTarget Target { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs new file mode 100644 index 0000000000000..37ead7ce7ff5c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs @@ -0,0 +1,30 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for JobExecutionLifecycle. + /// + public static class JobExecutionLifecycle + { + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + public const string WaitingForRetry = "WaitingForRetry"; + public const string Succeeded = "Succeeded"; + public const string SucceededWithSkipped = "SucceededWithSkipped"; + public const string Failed = "Failed"; + public const string TimedOut = "TimedOut"; + public const string Canceled = "Canceled"; + public const string Skipped = "Skipped"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs new file mode 100644 index 0000000000000..6b7e1dff02e8a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs @@ -0,0 +1,71 @@ +// +// 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; + + /// + /// The target that a job execution is executed on. + /// + public partial class JobExecutionTarget + { + /// + /// Initializes a new instance of the JobExecutionTarget class. + /// + public JobExecutionTarget() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobExecutionTarget class. + /// + /// The type of the target. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// The server name. + /// The database name. + public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) + { + Type = type; + ServerName = serverName; + DatabaseName = databaseName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the type of the target. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the server name. + /// + [JsonProperty(PropertyName = "serverName")] + public string ServerName { get; private set; } + + /// + /// Gets the database name. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs new file mode 100644 index 0000000000000..c108f887dbb1c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs @@ -0,0 +1,88 @@ +// +// 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; + + /// + /// Scheduling properties of a job. + /// + public partial class JobSchedule + { + /// + /// Initializes a new instance of the JobSchedule class. + /// + public JobSchedule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobSchedule class. + /// + /// Schedule start time. + /// Schedule end time. + /// Schedule interval type. Possible values include: + /// 'Once', 'Recurring' + /// Whether or not the schedule is + /// enabled. + /// Value of the schedule's recurring interval, + /// if the scheduletype is recurring. ISO8601 duration format. + public JobSchedule(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), JobScheduleType? type = default(JobScheduleType?), bool? enabled = default(bool?), string interval = default(string)) + { + StartTime = startTime; + EndTime = endTime; + Type = type; + Enabled = enabled; + Interval = interval; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets schedule start time. + /// + [JsonProperty(PropertyName = "startTime")] + public System.DateTime? StartTime { get; set; } + + /// + /// Gets or sets schedule end time. + /// + [JsonProperty(PropertyName = "endTime")] + public System.DateTime? EndTime { get; set; } + + /// + /// Gets or sets schedule interval type. Possible values include: + /// 'Once', 'Recurring' + /// + [JsonProperty(PropertyName = "type")] + public JobScheduleType? Type { get; set; } + + /// + /// Gets or sets whether or not the schedule is enabled. + /// + [JsonProperty(PropertyName = "enabled")] + public bool? Enabled { get; set; } + + /// + /// Gets or sets value of the schedule's recurring interval, if the + /// scheduletype is recurring. ISO8601 duration format. + /// + [JsonProperty(PropertyName = "interval")] + public string Interval { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs new file mode 100644 index 0000000000000..502616c442b8c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for JobScheduleType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum JobScheduleType + { + [EnumMember(Value = "Once")] + Once, + [EnumMember(Value = "Recurring")] + Recurring + } + internal static class JobScheduleTypeEnumExtension + { + internal static string ToSerializedValue(this JobScheduleType? value) + { + return value == null ? null : ((JobScheduleType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this JobScheduleType value) + { + switch( value ) + { + case JobScheduleType.Once: + return "Once"; + case JobScheduleType.Recurring: + return "Recurring"; + } + return null; + } + + internal static JobScheduleType? ParseJobScheduleType(this string value) + { + switch( value ) + { + case "Once": + return JobScheduleType.Once; + case "Recurring": + return JobScheduleType.Recurring; + } + return null; + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs new file mode 100644 index 0000000000000..3388af5880931 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs @@ -0,0 +1,139 @@ +// +// 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 job step. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobStep : ProxyResource + { + /// + /// Initializes a new instance of the JobStep class. + /// + public JobStep() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStep class. + /// + /// The resource ID of the target group that + /// the job step will be executed on. + /// The resource ID of the job credential that + /// will be used to connect to the targets. + /// The action payload of the job step. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The job step's index within the job. If not + /// specified when creating the job step, it will be created as the + /// last step. If not specified when updating the job step, the step id + /// is not modified. + /// Output destination properties of the job + /// step. + /// Execution options for the job + /// step. + public JobStep(string targetGroup, string credential, JobStepAction action, string id = default(string), string name = default(string), string type = default(string), int? stepId = default(int?), JobStepOutput output = default(JobStepOutput), JobStepExecutionOptions executionOptions = default(JobStepExecutionOptions)) + : base(id, name, type) + { + StepId = stepId; + TargetGroup = targetGroup; + Credential = credential; + Action = action; + Output = output; + ExecutionOptions = executionOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the job step's index within the job. If not specified + /// when creating the job step, it will be created as the last step. If + /// not specified when updating the job step, the step id is not + /// modified. + /// + [JsonProperty(PropertyName = "properties.stepId")] + public int? StepId { get; set; } + + /// + /// Gets or sets the resource ID of the target group that the job step + /// will be executed on. + /// + [JsonProperty(PropertyName = "properties.targetGroup")] + public string TargetGroup { get; set; } + + /// + /// Gets or sets the resource ID of the job credential that will be + /// used to connect to the targets. + /// + [JsonProperty(PropertyName = "properties.credential")] + public string Credential { get; set; } + + /// + /// Gets or sets the action payload of the job step. + /// + [JsonProperty(PropertyName = "properties.action")] + public JobStepAction Action { get; set; } + + /// + /// Gets or sets output destination properties of the job step. + /// + [JsonProperty(PropertyName = "properties.output")] + public JobStepOutput Output { get; set; } + + /// + /// Gets or sets execution options for the job step. + /// + [JsonProperty(PropertyName = "properties.executionOptions")] + public JobStepExecutionOptions ExecutionOptions { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetGroup"); + } + if (Credential == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Credential"); + } + if (Action == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Action"); + } + if (Action != null) + { + Action.Validate(); + } + if (Output != null) + { + Output.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs new file mode 100644 index 0000000000000..51941a3104060 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs @@ -0,0 +1,87 @@ +// +// 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.Linq; + + /// + /// The action to be executed by a job step. + /// + public partial class JobStepAction + { + /// + /// Initializes a new instance of the JobStepAction class. + /// + public JobStepAction() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStepAction class. + /// + /// The action value, for example the text of the + /// T-SQL script to execute. + /// Type of action being executed by the job step. + /// Possible values include: 'TSql' + /// The source of the action to execute. Possible + /// values include: 'Inline' + public JobStepAction(string value, string type = default(string), string source = default(string)) + { + Type = type; + Source = source; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets type of action being executed by the job step. + /// Possible values include: 'TSql' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the source of the action to execute. Possible values + /// include: 'Inline' + /// + [JsonProperty(PropertyName = "source")] + public string Source { get; set; } + + /// + /// Gets or sets the action value, for example the text of the T-SQL + /// script to execute. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs new file mode 100644 index 0000000000000..2f96d3a39604e --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs @@ -0,0 +1,21 @@ +// +// 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 JobStepActionSource. + /// + public static class JobStepActionSource + { + public const string Inline = "Inline"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs new file mode 100644 index 0000000000000..6dda291ff3212 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs @@ -0,0 +1,21 @@ +// +// 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 JobStepActionType. + /// + public static class JobStepActionType + { + public const string TSql = "TSql"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs new file mode 100644 index 0000000000000..bfc1c11a276ad --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs @@ -0,0 +1,90 @@ +// +// 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; + + /// + /// The execution options of a job step. + /// + public partial class JobStepExecutionOptions + { + /// + /// Initializes a new instance of the JobStepExecutionOptions class. + /// + public JobStepExecutionOptions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStepExecutionOptions class. + /// + /// Execution timeout for the job + /// step. + /// Maximum number of times the job step + /// will be reattempted if the first attempt fails. + /// Initial delay between + /// retries for job step execution. + /// The maximum amount of + /// time to wait between retries for job step execution. + /// The backoff multiplier + /// for the time between retries. + public JobStepExecutionOptions(int? timeoutSeconds = default(int?), int? retryAttempts = default(int?), int? initialRetryIntervalSeconds = default(int?), int? maximumRetryIntervalSeconds = default(int?), double? retryIntervalBackoffMultiplier = default(double?)) + { + TimeoutSeconds = timeoutSeconds; + RetryAttempts = retryAttempts; + InitialRetryIntervalSeconds = initialRetryIntervalSeconds; + MaximumRetryIntervalSeconds = maximumRetryIntervalSeconds; + RetryIntervalBackoffMultiplier = retryIntervalBackoffMultiplier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets execution timeout for the job step. + /// + [JsonProperty(PropertyName = "timeoutSeconds")] + public int? TimeoutSeconds { get; set; } + + /// + /// Gets or sets maximum number of times the job step will be + /// reattempted if the first attempt fails. + /// + [JsonProperty(PropertyName = "retryAttempts")] + public int? RetryAttempts { get; set; } + + /// + /// Gets or sets initial delay between retries for job step execution. + /// + [JsonProperty(PropertyName = "initialRetryIntervalSeconds")] + public int? InitialRetryIntervalSeconds { get; set; } + + /// + /// Gets or sets the maximum amount of time to wait between retries for + /// job step execution. + /// + [JsonProperty(PropertyName = "maximumRetryIntervalSeconds")] + public int? MaximumRetryIntervalSeconds { get; set; } + + /// + /// Gets or sets the backoff multiplier for the time between retries. + /// + [JsonProperty(PropertyName = "retryIntervalBackoffMultiplier")] + public double? RetryIntervalBackoffMultiplier { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs new file mode 100644 index 0000000000000..cdd0db7bec057 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs @@ -0,0 +1,140 @@ +// +// 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.Linq; + + /// + /// The output configuration of a job step. + /// + public partial class JobStepOutput + { + /// + /// Initializes a new instance of the JobStepOutput class. + /// + public JobStepOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStepOutput class. + /// + /// The output destination server + /// name. + /// The output destination database. + /// The output destination table. + /// The resource ID of the credential to use + /// to connect to the output destination. + /// The output destination type. Possible values + /// include: 'SqlDatabase' + /// The output destination subscription + /// id. + /// The output destination resource + /// group. + /// The output destination schema. + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + { + Type = type; + SubscriptionId = subscriptionId; + ResourceGroupName = resourceGroupName; + ServerName = serverName; + DatabaseName = databaseName; + SchemaName = schemaName; + TableName = tableName; + Credential = credential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the output destination type. Possible values include: + /// 'SqlDatabase' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the output destination subscription id. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public System.Guid? SubscriptionId { get; set; } + + /// + /// Gets or sets the output destination resource group. + /// + [JsonProperty(PropertyName = "resourceGroupName")] + public string ResourceGroupName { get; set; } + + /// + /// Gets or sets the output destination server name. + /// + [JsonProperty(PropertyName = "serverName")] + public string ServerName { get; set; } + + /// + /// Gets or sets the output destination database. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets the output destination schema. + /// + [JsonProperty(PropertyName = "schemaName")] + public string SchemaName { get; set; } + + /// + /// Gets or sets the output destination table. + /// + [JsonProperty(PropertyName = "tableName")] + public string TableName { get; set; } + + /// + /// Gets or sets the resource ID of the credential to use to connect to + /// the output destination. + /// + [JsonProperty(PropertyName = "credential")] + public string Credential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ServerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerName"); + } + if (DatabaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DatabaseName"); + } + if (TableName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TableName"); + } + if (Credential == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Credential"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs new file mode 100644 index 0000000000000..bb86c81266576 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs @@ -0,0 +1,21 @@ +// +// 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 JobStepOutputType. + /// + public static class JobStepOutputType + { + public const string SqlDatabase = "SqlDatabase"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs new file mode 100644 index 0000000000000..7d03cc175e67e --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs @@ -0,0 +1,125 @@ +// +// 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.Linq; + + /// + /// A job target, for example a specific database or a container of + /// databases that is evaluated during job execution. + /// + public partial class JobTarget + { + /// + /// Initializes a new instance of the JobTarget class. + /// + public JobTarget() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobTarget class. + /// + /// The target type. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// Whether the target is included or + /// excluded from the group. Possible values include: 'Include', + /// 'Exclude' + /// The target server name. + /// The target database name. + /// The target elastic pool name. + /// The target shard map. + /// The resource ID of the credential + /// that is used during job execution to connect to the target and + /// determine the list of databases inside the target. + public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + { + MembershipType = membershipType; + Type = type; + ServerName = serverName; + DatabaseName = databaseName; + ElasticPoolName = elasticPoolName; + ShardMapName = shardMapName; + RefreshCredential = refreshCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets whether the target is included or excluded from the + /// group. Possible values include: 'Include', 'Exclude' + /// + [JsonProperty(PropertyName = "membershipType")] + public JobTargetGroupMembershipType? MembershipType { get; set; } + + /// + /// Gets or sets the target type. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the target server name. + /// + [JsonProperty(PropertyName = "serverName")] + public string ServerName { get; set; } + + /// + /// Gets or sets the target database name. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets the target elastic pool name. + /// + [JsonProperty(PropertyName = "elasticPoolName")] + public string ElasticPoolName { get; set; } + + /// + /// Gets or sets the target shard map. + /// + [JsonProperty(PropertyName = "shardMapName")] + public string ShardMapName { get; set; } + + /// + /// Gets or sets the resource ID of the credential that is used during + /// job execution to connect to the target and determine the list of + /// databases inside the target. + /// + [JsonProperty(PropertyName = "refreshCredential")] + public string RefreshCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs new file mode 100644 index 0000000000000..3269ee0c6e4f0 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs @@ -0,0 +1,83 @@ +// +// 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 group of job targets. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobTargetGroup : ProxyResource + { + /// + /// Initializes a new instance of the JobTargetGroup class. + /// + public JobTargetGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobTargetGroup class. + /// + /// Members of the target group. + /// Resource ID. + /// Resource name. + /// Resource type. + public JobTargetGroup(IList members, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + Members = members; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets members of the target group. + /// + [JsonProperty(PropertyName = "properties.members")] + public IList Members { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Members == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Members"); + } + if (Members != null) + { + foreach (var element in Members) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs new file mode 100644 index 0000000000000..91069e0c32048 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for JobTargetGroupMembershipType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum JobTargetGroupMembershipType + { + [EnumMember(Value = "Include")] + Include, + [EnumMember(Value = "Exclude")] + Exclude + } + internal static class JobTargetGroupMembershipTypeEnumExtension + { + internal static string ToSerializedValue(this JobTargetGroupMembershipType? value) + { + return value == null ? null : ((JobTargetGroupMembershipType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this JobTargetGroupMembershipType value) + { + switch( value ) + { + case JobTargetGroupMembershipType.Include: + return "Include"; + case JobTargetGroupMembershipType.Exclude: + return "Exclude"; + } + return null; + } + + internal static JobTargetGroupMembershipType? ParseJobTargetGroupMembershipType(this string value) + { + switch( value ) + { + case "Include": + return JobTargetGroupMembershipType.Include; + case "Exclude": + return JobTargetGroupMembershipType.Exclude; + } + return null; + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.cs new file mode 100644 index 0000000000000..bf3921ce5ec0d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.cs @@ -0,0 +1,25 @@ +// +// 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 JobTargetType. + /// + public static class JobTargetType + { + public const string TargetGroup = "TargetGroup"; + public const string SqlDatabase = "SqlDatabase"; + public const string SqlElasticPool = "SqlElasticPool"; + public const string SqlShardMap = "SqlShardMap"; + public const string SqlServer = "SqlServer"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs new file mode 100644 index 0000000000000..0ce703009296d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs @@ -0,0 +1,46 @@ +// +// 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 System.Linq; + + /// + /// A job version. + /// + public partial class JobVersion : ProxyResource + { + /// + /// Initializes a new instance of the JobVersion class. + /// + public JobVersion() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobVersion class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + public JobVersion(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.cs new file mode 100644 index 0000000000000..86dff5006da9d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 ProvisioningState. + /// + public static class ProvisioningState + { + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index be91333074968..60816295aed73 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"), @@ -32,6 +40,15 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "FirewallRules", "2014-04-01"), new Tuple("Sql", "GeoBackupPolicies", "2014-04-01"), new Tuple("Sql", "InstanceFailoverGroups", "2017-10-01-preview"), + new Tuple("Sql", "JobAgents", "2017-03-01-preview"), + new Tuple("Sql", "JobCredentials", "2017-03-01-preview"), + new Tuple("Sql", "JobExecutions", "2017-03-01-preview"), + new Tuple("Sql", "JobStepExecutions", "2017-03-01-preview"), + new Tuple("Sql", "JobSteps", "2017-03-01-preview"), + new Tuple("Sql", "JobTargetExecutions", "2017-03-01-preview"), + new Tuple("Sql", "JobTargetGroups", "2017-03-01-preview"), + new Tuple("Sql", "JobVersions", "2017-03-01-preview"), + new Tuple("Sql", "Jobs", "2017-03-01-preview"), new Tuple("Sql", "LongTermRetentionBackups", "2017-03-01-preview"), new Tuple("Sql", "ManagedDatabases", "2017-03-01-preview"), new Tuple("Sql", "ManagedInstances", "2015-05-01-preview"), @@ -59,7 +76,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 de51d7d21b0c7..56f37bfed6917 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -246,6 +246,51 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IVirtualNetworkRulesOperations VirtualNetworkRules { get; private set; } + /// + /// Gets the IJobAgentsOperations. + /// + public virtual IJobAgentsOperations JobAgents { get; private set; } + + /// + /// Gets the IJobCredentialsOperations. + /// + public virtual IJobCredentialsOperations JobCredentials { get; private set; } + + /// + /// Gets the IJobExecutionsOperations. + /// + public virtual IJobExecutionsOperations JobExecutions { get; private set; } + + /// + /// Gets the IJobsOperations. + /// + public virtual IJobsOperations Jobs { get; private set; } + + /// + /// Gets the IJobStepExecutionsOperations. + /// + public virtual IJobStepExecutionsOperations JobStepExecutions { get; private set; } + + /// + /// Gets the IJobStepsOperations. + /// + public virtual IJobStepsOperations JobSteps { get; private set; } + + /// + /// Gets the IJobTargetExecutionsOperations. + /// + public virtual IJobTargetExecutionsOperations JobTargetExecutions { get; private set; } + + /// + /// Gets the IJobTargetGroupsOperations. + /// + public virtual IJobTargetGroupsOperations JobTargetGroups { get; private set; } + + /// + /// Gets the IJobVersionsOperations. + /// + public virtual IJobVersionsOperations JobVersions { get; private set; } + /// /// Gets the ILongTermRetentionBackupsOperations. /// @@ -532,6 +577,15 @@ private void Initialize() SyncMembers = new SyncMembersOperations(this); SubscriptionUsages = new SubscriptionUsagesOperations(this); VirtualNetworkRules = new VirtualNetworkRulesOperations(this); + JobAgents = new JobAgentsOperations(this); + JobCredentials = new JobCredentialsOperations(this); + JobExecutions = new JobExecutionsOperations(this); + Jobs = new JobsOperations(this); + JobStepExecutions = new JobStepExecutionsOperations(this); + JobSteps = new JobStepsOperations(this); + JobTargetExecutions = new JobTargetExecutionsOperations(this); + JobTargetGroups = new JobTargetGroupsOperations(this); + JobVersions = new JobVersionsOperations(this); LongTermRetentionBackups = new LongTermRetentionBackupsOperations(this); BackupLongTermRetentionPolicies = new BackupLongTermRetentionPoliciesOperations(this); ManagedDatabases = new ManagedDatabasesOperations(this); diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index b5a6936ab9c62..eb30787ba0c23 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,11 +1,14 @@ -2018-04-18 23:35:28 UTC + +Type dsc to start/install the DS Consolidated Console + +2018-05-17 21:57:39 UTC 1) azure-rest-api-specs repository information -GitHub user: jugeorge -Branch: master -Commit: d08c7f54a125819caaa8c5f553206d1adbae60f9 +GitHub user: johnpaulkee +Branch: jobsSdk +Commit: 992e3dd8dfe722697d045458f827e9d554ef6ebb 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\jugeorge\AppData\Roaming\npm `-- autorest@2.0.4262 +Bootstrapper version: C:\Users\joke\AppData\Roaming\npm `-- autorest@2.0.4262 Latest installed version: From d12b733a1f3825ceecd578461cb756dfa841067a Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 18:00:25 -0700 Subject: [PATCH 09/26] Adding tests. Recordings to be placed in after --- .../SqlDatabaseAgentScenarioTests.cs | 563 ++++++++++++++++++ .../Utilities/SqlManagementTestContext.cs | 6 + 2 files changed, 569 insertions(+) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs new file mode 100644 index 0000000000000..96836fb06b593 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -0,0 +1,563 @@ +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Azure.Test.HttpRecorder; +using Microsoft.Rest.Azure; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading; +using System.Threading.Tasks; +using Xunit; + +namespace Sql.Tests +{ + public class SqlDatabaseAgentScenarioTests + { + /// + /// Test end to end agent + /// + [Fact] + public void TestCreateUpdateDropAgent() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent1"; + var agent1 = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + // Update agent tags + agent1 = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id, + Tags = new Dictionary() + { + { "tagKey1", "TagValue1" } + } + }); + + // Get agent + agent1 = sqlClient.JobAgents.Get(resourceGroup.Name, server.Name, agentName); + + // List agents + var agents = sqlClient.JobAgents.ListByServer(resourceGroup.Name, server.Name); + + // Delete agent + sqlClient.JobAgents.Delete(resourceGroup.Name, server.Name, agentName); + } + finally + { + // Clean up + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end job credential + /// + [Fact] + public void TestCreateUpdateDropJobCredential() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = "cloudsa", + Password = "Yukon900!" + }); + + + // Update credential + credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + // List credentials + sqlClient.JobCredentials.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // Delete credential + sqlClient.JobCredentials.Delete(resourceGroup.Name, server.Name, agent.Name, credential.Name); + } + finally + { + // Clean up resource group + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end target group + /// + [Fact] + public void TestCreateUpdateDropTargetGroup() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + // Create target group + JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } + } + }); + + // Update target group with each type of target + targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // db target + new JobTarget + { + DatabaseName = "db1", + ServerName = "s1", + Type = JobTargetType.SqlDatabase, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // shard map target + new JobTarget + { + ShardMapName = "sm1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlShardMap, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + // elastic pool target + new JobTarget + { + ElasticPoolName = "ep1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlElasticPool, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + } + }); + + // List target groups + sqlClient.JobTargetGroups.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // Delete target group + sqlClient.JobTargetGroups.Delete(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end job + /// + [Fact] + public void TestCreateUpdateDropJob() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + // Create job that repeats every 5 min from now. Starting now and ending in a day. + Job job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = false, + StartTime = new DateTime(), + EndTime = new DateTime().AddDays(1), + Type = JobScheduleType.Recurring, + Interval = "PT5M" + } + }); + + // Update job to run once + job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = true, + Type = JobScheduleType.Once, + } + }); + + // List job + sqlClient.Jobs.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // Delete job + sqlClient.Jobs.Delete(resourceGroup.Name, server.Name, agent.Name, job1.Name); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end job step + /// + [Fact] + public void TestCreateUpdateDropJobStep() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + + // Create target group + JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } + } + }); + + // Create job that runs once + Job job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = true, + Type = JobScheduleType.Once, + } + }); + + // Create step with min params + JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep + { + Credential = credential.Name, + Action = new JobStepAction + { + Value = "SELECT 1" + }, + TargetGroup = targetGroup.Name, + }); + + + + // Update step with max params + step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep + { + Credential = credential.Name, + Action = new JobStepAction + { + Value = "SELECT 1", + Source = "Inline", + Type = "TSql" + }, + TargetGroup = targetGroup.Name, + ExecutionOptions = new JobStepExecutionOptions + { + InitialRetryIntervalSeconds = 100, + MaximumRetryIntervalSeconds = 1000, + RetryAttempts = 1000, + RetryIntervalBackoffMultiplier = 1.5, + TimeoutSeconds = 10000 + }, + Output = new JobStepOutput + { + ResourceGroupName = "rg1", + ServerName = "s1", + DatabaseName = "db1", + SchemaName = "dbo", + TableName = "tbl", + SubscriptionId = new Guid(), + Credential = credential.Name, + Type = JobTargetType.SqlDatabase + } + }); + + + // List steps by job + sqlClient.JobSteps.ListByJob(resourceGroup.Name, server.Name, agent.Name, job1.Name); + + // Delete job step + sqlClient.JobSteps.Delete(resourceGroup.Name, server.Name, agent.Name, job1.Name, step1.Name); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + + /// + /// Tests end to end job execution + /// + [Fact] + public void TestStartStopGetJobExecution() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + + // Create target group + JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } + } + }); + + // Create job that runs once + Job job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = true, + Type = JobScheduleType.Once, + } + }); + + // Create job step + JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep + { + Credential = credential.Name, + Action = new JobStepAction + { + Value = "SELECT 1" + }, + TargetGroup = targetGroup.Name, + }); + + + // Create job execution from job1 + JobExecution jobExecution = sqlClient.JobExecutions.BeginCreate(resourceGroup.Name, server.Name, agent.Name, job1.Name); + + // List executions by agent + sqlClient.JobExecutions.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // List executions by job + sqlClient.JobExecutions.ListByJob(resourceGroup.Name, server.Name, agent.Name, job1.Name); + + // Get root job execution + sqlClient.JobExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + + // List step executions by root execution + sqlClient.JobStepExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + + // Get step1 execution + sqlClient.JobStepExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); + + + // List target executions by root job execution + IPage targetExecutions = sqlClient.JobTargetExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + + // List target executions by job step + IPage targetStepExecutions = sqlClient.JobTargetExecutions.ListByStep(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); + + // Get target execution + sqlClient.JobTargetExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name, Guid.Parse(targetStepExecutions.FirstOrDefault().Name)); + + // Cancel the job execution + sqlClient.JobExecutions.Cancel(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs index b2957616c3b08..a64607df0ba1d 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs @@ -66,6 +66,12 @@ public ResourceGroup CreateResourceGroup(string location) return resourceGroup; } + public void DeleteResourceGroup(string resourceGroupName) + { + ResourceManagementClient resourceClient = GetClient(); + resourceClient.ResourceGroups.BeginDelete(resourceGroupName); + } + public Server CreateServer(ResourceGroup resourceGroup) { return CreateServer(resourceGroup, TestEnvironmentUtilities.DefaultLocation); From cbdd4503b894791c0a45da1bc2aedaacec1698d4 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 18:16:12 -0700 Subject: [PATCH 10/26] Fixing target group member list initialization bug --- .../SqlDatabaseAgentScenarioTests.cs | 131 +++++++++--------- 1 file changed, 65 insertions(+), 66 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 96836fb06b593..0dd42fc9027a8 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -166,7 +166,6 @@ public void TestCreateUpdateDropTargetGroup() DatabaseId = db1.Id }); - // Create credential JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential { @@ -177,61 +176,61 @@ public void TestCreateUpdateDropTargetGroup() // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = "s1", - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } } - } }); // Update target group with each type of target targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = "s1", - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, - }, - // db target - new JobTarget - { - DatabaseName = "db1", - ServerName = "s1", - Type = JobTargetType.SqlDatabase, - MembershipType = JobTargetGroupMembershipType.Include, - }, - // shard map target - new JobTarget - { - ShardMapName = "sm1", - DatabaseName = "db1", - ServerName = "s1", - RefreshCredential = credential.Name, - Type = JobTargetType.SqlShardMap, - MembershipType = JobTargetGroupMembershipType.Exclude, - }, - // elastic pool target - new JobTarget - { - ElasticPoolName = "ep1", - DatabaseName = "db1", - ServerName = "s1", - RefreshCredential = credential.Name, - Type = JobTargetType.SqlElasticPool, - MembershipType = JobTargetGroupMembershipType.Exclude, - }, - } + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // db target + new JobTarget + { + DatabaseName = "db1", + ServerName = "s1", + Type = JobTargetType.SqlDatabase, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // shard map target + new JobTarget + { + ShardMapName = "sm1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlShardMap, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + // elastic pool target + new JobTarget + { + ElasticPoolName = "ep1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlElasticPool, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + } }); // List target groups @@ -359,17 +358,17 @@ public void TestCreateUpdateDropJobStep() // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = server.Name, - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } } - } }); // Create job that runs once @@ -486,17 +485,17 @@ public void TestStartStopGetJobExecution() // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = server.Name, - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } } - } }); // Create job that runs once From 28f903a7638672910b86578312a56894ec5a9aac Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 18:43:04 -0700 Subject: [PATCH 11/26] Fixing credential and target group id in all tests. Added hacky way to grab subscription id from env variable --- .../SqlDatabaseAgentScenarioTests.cs | 58 ++++++++++++++----- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 0dd42fc9027a8..8e386477f193a 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -17,6 +17,17 @@ namespace Sql.Tests { public class SqlDatabaseAgentScenarioTests { + private string _subscriptionId; + + public SqlDatabaseAgentScenarioTests() + { + // Sort of a hacky way to grab the subscription id from the environment variables, but given that developer set their + // TEST_CSM_ORGID_AUTHENTICATION environment variable in this format then: + // SubscriptionId={SubId};ServicePrincipal={clientId};ServicePrincipalSecret={clientSecret};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record; + // The below string split and getting the {SubId} should work. + this._subscriptionId = Environment.GetEnvironmentVariables()["TEST_CSM_ORGID_AUTHENTICATION"].ToString().Split(';')[0].Split('=')[1]; + } + /// /// Test end to end agent /// @@ -183,7 +194,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, } } @@ -199,7 +210,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, }, // db target @@ -216,7 +227,7 @@ public void TestCreateUpdateDropTargetGroup() ShardMapName = "sm1", DatabaseName = "db1", ServerName = "s1", - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlShardMap, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -226,7 +237,7 @@ public void TestCreateUpdateDropTargetGroup() ElasticPoolName = "ep1", DatabaseName = "db1", ServerName = "s1", - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlElasticPool, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -355,6 +366,7 @@ public void TestCreateUpdateDropJobStep() }); + // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { @@ -365,7 +377,7 @@ public void TestCreateUpdateDropJobStep() { ServerName = server.Name, Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, } } @@ -385,12 +397,12 @@ public void TestCreateUpdateDropJobStep() // Create step with min params JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = targetGroup.Name, + TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) }); @@ -398,14 +410,14 @@ public void TestCreateUpdateDropJobStep() // Update step with max params step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Action = new JobStepAction { Value = "SELECT 1", Source = "Inline", Type = "TSql" }, - TargetGroup = targetGroup.Name, + TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name), ExecutionOptions = new JobStepExecutionOptions { InitialRetryIntervalSeconds = 100, @@ -422,7 +434,7 @@ public void TestCreateUpdateDropJobStep() SchemaName = "dbo", TableName = "tbl", SubscriptionId = new Guid(), - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlDatabase } }); @@ -492,7 +504,7 @@ public void TestStartStopGetJobExecution() { ServerName = server.Name, Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, } } @@ -512,12 +524,12 @@ public void TestStartStopGetJobExecution() // Create job step JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = targetGroup.Name, + TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) }); @@ -558,5 +570,25 @@ public void TestStartStopGetJobExecution() } } } + + /// + /// Helper to format credential id string + /// + /// Refresh credential string + private string FormatCredentialId(string resourceGroupName, string serverName, string agentName, string credentialName) + { + return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/credentials/{4}", + this._subscriptionId, resourceGroupName, serverName, agentName, credentialName); + } + + /// + /// Helper to format target group id string + /// + /// Refresh credential string + private string FormatTargetGroupId(string resourceGroupName, string serverName, string agentName, string targetGroupName) + { + return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/targetGroups/{4}", + this._subscriptionId, resourceGroupName, serverName, agentName, targetGroupName); + } } } \ No newline at end of file From 721c1e658541275b9dc6c452b7be3532a59990b7 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 20:11:35 -0700 Subject: [PATCH 12/26] Fixing job execution test by allowing all client ips to server --- .../SqlDatabaseAgentScenarioTests.cs | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 8e386477f193a..214f044313242 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -235,7 +235,6 @@ public void TestCreateUpdateDropTargetGroup() new JobTarget { ElasticPoolName = "ep1", - DatabaseName = "db1", ServerName = "s1", RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlElasticPool, @@ -464,10 +463,18 @@ public void TestStartStopGetJobExecution() { ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); try { + // Allow all conenctions for test + sqlClient.FirewallRules.CreateOrUpdate(resourceGroup.Name, server.Name, "allowAll", new FirewallRule + { + StartIpAddress = "0.0.0.0", + EndIpAddress = "255.255.255.255", + }); + // Create database only required parameters string dbName = SqlManagementTestUtilities.GenerateName(); var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() @@ -503,8 +510,8 @@ public void TestStartStopGetJobExecution() new JobTarget { ServerName = server.Name, - Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + DatabaseName = db1.Name, + Type = JobTargetType.SqlDatabase, MembershipType = JobTargetGroupMembershipType.Include, } } @@ -533,8 +540,8 @@ public void TestStartStopGetJobExecution() }); - // Create job execution from job1 - JobExecution jobExecution = sqlClient.JobExecutions.BeginCreate(resourceGroup.Name, server.Name, agent.Name, job1.Name); + // Create job execution from job1 - do sync so we can be sure a step execution succeeds + JobExecution jobExecution = sqlClient.JobExecutions.Create(resourceGroup.Name, server.Name, agent.Name, job1.Name); // List executions by agent sqlClient.JobExecutions.ListByAgent(resourceGroup.Name, server.Name, agent.Name); @@ -543,7 +550,7 @@ public void TestStartStopGetJobExecution() sqlClient.JobExecutions.ListByJob(resourceGroup.Name, server.Name, agent.Name, job1.Name); // Get root job execution - sqlClient.JobExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + jobExecution = sqlClient.JobExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); // List step executions by root execution sqlClient.JobStepExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); @@ -551,12 +558,12 @@ public void TestStartStopGetJobExecution() // Get step1 execution sqlClient.JobStepExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); - // List target executions by root job execution - IPage targetExecutions = sqlClient.JobTargetExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); - + sqlClient.JobTargetExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + // List target executions by job step IPage targetStepExecutions = sqlClient.JobTargetExecutions.ListByStep(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); + Assert.Single(targetStepExecutions); // Get target execution sqlClient.JobTargetExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name, Guid.Parse(targetStepExecutions.FirstOrDefault().Name)); From 09fdc9185ec3b2aa2ffa55751067ac3b0a567134 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 20:12:28 -0700 Subject: [PATCH 13/26] Adding recordings --- .../TestCreateUpdateDropAgent.json | 2037 ++++++++++++ .../TestCreateUpdateDropJob.json | 2879 +++++++++++++++++ .../TestCreateUpdateDropJobCredential.json | 1598 +++++++++ .../TestCreateUpdateDropJobStep.json | 1738 ++++++++++ .../TestCreateUpdateDropTargetGroup.json | 1726 ++++++++++ .../TestStartStopGetJobExecution.json | 2738 ++++++++++++++++ 6 files changed, 12716 insertions(+) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json new file mode 100644 index 0000000000000..cc14474b82e36 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json @@ -0,0 +1,2037 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "dcf05856-c1ee-4384-838c-ecafa3350f25" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295\",\r\n \"name\": \"sqlcrudtest-1295\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\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": [ + "Fri, 18 May 2018 01:59:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "7b982390-cf45-4452-aae1-99c06addf33d" + ], + "x-ms-correlation-request-id": [ + "7b982390-cf45-4452-aae1-99c06addf33d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015911Z:7b982390-cf45-4452-aae1-99c06addf33d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "0a66403d-e555-402d-999d-80eaffdb5b0c" + ], + "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-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:59:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverOperationResults/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "7aeae671-9ca3-4902-8b54-87533b2973b1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "793881ea-6257-4b7b-b11b-ff0b504b99da" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015914Z:793881ea-6257-4b7b-b11b-ff0b504b99da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/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\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:59:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0d4229dc-59cb-4653-83b4-110c975719e1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "102790ed-d0a0-47ac-84f8-a321e261dd2d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015924Z:102790ed-d0a0-47ac-84f8-a321e261dd2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/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\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:59:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b4339f34-d041-40c2-828b-eded80479cf1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015944Z:9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/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\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "83de2251-a075-4d19-ba60-79bb1afb4714" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "09d33a65-47c4-4fa3-970c-ec5f29025893" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020004Z:09d33a65-47c4-4fa3-970c-ec5f29025893" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-9933.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933\",\r\n \"name\": \"sqlcrudtest-9933\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "390c6619-324e-4b8a-ae5f-f99558a4db15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "9356c880-eb42-4630-9bc6-7b681efbc478" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020004Z:9356c880-eb42-4630-9bc6-7b681efbc478" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "63c35777-7cc2-4486-a094-7e36ee1be8c7" + ], + "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-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "c98ffbe1-5516-4d2c-95b8-08801bd3bd6c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "8554f92c-fcd5-444b-be38-936131b0ba51" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020005Z:8554f92c-fcd5-444b-be38-936131b0ba51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0ed0cbf9-843c-46bb-aa63-95bfd18502b9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "90257434-8595-4b95-81fd-3463f0ba27ef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020020Z:90257434-8595-4b95-81fd-3463f0ba27ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "95b9989d-680c-42d6-ab27-e6e80183179e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "b552f6fa-7e3f-466a-b56b-c6d7d7411136" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020035Z:b552f6fa-7e3f-466a-b56b-c6d7d7411136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "813e6414-b726-4dca-8225-a7fc4c46ac07" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020050Z:e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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\": \"71eb4c36-ef7b-4da0-94b4-816ec6fa8a92\",\r\n \"creationDate\": \"2018-05-18T02:00:07.703Z\",\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-18T02:30:47.193Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"name\": \"sqlcrudtest-8179\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "569e6910-cc58-45ed-9cf2-87fae275048f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "32aa5ec5-9597-4718-bb47-17bd765a5d3f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020050Z:32aa5ec5-9597-4718-bb47-17bd765a5d3f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "473e66e2-30c5-4d7b-9408-7ab1d8f97f9b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "0330b104-fb5b-422e-8f1f-217a3ed336c5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020051Z:105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "282" + ], + "x-ms-client-request-id": [ + "7289acb0-5465-4943-843a-eddae3be0631" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "05353717-e7cd-4f00-9cc5-940c2057d1e4" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020306Z:6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "962e801c-278a-4b97-bfb3-2eee33c69176" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "5382801b-4a1e-4d7d-8483-0a97fb97a24c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020106Z:5382801b-4a1e-4d7d-8483-0a97fb97a24c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c6cee747-713e-4cea-b0bf-cf0294440592" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "eead4a70-31a7-4952-bca3-7b00f415872a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020121Z:eead4a70-31a7-4952-bca3-7b00f415872a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e757e59c-b2f0-40ad-92e2-e345cdd6999a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "88c9ad4d-2b50-4416-a19f-dacbee247c5d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020136Z:88c9ad4d-2b50-4416-a19f-dacbee247c5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1a0d68a3-feb0-480e-9053-a40ee36a41d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "164210ad-9569-4ec5-9b45-d208c5cac7a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020151Z:164210ad-9569-4ec5-9b45-d208c5cac7a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3f5ecb06-a42f-46d5-bbe9-d2daf569ac8b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020206Z:a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de606b73-7303-4742-8a45-94a47bd0b5e4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "38aad526-3a7d-407d-9701-baf99fb4571c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020221Z:38aad526-3a7d-407d-9701-baf99fb4571c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fda792c7-ca36-43bc-8703-2eef16666bd1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "35bd6e36-b389-475a-b4b3-b413416cd93e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020236Z:35bd6e36-b389-475a-b4b3-b413416cd93e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c2063be7-f1c4-45b2-8ac7-686eaf45c321" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020251Z:8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5a22d6dc-d845-478b-aa74-a6cb32e5b1df" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "bd59a05b-ac31-4c9f-904f-31065763dca2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020306Z:bd59a05b-ac31-4c9f-904f-31065763dca2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "590c4684-f4d8-40b7-97bb-b555eb94cc37" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020306Z:93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9d6e2867-0265-4420-9c38-728176a4c409" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020321Z:4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2095ed28-3554-49f2-9968-e23424e4c0f4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f3dbcb03-b4b1-4e19-9b9e-1830ef5cc885" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020322Z:1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzIyMzY1Njk3LWRiZWQtNGY5My05ZGNmLWM3OWRmMjJhNjM5Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"22365697-dbed-4f93-9dcf-c79df22a6396\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c7435bdd-7102-435a-9bc2-f3124105f1d6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020321Z:ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ed8eb2c-dcb6-4c93-a617-906d59194b0b" + ], + "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 \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9734ebc3-3f38-4b0d-a96f-2f44a8b4a752" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "52e97a47-950d-4b28-b785-11fc760205a0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020322Z:52e97a47-950d-4b28-b785-11fc760205a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b9d07f8-2f5e-4072-ac57-4105bb5a1c26" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "c08111bc-0c7b-4631-a592-4b4246a82ab8" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "dee0d3b2-2858-4502-91aa-72d2a58184b2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020322Z:dee0d3b2-2858-4502-91aa-72d2a58184b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bbd217a3-0272-4afe-b9b9-622c3bf1a9ee" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "7d7a5de5-b85d-4b9a-b253-44c2ade7c899" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020337Z:7d7a5de5-b85d-4b9a-b253-44c2ade7c899" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "309e4f7a-fb00-4e4a-813b-e7805affef16" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "f89d8874-c01c-49e3-b516-ab4480c1e1d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020352Z:f89d8874-c01c-49e3-b516-ab4480c1e1d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "be93f8b7-4bff-4d22-aa82-24d5f4d10340" + ], + "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": [ + "Fri, 18 May 2018 02:03:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "4c127b84-cff5-4842-9bf1-f3a333540b63" + ], + "x-ms-correlation-request-id": [ + "4c127b84-cff5-4842-9bf1-f3a333540b63" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020353Z:4c127b84-cff5-4842-9bf1-f3a333540b63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5112a7b4-f409-4d33-a55b-f22f54215514" + ], + "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": [ + "Fri, 18 May 2018 02:03:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + ], + "x-ms-correlation-request-id": [ + "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020353Z:d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-1295" + ], + "CreateServer": [ + "sqlcrudtest-9933" + ], + "TestCreateUpdateDropAgent": [ + "sqlcrudtest-8179" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json new file mode 100644 index 0000000000000..128daa1ff9cef --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json @@ -0,0 +1,2879 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "c26214bd-2e71-45ae-b28c-e86a151d2533" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353\",\r\n \"name\": \"sqlcrudtest-1353\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\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": [ + "Fri, 18 May 2018 01:41:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "101f4501-c2a2-4ebc-b54b-361e9742892b" + ], + "x-ms-correlation-request-id": [ + "101f4501-c2a2-4ebc-b54b-361e9742892b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014113Z:101f4501-c2a2-4ebc-b54b-361e9742892b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "c7ee5cb2-11ba-47cd-9aab-238493fc1223" + ], + "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-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:41:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverOperationResults/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "58357293-c42d-470d-beff-38f46339a38a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "e5e0d46c-3839-447f-8f22-357ebaffe647" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014118Z:e5e0d46c-3839-447f-8f22-357ebaffe647" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/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\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:41:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c2878e23-64a3-4d2b-9e57-aed9bcf1650e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "fc4b4fa1-77cf-4d85-a8db-c940986625c4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014128Z:fc4b4fa1-77cf-4d85-a8db-c940986625c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/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\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:41:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "555cdf2a-a76d-47ba-a64e-0637e96f4ea9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014148Z:2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/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\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "82d30827-e55a-4a92-9272-ff0763d6f36c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "32494398-c56d-4836-8afc-7ea5046e2dc8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014209Z:32494398-c56d-4836-8afc-7ea5046e2dc8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-5485.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485\",\r\n \"name\": \"sqlcrudtest-5485\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2aafa819-4574-4184-b71b-4283f479f286" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014209Z:d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "5f824d22-34e6-4777-acc5-5942dfed6147" + ], + "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-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "30fae471-d899-4997-b8ae-b64c94cc3190" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "bd2bb883-1acd-43d3-8023-515d625450fe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014209Z:bd2bb883-1acd-43d3-8023-515d625450fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e4ddf072-d898-4119-996e-944d57898439" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "49ab5021-143c-440f-9801-d10e4fa60d74" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014224Z:49ab5021-143c-440f-9801-d10e4fa60d74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a302a278-6a52-468e-b968-fa392fbe34cd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "791d43c3-7d50-49ad-95bf-469b06e82343" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014240Z:791d43c3-7d50-49ad-95bf-469b06e82343" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3e45db60-3ae7-40e3-9853-9159a1ceae7e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "5a788626-a3dc-4367-b8ac-999c5c247f80" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014255Z:5a788626-a3dc-4367-b8ac-999c5c247f80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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\": \"48d1214c-1fc0-4124-bc8d-9a807a17b589\",\r\n \"creationDate\": \"2018-05-18T01:42:10.133Z\",\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-18T02:12:46.267Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"name\": \"sqlcrudtest-5593\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0d97d751-3df9-4ace-a4dc-fe3a29fe0607" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "cb9d8239-d391-4728-8351-d734d7aaba32" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014255Z:cb9d8239-d391-4728-8351-d734d7aaba32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "d20e94c2-bc8a-4f2a-8b97-937a8138fe84" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "f4d13247-67cb-4d95-9593-d07b28baf249" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "18e995a5-08bc-451b-8d5d-dab39cf2afda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014255Z:18e995a5-08bc-451b-8d5d-dab39cf2afda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6fe8bdca-3b82-4cbc-96f7-fa7bbc9e5fa9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014310Z:408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "711ab149-888f-4d33-b1a9-3eb045a542c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "86ed2140-0eed-492e-945c-f71b463231cb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014325Z:86ed2140-0eed-492e-945c-f71b463231cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cd742402-5a43-4a40-9ff4-0f82cf71736c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "7f6b81fe-5df4-46d9-9609-fe637458d014" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014340Z:7f6b81fe-5df4-46d9-9609-fe637458d014" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "14d728c7-3c4c-4967-b763-227b70e558ef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "b58b2d27-6b01-4077-a6bc-349b145e1d0f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014355Z:b58b2d27-6b01-4077-a6bc-349b145e1d0f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7e20c4ba-9a35-41c3-966c-85e1360c9faf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014410Z:8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "33c2d4e9-f7bb-43bb-a84f-eb3900d06b42" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "1818f11e-fc34-4493-b19e-471f004f626d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014425Z:1818f11e-fc34-4493-b19e-471f004f626d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5e13934e-dd40-4f3d-938d-d0ab3ab1f035" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "18a78067-058b-42fc-95fb-8bdefe770cd3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014440Z:18a78067-058b-42fc-95fb-8bdefe770cd3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8061e8a-16dd-4986-8950-2f47f65bd5d8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014456Z:7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "970ab5b6-a87b-41db-ace0-d45b980d6174" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014511Z:cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "13e7ec33-9de1-4338-a407-5c8200d33dd2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "d06785d8-a587-4d8d-8418-44a59fc3a989" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014526Z:d06785d8-a587-4d8d-8418-44a59fc3a989" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "29769f92-49e0-4d52-8828-695e5cea2c29" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014541Z:c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8aed65ae-0ecc-4103-a0ef-bc09b7eafa2c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "017db22c-adec-4627-bad9-3352a8d04652" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014556Z:017db22c-adec-4627-bad9-3352a8d04652" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fb1d44e-94e2-4f6d-8d1d-e2259ba867f3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "e0132546-fa11-44ff-9268-47caa215a5fa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014611Z:e0132546-fa11-44ff-9268-47caa215a5fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "94dbcf83-a8b7-4cb6-baf4-54416eaf07b7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "afd47af0-30cb-4ede-ad29-e1ac2b714828" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014626Z:afd47af0-30cb-4ede-ad29-e1ac2b714828" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1334ec85-5d38-4983-914a-5f2546596491" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "1016909b-6abe-467e-a012-d99fc888f64c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014641Z:1016909b-6abe-467e-a012-d99fc888f64c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1a22d342-690b-4b4a-918a-95290b7f5bdf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014656Z:b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "12571a82-8ffe-4bda-963e-3623e7d593b4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "f7cace68-9200-4226-b574-1eb376221abc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014711Z:f7cace68-9200-4226-b574-1eb376221abc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "65c6a90a-ecda-4dda-8f53-1566581115cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "c93e620b-143c-4699-ad92-6b6a9fe31bb8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014726Z:c93e620b-143c-4699-ad92-6b6a9fe31bb8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "73afe107-2fb4-40be-922a-ef46fce089b7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "0c9ee65c-56c0-4d30-b7ef-8eb855947def" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014741Z:0c9ee65c-56c0-4d30-b7ef-8eb855947def" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d4cdaaf7-79ee-446d-9fe1-c2af703bf41f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "7cce9455-74c5-410c-9d43-a03f5aedf2b5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014756Z:7cce9455-74c5-410c-9d43-a03f5aedf2b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e13d19c7-1ae9-4ce1-ade0-cc934e543fc3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "b69f297e-6c1d-4412-993a-fbe9145627cb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014811Z:b69f297e-6c1d-4412-993a-fbe9145627cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "801c577b-27a5-4a55-948d-904f9341b997" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "3d815a88-142d-4803-9393-69d0a4de8ef0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014826Z:3d815a88-142d-4803-9393-69d0a4de8ef0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e537c726-e559-427b-ab19-6ac954bcbab6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014841Z:aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "caf342e9-1508-48f0-90aa-efa3cde031a5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "4fa21549-b532-4123-b3d5-1bf15b38e559" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014856Z:4fa21549-b532-4123-b3d5-1bf15b38e559" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bfc4ddf1-f559-4369-919c-4490087effba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "4ba1862b-b5ff-40d6-9319-7265ccc427af" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014911Z:4ba1862b-b5ff-40d6-9319-7265ccc427af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "77507636-4a74-41be-b88b-04e1d20a7f7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "e3c8158b-574f-4857-b159-ef6ddb52bf09" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014926Z:e3c8158b-574f-4857-b159-ef6ddb52bf09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "44c3a1ad-b208-4269-b817-d45c5e546295" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "9378e302-6828-4ddf-abda-8d8c4316bbd1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014941Z:9378e302-6828-4ddf-abda-8d8c4316bbd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8ad531c1-4d06-4ab7-88b2-d806da60bfca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "51133f44-2b90-40a4-aea3-83c9cf625845" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014941Z:51133f44-2b90-40a4-aea3-83c9cf625845" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "259" + ], + "x-ms-client-request-id": [ + "76607653-2da5-49fa-a72a-28f26008f72b" + ], + "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 \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8fc6fa84-92da-4e15-a931-fa9e9020d143" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "65e19b60-3019-4092-88fd-ed1231571a6e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014942Z:65e19b60-3019-4092-88fd-ed1231571a6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "1d442ff8-9d83-4dbb-a6c7-12d396b31d1d" + ], + "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 \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b4eb085d-8b57-4dcf-a26a-29a66efc65c1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "3b52a50a-690f-41a9-8102-b8311250257c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014942Z:3b52a50a-690f-41a9-8102-b8311250257c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e68bea43-223e-498a-b03d-76359c653992" + ], + "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 \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a4757fdd-9efd-4d47-8ea0-6174da6fbb0e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "47af963c-3254-4e40-bce6-4aced83a680f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:47af963c-3254-4e40-bce6-4aced83a680f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9207cb5a-30d2-48cc-a3c0-27888052dee8" + ], + "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": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ade4f528-caa1-47dc-9e96-86830351db94" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ecec2cd-ac26-4bbc-9baa-00e3b8c6dca1" + ], + "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": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + ], + "x-ms-correlation-request-id": [ + "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf85a74a-2d91-40c6-b6c5-df17b6eb4198" + ], + "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": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + ], + "x-ms-correlation-request-id": [ + "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:5dad3535-e16b-4a95-8d01-3890f4eec5b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-1353" + ], + "CreateServer": [ + "sqlcrudtest-5485" + ], + "TestCreateUpdateDropJob": [ + "sqlcrudtest-5593" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json new file mode 100644 index 0000000000000..abbf81537932b --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json @@ -0,0 +1,1598 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "621b70d9-352b-4047-a8d8-d0506757fa5f" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019\",\r\n \"name\": \"sqlcrudtest-3019\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\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": [ + "Fri, 18 May 2018 01:52:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "85df2e85-0599-467d-b74e-06e9e87b4aa4" + ], + "x-ms-correlation-request-id": [ + "85df2e85-0599-467d-b74e-06e9e87b4aa4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015249Z:85df2e85-0599-467d-b74e-06e9e87b4aa4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "3b46b065-e648-4537-8b54-a5a8b9404584" + ], + "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-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "72" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverOperationResults/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "fbce9bfa-e7fc-42b8-aea2-8b0379776ceb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015251Z:8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/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\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6de30668-f08c-4302-9f27-a67c49a7363b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "58df45ba-bbf8-437c-a885-4981eff4d74c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015301Z:58df45ba-bbf8-437c-a885-4981eff4d74c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/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\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:53:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bdbb017f-9b98-4a07-ac10-c419e81af512" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "8d2506c1-5f24-4217-bbf0-faebb456073d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015321Z:8d2506c1-5f24-4217-bbf0-faebb456073d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/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\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:53:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5ba9dda3-35a9-4179-b22d-13d1938a8f69" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015341Z:5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/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\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3e3b81c2-42d3-48bb-a337-82c67ecf259c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015401Z:ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-3052.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052\",\r\n \"name\": \"sqlcrudtest-3052\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cd86cdc6-a466-449c-8312-e202e41b484c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "c80105e8-124b-4632-81a9-db43bf558c9d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015402Z:c80105e8-124b-4632-81a9-db43bf558c9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "f7aa2bc7-ec5f-4740-ad56-b8a08da57a3a" + ], + "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-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "85ba04dc-77b8-4199-8074-1cb930cafb40" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "de60899c-b274-47f1-903c-a6201c468acb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015402Z:de60899c-b274-47f1-903c-a6201c468acb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e283b20a-7bb2-4f93-a4c7-fe216834bafa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015417Z:6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ef0f1fc3-fbad-4609-9bec-4b6b1c984a8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "25acdc81-2078-4da3-bf5a-025861fb8140" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015432Z:25acdc81-2078-4da3-bf5a-025861fb8140" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "62af3461-5a38-4cd5-b7c0-1c720d83c90a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015447Z:ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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\": \"fd8c640c-e139-4de3-957e-4408cd66aa3f\",\r\n \"creationDate\": \"2018-05-18T01:54:02.75Z\",\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-18T02:24:35.527Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"name\": \"sqlcrudtest-5992\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "11c1d299-8d0a-462f-a7d7-79937d2e6cbd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015447Z:9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "8cc6f8fe-1a0a-42a7-be7d-438d2cf2244a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "ec4d3eb3-ccfd-4421-b33e-637cc102c557" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "0370f574-dc64-401e-b2df-e8a9206c5de3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015448Z:0370f574-dc64-401e-b2df-e8a9206c5de3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7e3ee8e1-873b-42a1-85e8-c6c9bdddb348" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "4388afc1-3066-455d-965f-168451c91936" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015503Z:4388afc1-3066-455d-965f-168451c91936" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cfd11f7d-19b6-43a3-9c3c-f2c4427f4fc9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "168137b4-1db0-4407-aa5b-ee196d73660f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015518Z:168137b4-1db0-4407-aa5b-ee196d73660f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bc9066f0-d507-437f-ad74-679b90481264" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "951c4925-c232-4a4c-a60b-d3fbe53d823a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015533Z:951c4925-c232-4a4c-a60b-d3fbe53d823a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "55168349-e7ba-4e98-bdda-f573be8cdd1e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "33635e6b-9322-458b-b91b-23ffe6e1df81" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015548Z:33635e6b-9322-458b-b91b-23ffe6e1df81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cea09f57-1e4f-48d7-adea-30b0dd79eaf7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "653f085c-7f16-4d1c-9db7-77ac86b9e587" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015603Z:653f085c-7f16-4d1c-9db7-77ac86b9e587" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ca1066d4-0ec7-43fa-b6f8-d860d61496db" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "a8da8a69-db03-4022-a7cd-d00a2c805a14" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015603Z:a8da8a69-db03-4022-a7cd-d00a2c805a14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"cloudsa\",\r\n \"password\": \"Yukon900!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "85" + ], + "x-ms-client-request-id": [ + "ce26c2ed-39f1-47b8-b56c-705e27ed2711" + ], + "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 \"username\": \"cloudsa\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "289" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "79007019-754d-4bb0-85f0-e4e735a841b1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015604Z:b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "2806d149-727d-417a-8b80-40d7fbe4bf68" + ], + "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 \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e0c8255f-4a9e-4251-9a7d-314640703f76" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "eb509704-9140-4b6a-b875-e9c0fffe0ff8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015604Z:eb509704-9140-4b6a-b875-e9c0fffe0ff8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "229b53c5-d62e-41d1-907d-22f8bf461e0a" + ], + "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 \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bfc87e0a-f1f5-4073-a24e-79f1825de53c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "863d1a96-099c-4550-b0ad-ac971ed85159" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015605Z:863d1a96-099c-4550-b0ad-ac971ed85159" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "be0f55b2-dcfa-4d64-84ae-24c62ad15656" + ], + "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": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "13fd1eff-e139-43a9-97fc-d139455062b3" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "edc5833f-58ae-409c-ad5e-78b56c2b8175" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015605Z:edc5833f-58ae-409c-ad5e-78b56c2b8175" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "093e03bf-82b7-4329-96a2-e016aa0ffada" + ], + "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": [ + "Fri, 18 May 2018 01:56:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + ], + "x-ms-correlation-request-id": [ + "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015606Z:4a4700a4-1a26-47a6-ab65-ad129a8ce527" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "22d525f7-d50d-422c-a151-b746c38b8baa" + ], + "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": [ + "Fri, 18 May 2018 01:56:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "868e8101-8302-4c94-ae25-acb96c26a65f" + ], + "x-ms-correlation-request-id": [ + "868e8101-8302-4c94-ae25-acb96c26a65f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015606Z:868e8101-8302-4c94-ae25-acb96c26a65f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-3019" + ], + "CreateServer": [ + "sqlcrudtest-3052" + ], + "TestCreateUpdateDropJobCredential": [ + "sqlcrudtest-5992" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json new file mode 100644 index 0000000000000..4d81e551efa6d --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json @@ -0,0 +1,1738 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "5f70a9d2-1bc3-482c-b970-704e8e730577" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280\",\r\n \"name\": \"sqlcrudtest-8280\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\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": [ + "Fri, 18 May 2018 01:49:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "1014406f-9a29-421a-bcd8-4788a969e242" + ], + "x-ms-correlation-request-id": [ + "1014406f-9a29-421a-bcd8-4788a969e242" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014948Z:1014406f-9a29-421a-bcd8-4788a969e242" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "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": [ + "2eb29fcd-9f9b-46a4-8dd5-a5d999b475ea" + ], + "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-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverOperationResults/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "6e785afc-cb07-4e53-afaf-39ab28034920" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014950Z:1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/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\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8edc8344-b7fb-4a61-a3cd-a9d98d8e4b61" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "534561d0-6563-4ff5-9a28-a238c12c7600" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015000Z:534561d0-6563-4ff5-9a28-a238c12c7600" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/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\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "15d66bb2-4ee0-4de5-b1e3-dcc74865c837" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015020Z:19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/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\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "07681f60-7586-4231-8262-aebd16c28cba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015040Z:6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "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-70.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70\",\r\n \"name\": \"sqlcrudtest-70\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fd3cffc-eeaa-4efd-8b46-c63e9cf520db" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "6a4d4e60-e0c4-449d-a987-e8ce53848022" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015040Z:6a4d4e60-e0c4-449d-a987-e8ce53848022" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": [ + "42605303-5c23-4839-8681-f8b6daa2788a" + ], + "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-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "5a3ea1c2-6576-403c-b0ba-8ec1f778e58d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015041Z:9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4a8cac52-96a6-4472-b92a-8e1d9b340cef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "b905f245-b4f0-426e-acf9-48c73d4a75e6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015056Z:b905f245-b4f0-426e-acf9-48c73d4a75e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c76db829-4891-4942-b5c2-052fdd4867b9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "ea4e371f-c051-4679-996e-2f10c9b029ef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015111Z:ea4e371f-c051-4679-996e-2f10c9b029ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c9b32992-0881-4b31-92d0-01e9793cb02e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015126Z:d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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\": \"7a645adf-4ce2-438b-bb7b-99ef97fcb20c\",\r\n \"creationDate\": \"2018-05-18T01:50:41.847Z\",\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-18T02:21:19.207Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"name\": \"sqlcrudtest-5536\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6fa9ee64-5ef9-4f02-a58f-c2227a62a3e1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "57b630b6-cc3a-4500-a800-58beda2f90cc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015126Z:57b630b6-cc3a-4500-a800-58beda2f90cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "233" + ], + "x-ms-client-request-id": [ + "0050b407-3752-4777-8899-eee1a5b96f88" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "7f923ca2-c13e-4e09-bf7a-c11a44a128bd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "be311460-b3a6-4a73-968f-46f36fb33ef5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015127Z:be311460-b3a6-4a73-968f-46f36fb33ef5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8385e82c-4146-4d33-ac26-d32afc653ec0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015142Z:bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ede5d092-8233-4c7f-8282-147205fd5e33" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015157Z:cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "453fd724-a56d-4b13-b406-9251d72ab390" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015213Z:f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e4f5c365-4c83-455a-8f1d-bb385252b721" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "0f43634a-414a-401a-878e-b0d20e692bcc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015228Z:0f43634a-414a-401a-878e-b0d20e692bcc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8aa34515-50bb-4019-b534-b43a78d378f9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "59956930-e5dd-4302-b829-e10d1ffe45fa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015243Z:59956930-e5dd-4302-b829-e10d1ffe45fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de287e13-6eb0-4968-a332-a9d22bb31972" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015243Z:3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvY3JlZGVudGlhbHMvZHVtbXlsb2dpbj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "5c981184-6e05-42f2-8de8-3c7d15c28db8" + ], + "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 \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0f45d530-59ca-4b9c-9dc7-c938fb21b753" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015243Z:9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvdGFyZ2V0R3JvdXBzL3RnMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "382" + ], + "x-ms-client-request-id": [ + "b85db771-1179-4c83-8fa9-9575d64ef0c2" + ], + "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 \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "536" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a7b9decd-bc91-4c6c-a8a6-c42804ddbb22" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015244Z:fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "fec1092a-c3fe-47e0-b138-69f4e4fa85b9" + ], + "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 \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "395" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "298c4c5f-bf8f-4b6a-85b2-e02cfeb85b8a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "15ed289a-1aea-4512-9f62-683045886241" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015244Z:15ed289a-1aea-4512-9f62-683045886241" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "458" + ], + "x-ms-client-request-id": [ + "ad24e4af-75b9-4d8a-a715-5c0178123dbd" + ], + "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 \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "863" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "43024d33-19fb-4bb0-94ec-ccd1b26b781a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "9fce6364-5342-4bf2-b343-065bb5b4eb5d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015245Z:9fce6364-5342-4bf2-b343-065bb5b4eb5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1197" + ], + "x-ms-client-request-id": [ + "9b6614e0-4897-4365-8584-8f7d29f697d3" + ], + "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 \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c9246d29-daf3-4658-8d7c-1729e012680e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "554a1267-54af-4305-974b-ace34f7e5ad7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015246Z:554a1267-54af-4305-974b-ace34f7e5ad7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "68501a29-a61c-40dd-8ac4-1de265a3f83c" + ], + "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 \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "552adf15-400e-44bd-b9be-3089309a18a4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "21bed326-906a-4eaa-a9da-668fa3736795" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015246Z:21bed326-906a-4eaa-a9da-668fa3736795" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e898082-2d26-47ba-a0e2-651adf9b7c95" + ], + "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": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "65fbdfe4-99ee-42f9-979b-b1d4be5fd069" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "e6324b08-9fe8-4af7-8960-558602da097a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015246Z:e6324b08-9fe8-4af7-8960-558602da097a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b96a71c-7273-48ef-b9af-7d69a6f4f77b" + ], + "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": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "51fa52af-2017-421f-86b5-75149d0ec40e" + ], + "x-ms-correlation-request-id": [ + "51fa52af-2017-421f-86b5-75149d0ec40e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015247Z:51fa52af-2017-421f-86b5-75149d0ec40e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "66a7520a-e15c-4086-9f6d-74e7ce1df4dd" + ], + "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": [ + "Fri, 18 May 2018 01:52:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "204bab47-8838-44f8-91f7-4ce797ca1e18" + ], + "x-ms-correlation-request-id": [ + "204bab47-8838-44f8-91f7-4ce797ca1e18" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015247Z:204bab47-8838-44f8-91f7-4ce797ca1e18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8280" + ], + "CreateServer": [ + "sqlcrudtest-70" + ], + "TestCreateUpdateDropJobStep": [ + "sqlcrudtest-5536" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json new file mode 100644 index 0000000000000..311d69edb1301 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json @@ -0,0 +1,1726 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "9b294804-0b29-4f7d-807d-2c3d180d4644" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439\",\r\n \"name\": \"sqlcrudtest-8439\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\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": [ + "Fri, 18 May 2018 02:08:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "591e1ddd-ab10-4051-af74-0fc1e173b05f" + ], + "x-ms-correlation-request-id": [ + "591e1ddd-ab10-4051-af74-0fc1e173b05f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020856Z:591e1ddd-ab10-4051-af74-0fc1e173b05f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "f5d4157c-690f-4a47-9f93-1cf205d58060" + ], + "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-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverOperationResults/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "1ba5103e-f115-4bca-bb0e-ad4987ac5e3f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "02b70de8-a117-4ed1-b94d-357d6da7dedb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020901Z:02b70de8-a117-4ed1-b94d-357d6da7dedb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/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\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2fb917cf-801e-4e49-94a0-584b3f7e0c0f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "9e9ae5ed-2680-40ca-90db-576ab89d8708" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020911Z:9e9ae5ed-2680-40ca-90db-576ab89d8708" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/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\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e3d98f4-fef0-459c-86d7-ee419daff3dc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "fe27887b-9403-4ef3-8397-4386d5d973bf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020931Z:fe27887b-9403-4ef3-8397-4386d5d973bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/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\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "26c34bbe-e5fb-4390-a0a3-a88cea41cc62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "388a853f-f340-472f-bbbc-fb2fb1fe1d17" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020951Z:388a853f-f340-472f-bbbc-fb2fb1fe1d17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-9682.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682\",\r\n \"name\": \"sqlcrudtest-9682\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a8bfab4d-0c80-4368-bed2-327a2734fbb3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "fad56f04-36d5-4adb-9508-1a01905f6074" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020951Z:fad56f04-36d5-4adb-9508-1a01905f6074" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "50e9ab21-7745-4ac3-ad13-524d9f7d702f" + ], + "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-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "665d8040-3056-4d89-ac9c-501cc346792c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c42df404-d534-4513-998a-663e77c7a1a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020953Z:c42df404-d534-4513-998a-663e77c7a1a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a113ea25-5c32-481f-8b82-11d29999e3d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "87923036-a16f-4b5f-8df1-f2da272eeae9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021008Z:87923036-a16f-4b5f-8df1-f2da272eeae9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8075ae56-5932-430b-8c0a-2208b7f50a4e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021023Z:0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "faf03d7f-c54f-4bc9-b999-e52754b4be3a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "02f4d2da-d956-449c-8605-7514a63e8308" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021038Z:02f4d2da-d956-449c-8605-7514a63e8308" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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\": \"0c1971af-c80b-40af-aef7-b15a1fd9e008\",\r\n \"creationDate\": \"2018-05-18T02:09:53.273Z\",\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-18T02:40:33.04Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"name\": \"sqlcrudtest-6658\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8fb1931b-b941-41f9-9b98-a7015edfbc5f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "4d14e362-2526-4ebf-aa72-79376e39c448" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021038Z:4d14e362-2526-4ebf-aa72-79376e39c448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "b0fecd09-8f58-4881-bb50-99d50257ce12" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "ffe52cea-2a9a-4732-aff0-90b5c99bdd8b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "f1988fe5-a740-44bf-a774-7562d35d1f6d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021039Z:f1988fe5-a740-44bf-a774-7562d35d1f6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "80efc866-825c-4293-936d-cddc8a3f1896" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "7cb9de30-074d-486c-a3f7-33cc8b3edb66" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021054Z:7cb9de30-074d-486c-a3f7-33cc8b3edb66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fd41e475-68a0-455b-9a41-1b0e718d5043" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "3df93709-4900-402e-934f-f54cb39cec4a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021109Z:3df93709-4900-402e-934f-f54cb39cec4a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bd273ef5-c5c4-47ea-abed-6146f2117412" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021124Z:da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3a2e5d87-a2c7-4e93-a304-8d8fd6fc47da" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "bd217bda-45f0-4202-bf0d-e89e1328467c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021139Z:bd217bda-45f0-4202-bf0d-e89e1328467c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3917201e-6d13-4dbd-8728-f015f600b02c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "c12b2b47-460e-48fe-b61f-8833122249e1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021154Z:c12b2b47-460e-48fe-b61f-8833122249e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "13f269e0-a8cb-4a99-9af5-92d74e51877b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "c4522743-f02d-441e-bd92-e9d242b28be4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021209Z:c4522743-f02d-441e-bd92-e9d242b28be4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d0b58104-795a-407b-ae03-d7529c6d3cea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "8509015d-97b7-43dd-b4dc-2ebb5d134534" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021224Z:8509015d-97b7-43dd-b4dc-2ebb5d134534" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "49ae86f1-2699-4d2d-9cf0-36378c0f7f2b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021224Z:9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "fc46c53a-ec48-4edf-b662-45e406f619de" + ], + "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 \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "011dfa85-578a-413c-a3f0-700f4ea8fe02" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "8d245ae9-f27b-4acb-ad03-af9a898704a1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021226Z:8d245ae9-f27b-4acb-ad03-af9a898704a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "372" + ], + "x-ms-client-request-id": [ + "56df17b1-3976-4628-b176-21c0ea3b8d3b" + ], + "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 \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "528" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ec4840fe-2b35-4f2f-b209-0959ab5bb70d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021226Z:1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1267" + ], + "x-ms-client-request-id": [ + "2c2ac406-3fef-428a-81e6-fa8e46d75db1" + ], + "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 \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d94c9f3a-81a8-4e50-8f35-c205dc8ba20e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "c3cd44bb-00be-4663-a42a-7fe8be68f418" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:c3cd44bb-00be-4663-a42a-7fe8be68f418" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a5e168d-344c-4eff-a4ae-ce243f05afbe" + ], + "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 \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8ea896a8-0449-427e-9ffb-f2cc3dbc028e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4b0b76a4-dd0a-4ee7-9db0-a70997ca9715" + ], + "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": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ac65e6b0-773d-4a17-8f10-aaf6a376c123" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "26776d95-65b2-4243-95ab-4075aacfdd94" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:26776d95-65b2-4243-95ab-4075aacfdd94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e56fe0e-1efb-4924-98fb-74fdd9210f41" + ], + "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": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "644f08d8-3c28-4568-b310-c9181b8aaf1f" + ], + "x-ms-correlation-request-id": [ + "644f08d8-3c28-4568-b310-c9181b8aaf1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:644f08d8-3c28-4568-b310-c9181b8aaf1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "85d1950f-76a0-4c39-ad4f-9da5cfb68450" + ], + "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": [ + "Fri, 18 May 2018 02:12:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + ], + "x-ms-correlation-request-id": [ + "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021228Z:41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8439" + ], + "CreateServer": [ + "sqlcrudtest-9682" + ], + "TestCreateUpdateDropTargetGroup": [ + "sqlcrudtest-6658" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json new file mode 100644 index 0000000000000..2b0da26b149f6 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json @@ -0,0 +1,2738 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "06e2580b-7e7c-4562-8a83-34e9b9dda01e" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276\",\r\n \"name\": \"sqlcrudtest-7276\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\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": [ + "Fri, 18 May 2018 03:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "75b687e7-ee3c-4263-aa1e-022cff90deae" + ], + "x-ms-correlation-request-id": [ + "75b687e7-ee3c-4263-aa1e-022cff90deae" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030405Z:75b687e7-ee3c-4263-aa1e-022cff90deae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "fc894820-5f49-412d-a7c2-8441841577de" + ], + "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-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "e5ec2759-c49a-4708-9639-0d603c57ef0c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030408Z:6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "01944712-5784-460b-9a58-488e83deb636" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "d818ba5c-16d6-43da-9d27-a098e9de55d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030418Z:d818ba5c-16d6-43da-9d27-a098e9de55d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "11c4face-b9cc-4f4b-bf92-9adca285fc47" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "2cf39562-13ef-4545-b327-4678945d2ffc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030438Z:2cf39562-13ef-4545-b327-4678945d2ffc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eb6ad01f-1588-475e-bdf3-0480bb80281f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "dbb97c39-499b-43de-8468-06ff8bf4f3ca" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030458Z:dbb97c39-499b-43de-8468-06ff8bf4f3ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:05:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fceda5bf-dea0-469f-a5f8-3bc30ddc72d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "933e215c-8409-4977-87cd-eca233d62136" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030518Z:933e215c-8409-4977-87cd-eca233d62136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:05:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8688d426-c5b1-43d4-8e8b-61c4569a0029" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "5f438d54-e463-4a8f-9494-dac531d50e06" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030534Z:5f438d54-e463-4a8f-9494-dac531d50e06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:05:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f1ae494c-5d7f-4f78-8cd8-a8e7f5489d7d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030549Z:e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "902f57a8-dc42-487e-9150-3abb197cec1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "7297f647-01ac-4a0d-b85f-c3312b204e29" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030604Z:7297f647-01ac-4a0d-b85f-c3312b204e29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-7378.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378\",\r\n \"name\": \"sqlcrudtest-7378\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "72bcaaaa-2153-463b-9ef9-1771a97359e4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "660d544f-5180-450b-ba0c-efaa332394c7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030604Z:660d544f-5180-450b-ba0c-efaa332394c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ], + "x-ms-client-request-id": [ + "bd170b63-da64-4ea6-9b17-af0ff1732a80" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "340" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:04 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f9e1e810-36f5-4e2b-abf4-a44b52349e26" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030605Z:03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "c27301cb-ae45-43cb-a631-dec6b1ced66a" + ], + "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-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "d659f7c3-ead5-4a2f-8b4d-14c0b82a417b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "5cd10198-1cd0-4803-8cd2-156ef27c4877" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030605Z:5cd10198-1cd0-4803-8cd2-156ef27c4877" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a5436133-f50d-4e17-a18c-f00746e9aa09" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "2f761f92-a228-4b7b-9b78-9374d3e04df5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030620Z:2f761f92-a228-4b7b-9b78-9374d3e04df5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5d5e8c58-194a-48cb-91b9-bb03d0473bc9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "ccf7c356-2420-48b5-890b-da9b298994dc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030635Z:ccf7c356-2420-48b5-890b-da9b298994dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cba8c9d1-bae4-4834-8a4c-212ea730b309" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "f244d856-11b6-4673-bc6f-16f701201227" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030651Z:f244d856-11b6-4673-bc6f-16f701201227" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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\": \"d2fead04-a3d4-4699-8a9a-8185f60d179c\",\r\n \"creationDate\": \"2018-05-18T03:06:06.107Z\",\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-18T03:36:39.083Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"name\": \"sqlcrudtest-1280\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "11c6bfd6-2a2b-421f-bbdd-27f40705ae24" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "4ab063ad-0696-4d5f-956b-c484f0c54046" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030651Z:4ab063ad-0696-4d5f-956b-c484f0c54046" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "3aba23a6-dbf5-488d-b410-5e2c32fea208" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "cbc9efba-8c21-40b5-8868-6c24e287c408" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030651Z:a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f906e787-f3ad-4228-92b0-c9d5f65e2bd3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "e6f1213a-bfcd-40a2-b35e-31e6172d2a39" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030706Z:e6f1213a-bfcd-40a2-b35e-31e6172d2a39" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1bee5de9-88f4-4843-a657-e3cbef065746" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "f3989880-18b0-456d-a4f0-479c466244e8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030721Z:f3989880-18b0-456d-a4f0-479c466244e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "20fcbc60-8408-4178-a47b-ed334245f261" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "4fdfe6b4-462b-43bd-9362-b543b368d948" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030736Z:4fdfe6b4-462b-43bd-9362-b543b368d948" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8395b813-6f85-441d-9d5e-6e6809070e5a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "fcb1e9d8-6771-4404-a3c0-38f931098283" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030751Z:fcb1e9d8-6771-4404-a3c0-38f931098283" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b51b6e43-3e96-460a-8c0d-16182b253748" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "e584dfbd-088d-47eb-a656-2d47a290fbf7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030806Z:e584dfbd-088d-47eb-a656-2d47a290fbf7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "99a99280-b952-4728-b365-3b6ddfd437cb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030821Z:1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e5ce4f8-948f-4fd2-a3aa-2419e25b6347" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "08d00152-259f-4b5a-981a-4c28799ff364" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030836Z:08d00152-259f-4b5a-981a-4c28799ff364" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5073333d-033e-4b73-b5d2-b23d02db681d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "2e595697-bb17-47d0-b0a8-8ed875a09901" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030851Z:2e595697-bb17-47d0-b0a8-8ed875a09901" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eea29f5c-8d10-4ffb-be6f-0b28962fc67a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030851Z:f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "4ef165af-86fb-4260-b3ec-9b90a73f8eed" + ], + "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 \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8489e2d8-16b7-4ad2-8333-25888a70307e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "6444b11c-9607-474a-a4c3-c32d5e8c1084" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030852Z:6444b11c-9607-474a-a4c3-c32d5e8c1084" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "228" + ], + "x-ms-client-request-id": [ + "eda93ee6-7cf3-4f3a-b947-80c9905079a0" + ], + "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 \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "12629311-abbb-4b82-9321-43c174b1177b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "d13ac651-9f45-4ea2-bfd0-87294cb94f71" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030853Z:d13ac651-9f45-4ea2-bfd0-87294cb94f71" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "6521ae74-9785-4820-a1e7-fc50d1ba5438" + ], + "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 \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "397" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "403e8a7e-cfcf-4683-a9f2-1c9a83afc1cb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030853Z:249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "462" + ], + "x-ms-client-request-id": [ + "df314c76-2558-4ee8-8365-722a86c2abe2" + ], + "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 \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "869" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "560b19c6-ef5c-4ac7-9975-102cd5acc129" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "8441cec9-0366-450f-b2e8-36a630090cb9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030854Z:8441cec9-0366-450f-b2e8-36a630090cb9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "efe04e21-67ac-46fe-b009-6367d3dc6936" + ], + "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 \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c0dd9f6c-c120-4718-be21-2e802c20e891" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030854Z:a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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 \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1aaf74da-e6db-451d-b933-5e6261f37050" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "55c2f2e7-723d-4ace-b142-0878cc76578d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:55c2f2e7-723d-4ace-b142-0878cc76578d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7741005f-1c07-4a15-897b-3f981ebe965a" + ], + "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 \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "22a9c67c-69bf-48c3-bef5-aa5222646486" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "7149e253-fade-414e-95fc-7cf642d95870" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:7149e253-fade-414e-95fc-7cf642d95870" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3e343e0b-d6fc-448d-b8cb-70b038afb94e" + ], + "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 \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f5eb320d-3dad-4d6f-9a75-635b53b98db3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "c7e095f6-c949-4df5-8dea-08e75765ab4b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:c7e095f6-c949-4df5-8dea-08e75765ab4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd981b90-b033-4995-8b97-870b853e1629" + ], + "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 \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8d43973d-b471-4c55-a6b2-0699996ad26d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b46faeb8-dfd4-4927-a291-dd132d337588" + ], + "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 \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6861abfb-6488-4289-8bfc-1d8d5a251e59" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-correlation-request-id": [ + "b6c8f168-aca8-4777-b14a-27b7b90f9509" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:b6c8f168-aca8-4777-b14a-27b7b90f9509" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eedbbf9a-b685-4aa3-a9c4-3f676a77b2f5" + ], + "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 \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f05bcc22-8fef-466b-9878-15f9e7b9865d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-correlation-request-id": [ + "742706d2-65f4-417f-b29c-ae264cc654e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:742706d2-65f4-417f-b29c-ae264cc654e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "defa2fb7-5b68-43c7-a70e-65099779f5f8" + ], + "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 \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "313422cf-3f1d-4c9f-898e-f5400fe89545" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a4b1e561-88f4-4b87-9414-72e002423589" + ], + "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 \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7bcf4668-8701-47f6-94e9-5c35cb807b0d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-correlation-request-id": [ + "f455572b-306d-4efb-ae04-c02ece9c27e6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:f455572b-306d-4efb-ae04-c02ece9c27e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cy8wODgxNmQ0NS1lMmZiLTRlNGEtOWQ2Yi02N2I2ZjA3NDk5Mzc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8dd79bb5-fc8f-40d1-828f-5384ec9e3586" + ], + "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 \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d161fa9e-7d0b-4b32-bb21-0ec90bb82bfc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/cancel?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "afb8c9d6-c24d-4242-a99f-201c8f411aa1" + ], + "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": [ + "Fri, 18 May 2018 03:09:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2c0e85ea-2d58-4995-b9da-2d59df10b4fd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "e2b8c979-4d08-44c2-83fc-1785c370a602" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030927Z:e2b8c979-4d08-44c2-83fc-1785c370a602" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "969a5928-112b-4b0c-b7ce-b975b6f89a51" + ], + "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": [ + "Fri, 18 May 2018 03:09:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + ], + "x-ms-correlation-request-id": [ + "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030929Z:233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "80e7614c-6c19-46c2-ba9c-f5dd46cf4d10" + ], + "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": [ + "Fri, 18 May 2018 03:09:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + ], + "x-ms-correlation-request-id": [ + "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030929Z:cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-7276" + ], + "CreateServer": [ + "sqlcrudtest-7378" + ], + "TestStartStopGetJobExecution": [ + "sqlcrudtest-1280" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file From c5b67c12b0c1faa367b7bb9fae1a0784a5ad599a Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Fri, 18 May 2018 15:39:39 -0700 Subject: [PATCH 14/26] Updating .csproj and AssemblyInfo.cs to 1.16.0 and re-recorded tests. Updated tests based on feedback --- .../Microsoft.Azure.Management.Sql.csproj | 11 +- .../Management.Sql/Properties/AssemblyInfo.cs | 6 +- .../TestCreateUpdateDropAgent.json | 752 ++++---- .../TestCreateUpdateDropJob.json | 1678 +++-------------- .../TestCreateUpdateDropJobCredential.json | 562 +++--- .../TestCreateUpdateDropJobStep.json | 640 ++++--- .../TestCreateUpdateDropTargetGroup.json | 533 +++--- .../TestStartStopGetJobExecution.json | 1121 ++++------- .../SqlManagement/Sql.Tests/Sql.Tests.csproj | 2 +- .../SqlDatabaseAgentScenarioTests.cs | 61 +- 10 files changed, 1746 insertions(+), 3620 deletions(-) diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj index 472a64da17da2..de5bcc651d9e2 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 fe4eb9a8d972b..5373256cc58e0 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs @@ -22,8 +22,4 @@ [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")] \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json index cc14474b82e36..5c7a6de253b4e 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3225?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMyMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3225\": \"2018-05-18 22:23:23Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "dcf05856-c1ee-4384-838c-ecafa3350f25" + "995c5157-3005-4585-812d-07c3701b6091" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295\",\r\n \"name\": \"sqlcrudtest-1295\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225\",\r\n \"name\": \"sqlcrudtest-3225\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3225\": \"2018-05-18 22:23:23Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:11 GMT" + "Fri, 18 May 2018 22:23:23 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "7b982390-cf45-4452-aae1-99c06addf33d" + "04bcd53c-9184-419d-9e52-5f6f48a8d9bb" ], "x-ms-correlation-request-id": [ - "7b982390-cf45-4452-aae1-99c06addf33d" + "04bcd53c-9184-419d-9e52-5f6f48a8d9bb" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015911Z:7b982390-cf45-4452-aae1-99c06addf33d" + "WESTUS2:20180518T222324Z:04bcd53c-9184-419d-9e52-5f6f48a8d9bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,17 +77,17 @@ "183" ], "x-ms-client-request-id": [ - "0a66403d-e555-402d-999d-80eaffdb5b0c" + "0a23740d-52ef-4db0-8ab6-a502a9e748b8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:13 GMT" + "Fri, 18 May 2018 22:23:28 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverOperationResults/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverOperationResults/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "7aeae671-9ca3-4902-8b54-87533b2973b1" + "107af3cf-1445-4ef4-9058-fbfc8c9c9f72" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1199" ], "x-ms-correlation-request-id": [ - "793881ea-6257-4b7b-b11b-ff0b504b99da" + "8322e13f-489c-49ce-89da-f51192303fc0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015914Z:793881ea-6257-4b7b-b11b-ff0b504b99da" + "WESTUS2:20180518T222328Z:8322e13f-489c-49ce-89da-f51192303fc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xMDdhZjNjZi0xNDQ1LTRlZjQtOTA1OC1mYmZjOGM5YzlmNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"107af3cf-1445-4ef4-9058-fbfc8c9c9f72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:23 GMT" + "Fri, 18 May 2018 22:23:38 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0d4229dc-59cb-4653-83b4-110c975719e1" + "216e3fc2-2345-4948-8ed9-49084c75824f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14998" ], "x-ms-correlation-request-id": [ - "102790ed-d0a0-47ac-84f8-a321e261dd2d" + "8f2dad78-a83f-455f-bdce-48dedee4b295" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015924Z:102790ed-d0a0-47ac-84f8-a321e261dd2d" + "WESTUS2:20180518T222338Z:8f2dad78-a83f-455f-bdce-48dedee4b295" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xMDdhZjNjZi0xNDQ1LTRlZjQtOTA1OC1mYmZjOGM5YzlmNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"107af3cf-1445-4ef4-9058-fbfc8c9c9f72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:43 GMT" + "Fri, 18 May 2018 22:23:58 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b4339f34-d041-40c2-828b-eded80479cf1" + "b83dd2bb-268f-41bd-bb85-3a8c6e27a634" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14997" ], "x-ms-correlation-request-id": [ - "9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + "4b39a4ae-62df-404d-82a4-07ef5763a4ad" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015944Z:9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + "WESTUS2:20180518T222358Z:4b39a4ae-62df-404d-82a4-07ef5763a4ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xMDdhZjNjZi0xNDQ1LTRlZjQtOTA1OC1mYmZjOGM5YzlmNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"107af3cf-1445-4ef4-9058-fbfc8c9c9f72\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:04 GMT" + "Fri, 18 May 2018 22:24:18 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "83de2251-a075-4d19-ba60-79bb1afb4714" + "7cc1e679-117c-48c1-8900-b825e9730961" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14996" ], "x-ms-correlation-request-id": [ - "09d33a65-47c4-4fa3-970c-ec5f29025893" + "8865f0d1-e68a-47c1-aa8d-a57d5a6d1064" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020004Z:09d33a65-47c4-4fa3-970c-ec5f29025893" + "WESTUS2:20180518T222418Z:8865f0d1-e68a-47c1-aa8d-a57d5a6d1064" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-9933.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933\",\r\n \"name\": \"sqlcrudtest-9933\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-1881.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881\",\r\n \"name\": \"sqlcrudtest-1881\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:04 GMT" + "Fri, 18 May 2018 22:24:18 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "390c6619-324e-4b8a-ae5f-f99558a4db15" + "9eb9b3eb-1960-4378-a85c-d2e1057a9c8e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14995" ], "x-ms-correlation-request-id": [ - "9356c880-eb42-4630-9bc6-7b681efbc478" + "7d442e1e-08be-420f-94f8-20ae1ab05b91" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020004Z:9356c880-eb42-4630-9bc6-7b681efbc478" + "WESTUS2:20180518T222419Z:7d442e1e-08be-420f-94f8-20ae1ab05b91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDAzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,17 +394,17 @@ "29" ], "x-ms-client-request-id": [ - "63c35777-7cc2-4486-a094-7e36ee1be8c7" + "b2d00ce6-c9d5-4f0f-b51f-c83aa8d58b4b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "75" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:05 GMT" + "Fri, 18 May 2018 22:24:19 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "c98ffbe1-5516-4d2c-95b8-08801bd3bd6c" + "e4d6734f-fa36-427b-a658-4a1b1974862c" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1198" ], "x-ms-correlation-request-id": [ - "8554f92c-fcd5-444b-be38-936131b0ba51" + "962422c1-8c23-4100-8f9b-5d4acc89bab6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020005Z:8554f92c-fcd5-444b-be38-936131b0ba51" + "WESTUS2:20180518T222419Z:962422c1-8c23-4100-8f9b-5d4acc89bab6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:20 GMT" + "Fri, 18 May 2018 22:24:34 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0ed0cbf9-843c-46bb-aa63-95bfd18502b9" + "6ae0c043-c884-4c2e-8c0f-e3814e687c56" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14994" ], "x-ms-correlation-request-id": [ - "90257434-8595-4b95-81fd-3463f0ba27ef" + "40738475-9ec7-49de-a596-1844b4426ed4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020020Z:90257434-8595-4b95-81fd-3463f0ba27ef" + "WESTUS2:20180518T222434Z:40738475-9ec7-49de-a596-1844b4426ed4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:34 GMT" + "Fri, 18 May 2018 22:24:49 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "95b9989d-680c-42d6-ab27-e6e80183179e" + "5a3e7c2d-adf0-4bb2-a076-44138d0fa2d9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14993" ], "x-ms-correlation-request-id": [ - "b552f6fa-7e3f-466a-b56b-c6d7d7411136" + "b26a9500-3fa4-43db-8268-b656a84337ce" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020035Z:b552f6fa-7e3f-466a-b56b-c6d7d7411136" + "WESTUS2:20180518T222449Z:b26a9500-3fa4-43db-8268-b656a84337ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:49 GMT" + "Fri, 18 May 2018 22:25:04 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "813e6414-b726-4dca-8225-a7fc4c46ac07" + "ecf3da26-5939-4d7d-9782-b0a10c9e054f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14993" ], "x-ms-correlation-request-id": [ - "e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + "579808e1-08e2-4b51-aca5-8dd13f92da97" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020050Z:e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + "WESTUS2:20180518T222504Z:579808e1-08e2-4b51-aca5-8dd13f92da97" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"71eb4c36-ef7b-4da0-94b4-816ec6fa8a92\",\r\n \"creationDate\": \"2018-05-18T02:00:07.703Z\",\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-18T02:30:47.193Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"name\": \"sqlcrudtest-8179\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:49 GMT" + "Fri, 18 May 2018 22:25:19 GMT" ], "Pragma": [ "no-cache" @@ -671,6 +671,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -678,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "569e6910-cc58-45ed-9cf2-87fae275048f" + "bb94c5b8-8d50-4598-9224-9c27ae7c36d5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14992" ], "x-ms-correlation-request-id": [ - "32aa5ec5-9597-4718-bb47-17bd765a5d3f" + "f5fba5d4-fa38-4e11-a70f-d342152667df" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020050Z:32aa5ec5-9597-4718-bb47-17bd765a5d3f" + "WESTUS2:20180518T222519Z:f5fba5d4-fa38-4e11-a70f-d342152667df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,33 +702,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDAzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "235" - ], - "x-ms-client-request-id": [ - "473e66e2-30c5-4d7b-9408-7ab1d8f97f9b" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "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\": \"40c23413-f2b8-4d17-ac08-4f8d2553dd44\",\r\n \"creationDate\": \"2018-05-18T22:24:20.203Z\",\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-18T22:55:04.673Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"name\": \"sqlcrudtest-5003\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "71" - ], "Content-Type": [ "application/json; charset=utf-8" ], @@ -736,34 +724,31 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:51 GMT" + "Fri, 18 May 2018 22:25:19 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" - ], - "Retry-After": [ - "15" + "Transfer-Encoding": [ + "chunked" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" + "Vary": [ + "Accept-Encoding" ], "x-ms-request-id": [ - "0330b104-fb5b-422e-8f1f-217a3ed336c5" + "e4f437c9-9af4-4a42-94f2-f9935481abb4" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" ], "x-ms-correlation-request-id": [ - "105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + "53c9ab91-1db6-44df-a0e5-003d56f40c2f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020051Z:105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + "WESTUS2:20180518T222519Z:53c9ab91-1db6-44df-a0e5-003d56f40c2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -772,32 +757,32 @@ "nosniff" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "282" + "235" ], "x-ms-client-request-id": [ - "7289acb0-5465-4943-843a-eddae3be0631" + "7c562501-3633-414a-9b52-d79724dc1dee" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -812,13 +797,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:06 GMT" + "Fri, 18 May 2018 22:25:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -827,19 +812,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "05353717-e7cd-4f00-9cc5-940c2057d1e4" + "c0c39577-0d57-4a0a-a0aa-447c11b89443" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1197" ], "x-ms-correlation-request-id": [ - "6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + "86c60fd5-ac79-49a0-a954-53e511fc6aed" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020306Z:6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + "WESTUS2:20180518T222520Z:86c60fd5-ac79-49a0-a954-53e511fc6aed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -851,79 +836,33 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", - "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 02:01:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "962e801c-278a-4b97-bfb3-2eee33c69176" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" - ], - "x-ms-correlation-request-id": [ - "5382801b-4a1e-4d7d-8483-0a97fb97a24c" + "Content-Length": [ + "282" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T020106Z:5382801b-4a1e-4d7d-8483-0a97fb97a24c" + "x-ms-client-request-id": [ + "3ec5ccf9-c0b6-480d-97da-fa01033f6b5d" ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "accept-language": [ + "en-US" ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:27:06.357Z\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "71" + ], "Content-Type": [ "application/json; charset=utf-8" ], @@ -934,13 +873,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:01:20 GMT" + "Fri, 18 May 2018 22:27:06 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/589c2307-9384-42a5-ac4f-697889d352e2?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -948,20 +887,20 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/589c2307-9384-42a5-ac4f-697889d352e2?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "c6cee747-713e-4cea-b0bf-cf0294440592" + "91da4f50-49d3-4371-885f-8d2a55d04a6e" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], "x-ms-correlation-request-id": [ - "eead4a70-31a7-4952-bca3-7b00f415872a" + "42985d0a-2985-4fd4-9d62-730f57508135" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020121Z:eead4a70-31a7-4952-bca3-7b00f415872a" + "WESTUS2:20180518T222706Z:42985d0a-2985-4fd4-9d62-730f57508135" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -970,20 +909,20 @@ "nosniff" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -995,7 +934,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:01:36 GMT" + "Fri, 18 May 2018 22:25:35 GMT" ], "Pragma": [ "no-cache" @@ -1013,16 +952,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e757e59c-b2f0-40ad-92e2-e345cdd6999a" + "98b82e11-a76d-48fb-9d0b-9d86c844ea9d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14990" ], "x-ms-correlation-request-id": [ - "88c9ad4d-2b50-4416-a19f-dacbee247c5d" + "62ad7316-35d5-4555-a09d-73df2efc0eb4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020136Z:88c9ad4d-2b50-4416-a19f-dacbee247c5d" + "WESTUS2:20180518T222535Z:62ad7316-35d5-4555-a09d-73df2efc0eb4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1034,17 +973,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1056,7 +995,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:01:50 GMT" + "Fri, 18 May 2018 22:25:49 GMT" ], "Pragma": [ "no-cache" @@ -1074,16 +1013,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1a0d68a3-feb0-480e-9053-a40ee36a41d4" + "7144a131-b544-4506-aa78-a8119468e23b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14989" ], "x-ms-correlation-request-id": [ - "164210ad-9569-4ec5-9b45-d208c5cac7a3" + "e5bf3963-02ba-40c4-80b8-819d9ad98906" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020151Z:164210ad-9569-4ec5-9b45-d208c5cac7a3" + "WESTUS2:20180518T222550Z:e5bf3963-02ba-40c4-80b8-819d9ad98906" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,17 +1034,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1117,7 +1056,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:05 GMT" + "Fri, 18 May 2018 22:26:05 GMT" ], "Pragma": [ "no-cache" @@ -1135,16 +1074,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3f5ecb06-a42f-46d5-bbe9-d2daf569ac8b" + "8e6f26a5-62f9-4c30-b589-8404cfdb60b4" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14988" ], "x-ms-correlation-request-id": [ - "a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + "a8fa9228-d1b9-4439-aa18-689cf689a326" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020206Z:a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + "WESTUS2:20180518T222605Z:a8fa9228-d1b9-4439-aa18-689cf689a326" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1156,17 +1095,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1178,7 +1117,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:21 GMT" + "Fri, 18 May 2018 22:26:20 GMT" ], "Pragma": [ "no-cache" @@ -1196,16 +1135,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "de606b73-7303-4742-8a45-94a47bd0b5e4" + "3ad1743b-1efa-4030-95b5-82d68ce9cda3" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14987" ], "x-ms-correlation-request-id": [ - "38aad526-3a7d-407d-9701-baf99fb4571c" + "a536ad42-f865-421e-8a5d-0f49b4ce2075" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020221Z:38aad526-3a7d-407d-9701-baf99fb4571c" + "WESTUS2:20180518T222620Z:a536ad42-f865-421e-8a5d-0f49b4ce2075" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1217,17 +1156,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1239,7 +1178,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:35 GMT" + "Fri, 18 May 2018 22:26:35 GMT" ], "Pragma": [ "no-cache" @@ -1257,16 +1196,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fda792c7-ca36-43bc-8703-2eef16666bd1" + "68994776-4d5e-4bff-84ac-cae10459b17d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14986" ], "x-ms-correlation-request-id": [ - "35bd6e36-b389-475a-b4b3-b413416cd93e" + "96dc20d2-f2aa-40f6-a70a-41de3a17d5ad" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020236Z:35bd6e36-b389-475a-b4b3-b413416cd93e" + "WESTUS2:20180518T222635Z:96dc20d2-f2aa-40f6-a70a-41de3a17d5ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1278,17 +1217,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1300,7 +1239,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:50 GMT" + "Fri, 18 May 2018 22:26:50 GMT" ], "Pragma": [ "no-cache" @@ -1318,16 +1257,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c2063be7-f1c4-45b2-8ac7-686eaf45c321" + "bea0e1d6-043c-4413-9807-a7d8d688ac79" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "14985" ], "x-ms-correlation-request-id": [ - "8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + "9a715303-53f5-4d9f-afca-7135017ac720" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020251Z:8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + "WESTUS2:20180518T222651Z:9a715303-53f5-4d9f-afca-7135017ac720" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1339,17 +1278,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1361,7 +1300,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:06 GMT" + "Fri, 18 May 2018 22:27:05 GMT" ], "Pragma": [ "no-cache" @@ -1379,16 +1318,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5a22d6dc-d845-478b-aa74-a6cb32e5b1df" + "7c34e1e6-5320-42b9-972a-d8d8e1630ae6" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" + "14984" ], "x-ms-correlation-request-id": [ - "bd59a05b-ac31-4c9f-904f-31065763dca2" + "d6cec642-e3bc-45db-b60b-cd2e901e64cd" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020306Z:bd59a05b-ac31-4c9f-904f-31065763dca2" + "WESTUS2:20180518T222706Z:d6cec642-e3bc-45db-b60b-cd2e901e64cd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1400,17 +1339,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1422,7 +1361,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:06 GMT" + "Fri, 18 May 2018 22:27:05 GMT" ], "Pragma": [ "no-cache" @@ -1437,16 +1376,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "590c4684-f4d8-40b7-97bb-b555eb94cc37" + "b095716c-4aa0-4422-bb5c-aa568a00bb33" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" + "14983" ], "x-ms-correlation-request-id": [ - "93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + "3fc1e8df-a3d2-4bbc-9f45-3448fa46aa5f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020306Z:93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + "WESTUS2:20180518T222706Z:3fc1e8df-a3d2-4bbc-9f45-3448fa46aa5f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1458,17 +1397,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1480,7 +1419,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1495,16 +1434,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9d6e2867-0265-4420-9c38-728176a4c409" + "f94e570c-d8e4-44ff-9f2c-a8b6cbb76483" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "14981" ], "x-ms-correlation-request-id": [ - "4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + "11fe392c-292d-4005-a72c-e70d00fbe7bb" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020321Z:4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + "WESTUS2:20180518T222722Z:11fe392c-292d-4005-a72c-e70d00fbe7bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1516,23 +1455,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2095ed28-3554-49f2-9968-e23424e4c0f4" + "5216af80-7d91-422c-9865-1ecc3227f4e3" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1544,7 +1483,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1559,16 +1498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f3dbcb03-b4b1-4e19-9b9e-1830ef5cc885" + "ffb6adbf-3136-41c7-9bef-d09570524cd1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "14980" ], "x-ms-correlation-request-id": [ - "1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + "577f47c6-7009-4b0b-8e4b-1b8e39a8dafc" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020322Z:1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + "WESTUS2:20180518T222722Z:577f47c6-7009-4b0b-8e4b-1b8e39a8dafc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1580,17 +1519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzIyMzY1Njk3LWRiZWQtNGY5My05ZGNmLWM3OWRmMjJhNjM5Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/589c2307-9384-42a5-ac4f-697889d352e2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzU4OWMyMzA3LTkzODQtNDJhNS1hYzRmLTY5Nzg4OWQzNTJlMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"22365697-dbed-4f93-9dcf-c79df22a6396\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"589c2307-9384-42a5-ac4f-697889d352e2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:27:06.357Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1602,7 +1541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:20 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1620,16 +1559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c7435bdd-7102-435a-9bc2-f3124105f1d6" + "6e9c5d2e-2858-4831-87fe-105033786a04" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "14982" ], "x-ms-correlation-request-id": [ - "ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + "0913f8be-2af1-4c88-96b5-88f8587ead3b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020321Z:ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + "WESTUS2:20180518T222722Z:0913f8be-2af1-4c88-96b5-88f8587ead3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1641,23 +1580,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5ed8eb2c-dcb6-4c93-a617-906d59194b0b" + "eac942c4-9eab-4845-9929-5c696253ed34" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1669,7 +1608,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1684,16 +1623,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9734ebc3-3f38-4b0d-a96f-2f44a8b4a752" + "cb7bd375-7e43-4117-b3f6-3f3b91fad361" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "14979" ], "x-ms-correlation-request-id": [ - "52e97a47-950d-4b28-b785-11fc760205a0" + "384a6d74-50ca-4d34-ba49-3de648ef5ec6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020322Z:52e97a47-950d-4b28-b785-11fc760205a0" + "WESTUS2:20180518T222722Z:384a6d74-50ca-4d34-ba49-3de648ef5ec6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1705,23 +1644,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9b9d07f8-2f5e-4072-ac57-4105bb5a1c26" + "62b53c28-8080-4926-8e69-5fd49188983e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-18T22:27:22.417Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -1736,13 +1675,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/7feeb1e5-10cf-4a40-bb76-41768fcb3eff?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -1751,19 +1690,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7feeb1e5-10cf-4a40-bb76-41768fcb3eff?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "c08111bc-0c7b-4631-a592-4b4246a82ab8" + "5e0753d3-ee32-425d-9192-d9c15ec5746f" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14999" ], "x-ms-correlation-request-id": [ - "dee0d3b2-2858-4502-91aa-72d2a58184b2" + "321d3a0f-b0e5-407d-9e3c-ec7f5a2362ba" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020322Z:dee0d3b2-2858-4502-91aa-72d2a58184b2" + "WESTUS2:20180518T222723Z:321d3a0f-b0e5-407d-9e3c-ec7f5a2362ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1775,78 +1714,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 02:03:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "bbd217a3-0272-4afe-b9b9-622c3bf1a9ee" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" - ], - "x-ms-correlation-request-id": [ - "7d7a5de5-b85d-4b9a-b253-44c2ade7c899" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T020337Z:7d7a5de5-b85d-4b9a-b253-44c2ade7c899" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7feeb1e5-10cf-4a40-bb76-41768fcb3eff?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdmZWViMWU1LTEwY2YtNGE0MC1iYjc2LTQxNzY4ZmNiM2VmZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7feeb1e5-10cf-4a40-bb76-41768fcb3eff\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:27:22.417Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1858,7 +1736,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:52 GMT" + "Fri, 18 May 2018 22:27:37 GMT" ], "Pragma": [ "no-cache" @@ -1876,16 +1754,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "309e4f7a-fb00-4e4a-813b-e7805affef16" + "0193c5c4-bd7b-433d-b0d7-b6fb44b33ae5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" + "14978" ], "x-ms-correlation-request-id": [ - "f89d8874-c01c-49e3-b516-ab4480c1e1d4" + "7aaf3f74-438e-41c8-ab3b-76cf8a9d7104" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020352Z:f89d8874-c01c-49e3-b516-ab4480c1e1d4" + "WESTUS2:20180518T222738Z:7aaf3f74-438e-41c8-ab3b-76cf8a9d7104" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1897,13 +1775,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3225?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMyMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "be93f8b7-4bff-4d22-aa82-24d5f4d10340" + "b26f3a66-1b2d-4eab-887b-ce670c8e3929" ], "accept-language": [ "en-US" @@ -1925,13 +1803,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:53 GMT" + "Fri, 18 May 2018 22:27:38 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMyMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1940,13 +1818,13 @@ "14999" ], "x-ms-request-id": [ - "4c127b84-cff5-4842-9bf1-f3a333540b63" + "d7258248-a081-434c-9562-a09dc8ab394a" ], "x-ms-correlation-request-id": [ - "4c127b84-cff5-4842-9bf1-f3a333540b63" + "d7258248-a081-434c-9562-a09dc8ab394a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020353Z:4c127b84-cff5-4842-9bf1-f3a333540b63" + "WESTUS2:20180518T222738Z:d7258248-a081-434c-9562-a09dc8ab394a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1958,13 +1836,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3225?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMyMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5112a7b4-f409-4d33-a55b-f22f54215514" + "4d8f2a13-455d-45a3-bfd1-4c439cf0af09" ], "accept-language": [ "en-US" @@ -1986,13 +1864,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:53 GMT" + "Fri, 18 May 2018 22:27:38 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMyMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2001,13 +1879,13 @@ "14998" ], "x-ms-request-id": [ - "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + "c5fcfdbf-5b17-4c63-acee-f5627ff979b9" ], "x-ms-correlation-request-id": [ - "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + "c5fcfdbf-5b17-4c63-acee-f5627ff979b9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020353Z:d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + "WESTUS2:20180518T222738Z:c5fcfdbf-5b17-4c63-acee-f5627ff979b9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2021,13 +1899,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-1295" + "sqlcrudtest-3225" ], "CreateServer": [ - "sqlcrudtest-9933" + "sqlcrudtest-1881" ], "TestCreateUpdateDropAgent": [ - "sqlcrudtest-8179" + "sqlcrudtest-5003" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json index 128daa1ff9cef..b0550be8fdafd 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8545?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1NDU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8545\": \"2018-05-18 22:09:53Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "c26214bd-2e71-45ae-b28c-e86a151d2533" + "b96b3f40-e8ec-473d-9b7c-6affb5ea5016" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353\",\r\n \"name\": \"sqlcrudtest-1353\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545\",\r\n \"name\": \"sqlcrudtest-8545\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8545\": \"2018-05-18 22:09:53Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:12 GMT" + "Fri, 18 May 2018 22:09:53 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "101f4501-c2a2-4ebc-b54b-361e9742892b" + "c2e0a395-f91d-4754-a4a2-b74b461c9626" ], "x-ms-correlation-request-id": [ - "101f4501-c2a2-4ebc-b54b-361e9742892b" + "c2e0a395-f91d-4754-a4a2-b74b461c9626" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014113Z:101f4501-c2a2-4ebc-b54b-361e9742892b" + "WESTUS2:20180518T220954Z:c2e0a395-f91d-4754-a4a2-b74b461c9626" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ND9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", "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": { @@ -77,17 +77,17 @@ "183" ], "x-ms-client-request-id": [ - "c7ee5cb2-11ba-47cd-9aab-238493fc1223" + "f188d61a-02e0-48d7-99d8-04039b6aa224" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:18 GMT" + "Fri, 18 May 2018 22:09:58 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverOperationResults/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverOperationResults/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "58357293-c42d-470d-beff-38f46339a38a" + "62c17ae0-39da-4d85-ab1b-5c76e47d6888" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "e5e0d46c-3839-447f-8f22-357ebaffe647" + "6de309ce-ab83-49eb-bde7-f42bffb4b117" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014118Z:e5e0d46c-3839-447f-8f22-357ebaffe647" + "WESTUS2:20180518T220959Z:6de309ce-ab83-49eb-bde7-f42bffb4b117" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MmMxN2FlMC0zOWRhLTRkODUtYWIxYi01Yzc2ZTQ3ZDY4ODg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"62c17ae0-39da-4d85-ab1b-5c76e47d6888\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:28 GMT" + "Fri, 18 May 2018 22:10:08 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c2878e23-64a3-4d2b-9e57-aed9bcf1650e" + "e72fc65b-12f6-4127-88e1-41ab9a6eaddd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "fc4b4fa1-77cf-4d85-a8db-c940986625c4" + "ee7bdde1-0fa0-4ae8-84a5-ccaa42a51661" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014128Z:fc4b4fa1-77cf-4d85-a8db-c940986625c4" + "WESTUS2:20180518T221009Z:ee7bdde1-0fa0-4ae8-84a5-ccaa42a51661" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MmMxN2FlMC0zOWRhLTRkODUtYWIxYi01Yzc2ZTQ3ZDY4ODg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"62c17ae0-39da-4d85-ab1b-5c76e47d6888\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:47 GMT" + "Fri, 18 May 2018 22:10:29 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "555cdf2a-a76d-47ba-a64e-0637e96f4ea9" + "5be3c216-d2e3-419d-9143-6687d81646c5" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + "27c43e7a-5ec9-4bf7-8bf2-12ce7f42c869" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014148Z:2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + "WESTUS2:20180518T221029Z:27c43e7a-5ec9-4bf7-8bf2-12ce7f42c869" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MmMxN2FlMC0zOWRhLTRkODUtYWIxYi01Yzc2ZTQ3ZDY4ODg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"62c17ae0-39da-4d85-ab1b-5c76e47d6888\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:08 GMT" + "Fri, 18 May 2018 22:10:49 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "82d30827-e55a-4a92-9272-ff0763d6f36c" + "a1851417-59ee-456b-b2d0-9630d671e5dd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "32494398-c56d-4836-8afc-7ea5046e2dc8" + "785fb732-4dd6-4bf7-b2cd-00bebccf5a2c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014209Z:32494398-c56d-4836-8afc-7ea5046e2dc8" + "WESTUS2:20180518T221049Z:785fb732-4dd6-4bf7-b2cd-00bebccf5a2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ND9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-5485.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485\",\r\n \"name\": \"sqlcrudtest-5485\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-54.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54\",\r\n \"name\": \"sqlcrudtest-54\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:09 GMT" + "Fri, 18 May 2018 22:10:49 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "2aafa819-4574-4184-b71b-4283f479f286" + "f9915b59-acae-435f-b51a-a5ea5533cf04" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + "aa216e95-446d-4fa1-a77b-2664253b4187" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014209Z:d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + "WESTUS2:20180518T221049Z:aa216e95-446d-4fa1-a77b-2664253b4187" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNDAzOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,17 +394,17 @@ "29" ], "x-ms-client-request-id": [ - "5f824d22-34e6-4777-acc5-5942dfed6147" + "527a01b2-3aef-4668-84ee-dcf1a8559f7d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "76" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:09 GMT" + "Fri, 18 May 2018 22:10:50 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "30fae471-d899-4997-b8ae-b64c94cc3190" + "bf5d3554-4c3e-407e-a96c-6b4203ac09c5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "bd2bb883-1acd-43d3-8023-515d625450fe" + "ab703c9e-df4d-4331-801a-74ead07c25ba" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014209Z:bd2bb883-1acd-43d3-8023-515d625450fe" + "WESTUS2:20180518T221050Z:ab703c9e-df4d-4331-801a-74ead07c25ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NlMjZjN2NmLWJmOGYtNDFjYy1hZjNmLWRmOWNlYjMxNzgwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce26c7cf-bf8f-41cc-af3f-df9ceb317808\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:24 GMT" + "Fri, 18 May 2018 22:11:05 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e4ddf072-d898-4119-996e-944d57898439" + "1bfb4970-6e52-45aa-8afc-6f3e6fa7e930" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "49ab5021-143c-440f-9801-d10e4fa60d74" + "855eed38-e247-4276-8c8a-f16a804e6304" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014224Z:49ab5021-143c-440f-9801-d10e4fa60d74" + "WESTUS2:20180518T221105Z:855eed38-e247-4276-8c8a-f16a804e6304" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NlMjZjN2NmLWJmOGYtNDFjYy1hZjNmLWRmOWNlYjMxNzgwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce26c7cf-bf8f-41cc-af3f-df9ceb317808\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:39 GMT" + "Fri, 18 May 2018 22:11:20 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a302a278-6a52-468e-b968-fa392fbe34cd" + "3cd959e0-c38a-420d-a589-dd60b7948820" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "791d43c3-7d50-49ad-95bf-469b06e82343" + "61ea2520-6652-4e2f-bcd6-d4ab0b9cc3e1" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014240Z:791d43c3-7d50-49ad-95bf-469b06e82343" + "WESTUS2:20180518T221120Z:61ea2520-6652-4e2f-bcd6-d4ab0b9cc3e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NlMjZjN2NmLWJmOGYtNDFjYy1hZjNmLWRmOWNlYjMxNzgwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce26c7cf-bf8f-41cc-af3f-df9ceb317808\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:54 GMT" + "Fri, 18 May 2018 22:11:35 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3e45db60-3ae7-40e3-9853-9159a1ceae7e" + "dc3184f0-205e-4758-ad20-567eb989d65c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "5a788626-a3dc-4367-b8ac-999c5c247f80" + "fa560139-249a-4741-974d-803e92873bf4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014255Z:5a788626-a3dc-4367-b8ac-999c5c247f80" + "WESTUS2:20180518T221135Z:fa560139-249a-4741-974d-803e92873bf4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNDAzOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"48d1214c-1fc0-4124-bc8d-9a807a17b589\",\r\n \"creationDate\": \"2018-05-18T01:42:10.133Z\",\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-18T02:12:46.267Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"name\": \"sqlcrudtest-5593\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"356e2680-2bed-4a3c-a033-4eea23fe794e\",\r\n \"creationDate\": \"2018-05-18T22:10:50.423Z\",\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-18T22:41:20.777Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039\",\r\n \"name\": \"sqlcrudtest-4039\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:54 GMT" + "Fri, 18 May 2018 22:11:35 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0d97d751-3df9-4ace-a4dc-fe3a29fe0607" + "908c0112-85e8-41e1-b93e-a418abf5b8ac" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "cb9d8239-d391-4728-8351-d734d7aaba32" + "1bdf1a97-1cd2-44be-b157-6db83cb275ff" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014255Z:cb9d8239-d391-4728-8351-d734d7aaba32" + "WESTUS2:20180518T221135Z:1bdf1a97-1cd2-44be-b157-6db83cb275ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,29 +699,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "235" + "233" ], "x-ms-client-request-id": [ - "d20e94c2-bc8a-4f2a-8b97-937a8138fe84" + "0088fbac-d052-4dc9-a740-fdc53d69a9ff" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -736,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:54 GMT" + "Fri, 18 May 2018 22:11:35 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -751,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "f4d13247-67cb-4d95-9593-d07b28baf249" + "a41174ba-82c1-4ebe-a56d-28e607679ca1" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "18e995a5-08bc-451b-8d5d-dab39cf2afda" + "84c3399b-5c2b-4a16-9fe7-ba9bbe57c198" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014255Z:18e995a5-08bc-451b-8d5d-dab39cf2afda" + "WESTUS2:20180518T221136Z:84c3399b-5c2b-4a16-9fe7-ba9bbe57c198" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -775,17 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -797,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:10 GMT" + "Fri, 18 May 2018 22:11:51 GMT" ], "Pragma": [ "no-cache" @@ -815,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6fe8bdca-3b82-4cbc-96f7-fa7bbc9e5fa9" + "7b3984d7-4091-4684-9a94-6ae3a39aa37e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + "46e6168e-fc48-4301-9e5b-aefd29663ba5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014310Z:408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + "WESTUS2:20180518T221151Z:46e6168e-fc48-4301-9e5b-aefd29663ba5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:25 GMT" + "Fri, 18 May 2018 22:12:06 GMT" ], "Pragma": [ "no-cache" @@ -876,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "711ab149-888f-4d33-b1a9-3eb045a542c9" + "4c121c2f-5cd2-4204-ac7b-0c4d4fc99e16" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "86ed2140-0eed-492e-945c-f71b463231cb" + "56433595-ac1c-4d33-8136-4452cfa87145" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014325Z:86ed2140-0eed-492e-945c-f71b463231cb" + "WESTUS2:20180518T221206Z:56433595-ac1c-4d33-8136-4452cfa87145" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -897,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:40 GMT" + "Fri, 18 May 2018 22:12:21 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cd742402-5a43-4a40-9ff4-0f82cf71736c" + "7b180552-db73-4099-b560-6e8f75fa845c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14989" ], "x-ms-correlation-request-id": [ - "7f6b81fe-5df4-46d9-9609-fe637458d014" + "7a839cfb-ca41-43c5-b8ef-4b205814c4db" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014340Z:7f6b81fe-5df4-46d9-9609-fe637458d014" + "WESTUS2:20180518T221221Z:7a839cfb-ca41-43c5-b8ef-4b205814c4db" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:54 GMT" + "Fri, 18 May 2018 22:12:35 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "14d728c7-3c4c-4967-b763-227b70e558ef" + "0cd00a1a-dcd7-4e27-9a7e-26a5ce98ea84" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14988" ], "x-ms-correlation-request-id": [ - "b58b2d27-6b01-4077-a6bc-349b145e1d0f" + "7aa8c438-295a-4c17-a6cf-762c0d0d4058" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014355Z:b58b2d27-6b01-4077-a6bc-349b145e1d0f" + "WESTUS2:20180518T221236Z:7aa8c438-295a-4c17-a6cf-762c0d0d4058" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:10 GMT" + "Fri, 18 May 2018 22:12:51 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +1059,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7e20c4ba-9a35-41c3-966c-85e1360c9faf" + "f9f9d6b9-3988-4667-81ac-b67c8bd6d25b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14987" ], "x-ms-correlation-request-id": [ - "8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + "1b02c772-78b3-44a3-8e87-0e153623167f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014410Z:8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + "WESTUS2:20180518T221251Z:1b02c772-78b3-44a3-8e87-0e153623167f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +1080,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +1102,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:25 GMT" + "Fri, 18 May 2018 22:13:06 GMT" ], "Pragma": [ "no-cache" @@ -1120,16 +1120,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "33c2d4e9-f7bb-43bb-a84f-eb3900d06b42" + "4f63ca88-82b0-4a9c-9eca-08bcf83eb4ba" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14986" ], "x-ms-correlation-request-id": [ - "1818f11e-fc34-4493-b19e-471f004f626d" + "79de1446-594a-48e7-9188-17ed184b3d0e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014425Z:1818f11e-fc34-4493-b19e-471f004f626d" + "WESTUS2:20180518T221306Z:79de1446-594a-48e7-9188-17ed184b3d0e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1141,17 +1141,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1163,7 +1163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:40 GMT" + "Fri, 18 May 2018 22:13:21 GMT" ], "Pragma": [ "no-cache" @@ -1181,16 +1181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5e13934e-dd40-4f3d-938d-d0ab3ab1f035" + "08226d4f-621f-4a15-bd29-dcede5f68211" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14985" ], "x-ms-correlation-request-id": [ - "18a78067-058b-42fc-95fb-8bdefe770cd3" + "0705dc73-74e3-4547-beb2-d2802a817cff" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014440Z:18a78067-058b-42fc-95fb-8bdefe770cd3" + "WESTUS2:20180518T221322Z:0705dc73-74e3-4547-beb2-d2802a817cff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1202,17 +1202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1224,1227 +1224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "e8061e8a-16dd-4986-8950-2f47f65bd5d8" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" - ], - "x-ms-correlation-request-id": [ - "7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014456Z:7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "970ab5b6-a87b-41db-ace0-d45b980d6174" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" - ], - "x-ms-correlation-request-id": [ - "cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014511Z:cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "13e7ec33-9de1-4338-a407-5c8200d33dd2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" - ], - "x-ms-correlation-request-id": [ - "d06785d8-a587-4d8d-8418-44a59fc3a989" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014526Z:d06785d8-a587-4d8d-8418-44a59fc3a989" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "29769f92-49e0-4d52-8828-695e5cea2c29" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" - ], - "x-ms-correlation-request-id": [ - "c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014541Z:c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "8aed65ae-0ecc-4103-a0ef-bc09b7eafa2c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" - ], - "x-ms-correlation-request-id": [ - "017db22c-adec-4627-bad9-3352a8d04652" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014556Z:017db22c-adec-4627-bad9-3352a8d04652" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1fb1d44e-94e2-4f6d-8d1d-e2259ba867f3" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" - ], - "x-ms-correlation-request-id": [ - "e0132546-fa11-44ff-9268-47caa215a5fa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014611Z:e0132546-fa11-44ff-9268-47caa215a5fa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "94dbcf83-a8b7-4cb6-baf4-54416eaf07b7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" - ], - "x-ms-correlation-request-id": [ - "afd47af0-30cb-4ede-ad29-e1ac2b714828" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014626Z:afd47af0-30cb-4ede-ad29-e1ac2b714828" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1334ec85-5d38-4983-914a-5f2546596491" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" - ], - "x-ms-correlation-request-id": [ - "1016909b-6abe-467e-a012-d99fc888f64c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014641Z:1016909b-6abe-467e-a012-d99fc888f64c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:56 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1a22d342-690b-4b4a-918a-95290b7f5bdf" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" - ], - "x-ms-correlation-request-id": [ - "b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014656Z:b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "12571a82-8ffe-4bda-963e-3623e7d593b4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" - ], - "x-ms-correlation-request-id": [ - "f7cace68-9200-4226-b574-1eb376221abc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014711Z:f7cace68-9200-4226-b574-1eb376221abc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "65c6a90a-ecda-4dda-8f53-1566581115cc" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" - ], - "x-ms-correlation-request-id": [ - "c93e620b-143c-4699-ad92-6b6a9fe31bb8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014726Z:c93e620b-143c-4699-ad92-6b6a9fe31bb8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "73afe107-2fb4-40be-922a-ef46fce089b7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" - ], - "x-ms-correlation-request-id": [ - "0c9ee65c-56c0-4d30-b7ef-8eb855947def" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014741Z:0c9ee65c-56c0-4d30-b7ef-8eb855947def" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "d4cdaaf7-79ee-446d-9fe1-c2af703bf41f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" - ], - "x-ms-correlation-request-id": [ - "7cce9455-74c5-410c-9d43-a03f5aedf2b5" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014756Z:7cce9455-74c5-410c-9d43-a03f5aedf2b5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "e13d19c7-1ae9-4ce1-ade0-cc934e543fc3" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" - ], - "x-ms-correlation-request-id": [ - "b69f297e-6c1d-4412-993a-fbe9145627cb" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014811Z:b69f297e-6c1d-4412-993a-fbe9145627cb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "801c577b-27a5-4a55-948d-904f9341b997" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14970" - ], - "x-ms-correlation-request-id": [ - "3d815a88-142d-4803-9393-69d0a4de8ef0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014826Z:3d815a88-142d-4803-9393-69d0a4de8ef0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "e537c726-e559-427b-ab19-6ac954bcbab6" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" - ], - "x-ms-correlation-request-id": [ - "aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014841Z:aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:56 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "caf342e9-1508-48f0-90aa-efa3cde031a5" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" - ], - "x-ms-correlation-request-id": [ - "4fa21549-b532-4123-b3d5-1bf15b38e559" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014856Z:4fa21549-b532-4123-b3d5-1bf15b38e559" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "bfc4ddf1-f559-4369-919c-4490087effba" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" - ], - "x-ms-correlation-request-id": [ - "4ba1862b-b5ff-40d6-9319-7265ccc427af" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014911Z:4ba1862b-b5ff-40d6-9319-7265ccc427af" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "77507636-4a74-41be-b88b-04e1d20a7f7f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" - ], - "x-ms-correlation-request-id": [ - "e3c8158b-574f-4857-b159-ef6ddb52bf09" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014926Z:e3c8158b-574f-4857-b159-ef6ddb52bf09" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "44c3a1ad-b208-4269-b817-d45c5e546295" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" - ], - "x-ms-correlation-request-id": [ - "9378e302-6828-4ddf-abda-8d8c4316bbd1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014941Z:9378e302-6828-4ddf-abda-8d8c4316bbd1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:41 GMT" + "Fri, 18 May 2018 22:13:21 GMT" ], "Pragma": [ "no-cache" @@ -2459,16 +1239,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8ad531c1-4d06-4ab7-88b2-d806da60bfca" + "a192109d-8224-4cce-a654-82ac8fcd95d1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14964" + "14984" ], "x-ms-correlation-request-id": [ - "51133f44-2b90-40a4-aea3-83c9cf625845" + "c631a333-cc7d-4572-a397-1d9604cb1fcd" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014941Z:51133f44-2b90-40a4-aea3-83c9cf625845" + "WESTUS2:20180518T221322Z:c631a333-cc7d-4572-a397-1d9604cb1fcd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2480,8 +1260,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -2492,20 +1272,20 @@ "259" ], "x-ms-client-request-id": [ - "76607653-2da5-49fa-a72a-28f26008f72b" + "7972db43-7d66-4ca0-a5b8-3ee47603b01b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "421" + "419" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2517,7 +1297,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2526,16 +1306,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8fc6fa84-92da-4e15-a931-fa9e9020d143" + "bad2b2f2-35f3-4327-a73b-e1abe4bbc2eb" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "65e19b60-3019-4092-88fd-ed1231571a6e" + "595f0a69-0e91-4753-8b2e-ea6c0b13db8c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014942Z:65e19b60-3019-4092-88fd-ed1231571a6e" + "WESTUS2:20180518T221323Z:595f0a69-0e91-4753-8b2e-ea6c0b13db8c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2547,8 +1327,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -2559,17 +1339,17 @@ "140" ], "x-ms-client-request-id": [ - "1d442ff8-9d83-4dbb-a6c7-12d396b31d1d" + "88a942e8-a5a0-4031-8ed2-0cc2d68993ba" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2581,7 +1361,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2596,16 +1376,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b4eb085d-8b57-4dcf-a26a-29a66efc65c1" + "ed1247f0-805b-4b94-a308-1f19dadc1bf7" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "3b52a50a-690f-41a9-8102-b8311250257c" + "1fa660b7-2c39-4363-9580-ca1b3afad495" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014942Z:3b52a50a-690f-41a9-8102-b8311250257c" + "WESTUS2:20180518T221323Z:1fa660b7-2c39-4363-9580-ca1b3afad495" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2617,23 +1397,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e68bea43-223e-498a-b03d-76359c653992" + "97d9fd19-640f-4af1-b8b5-7aa24142f875" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2645,7 +1425,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2660,16 +1440,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a4757fdd-9efd-4d47-8ea0-6174da6fbb0e" + "f4170242-5d87-4934-b4f0-2c0ddf63490a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14963" + "14983" ], "x-ms-correlation-request-id": [ - "47af963c-3254-4e40-bce6-4aced83a680f" + "61942f0b-78a9-411e-b5fc-eecfc9b95eb6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:47af963c-3254-4e40-bce6-4aced83a680f" + "WESTUS2:20180518T221323Z:61942f0b-78a9-411e-b5fc-eecfc9b95eb6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2681,20 +1461,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9207cb5a-30d2-48cc-a3c0-27888052dee8" + "e1e71549-4957-4ec5-8aac-d2049892b9fe" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -2709,7 +1489,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2718,16 +1498,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ade4f528-caa1-47dc-9e96-86830351db94" + "e4daa54c-ad18-4d9b-bd14-3c90c3c2e9a3" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + "3840674d-0165-498a-952c-9c894a97c937" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + "WESTUS2:20180518T221323Z:3840674d-0165-498a-952c-9c894a97c937" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2739,13 +1519,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8545?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1NDU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4ecec2cd-ac26-4bbc-9baa-00e3b8c6dca1" + "a44369ea-e942-473a-8dbc-ee37f6774dab" ], "accept-language": [ "en-US" @@ -2767,13 +1547,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1NDUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2782,13 +1562,13 @@ "14999" ], "x-ms-request-id": [ - "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + "6295f771-a55d-4556-bf7e-aa4f3653f65c" ], "x-ms-correlation-request-id": [ - "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + "6295f771-a55d-4556-bf7e-aa4f3653f65c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + "WESTUS2:20180518T221323Z:6295f771-a55d-4556-bf7e-aa4f3653f65c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2800,13 +1580,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8545?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1NDU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cf85a74a-2d91-40c6-b6c5-df17b6eb4198" + "f0aa2c01-e0ce-44b6-9787-6f711d340f8f" ], "accept-language": [ "en-US" @@ -2828,13 +1608,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1NDUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2843,13 +1623,13 @@ "14998" ], "x-ms-request-id": [ - "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + "9aad9f7c-540f-4a4b-bdce-7c5ab817b0e2" ], "x-ms-correlation-request-id": [ - "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + "9aad9f7c-540f-4a4b-bdce-7c5ab817b0e2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:5dad3535-e16b-4a95-8d01-3890f4eec5b1" + "WESTUS2:20180518T221324Z:9aad9f7c-540f-4a4b-bdce-7c5ab817b0e2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2863,13 +1643,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-1353" + "sqlcrudtest-8545" ], "CreateServer": [ - "sqlcrudtest-5485" + "sqlcrudtest-54" ], "TestCreateUpdateDropJob": [ - "sqlcrudtest-5593" + "sqlcrudtest-4039" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json index abbf81537932b..e4c04bfe5be43 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8527?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1Mjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8527\": \"2018-05-18 22:16:58Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "621b70d9-352b-4047-a8d8-d0506757fa5f" + "b59d4672-67c7-4268-bcec-5809b13395ce" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019\",\r\n \"name\": \"sqlcrudtest-3019\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527\",\r\n \"name\": \"sqlcrudtest-8527\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8527\": \"2018-05-18 22:16:58Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:48 GMT" + "Fri, 18 May 2018 22:16:59 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "85df2e85-0599-467d-b74e-06e9e87b4aa4" + "05c93a75-e469-4e48-b536-da7ef7122814" ], "x-ms-correlation-request-id": [ - "85df2e85-0599-467d-b74e-06e9e87b4aa4" + "05c93a75-e469-4e48-b536-da7ef7122814" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015249Z:85df2e85-0599-467d-b74e-06e9e87b4aa4" + "WESTUS2:20180518T221659Z:05c93a75-e469-4e48-b536-da7ef7122814" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,20 +77,20 @@ "183" ], "x-ms-client-request-id": [ - "3b46b065-e648-4537-8b54-a5a8b9404584" + "6de6917b-4c66-4dba-8352-9f9c6e53cfe7" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "72" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:51 GMT" + "Fri, 18 May 2018 22:17:03 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverOperationResults/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "fbce9bfa-e7fc-42b8-aea2-8b0379776ceb" + "e4f8438e-b2e7-4acb-b934-79d385960f3f" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + "edd2fb88-895e-498b-81e3-9f26363a24e8" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015251Z:8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + "WESTUS2:20180518T221704Z:edd2fb88-895e-498b-81e3-9f26363a24e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNGY4NDM4ZS1iMmU3LTRhY2ItYjkzNC03OWQzODU5NjBmM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e4f8438e-b2e7-4acb-b934-79d385960f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:53:01 GMT" + "Fri, 18 May 2018 22:17:13 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6de30668-f08c-4302-9f27-a67c49a7363b" + "8ff75072-5077-40ca-9c5a-b15bc7626912" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "58df45ba-bbf8-437c-a885-4981eff4d74c" + "eaa6178a-466c-4672-89d0-c35b5ff1ffda" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015301Z:58df45ba-bbf8-437c-a885-4981eff4d74c" + "WESTUS2:20180518T221714Z:eaa6178a-466c-4672-89d0-c35b5ff1ffda" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNGY4NDM4ZS1iMmU3LTRhY2ItYjkzNC03OWQzODU5NjBmM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e4f8438e-b2e7-4acb-b934-79d385960f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:53:21 GMT" + "Fri, 18 May 2018 22:17:34 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bdbb017f-9b98-4a07-ac10-c419e81af512" + "7178f335-6b52-4a8d-b30e-64a47c2d654f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "8d2506c1-5f24-4217-bbf0-faebb456073d" + "ce0980e6-6940-43cf-b2fd-2349b8bfe9f2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015321Z:8d2506c1-5f24-4217-bbf0-faebb456073d" + "WESTUS2:20180518T221734Z:ce0980e6-6940-43cf-b2fd-2349b8bfe9f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNGY4NDM4ZS1iMmU3LTRhY2ItYjkzNC03OWQzODU5NjBmM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e4f8438e-b2e7-4acb-b934-79d385960f3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:53:41 GMT" + "Fri, 18 May 2018 22:17:53 GMT" ], "Pragma": [ "no-cache" @@ -294,7 +294,7 @@ "chunked" ], "Retry-After": [ - "20" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5ba9dda3-35a9-4179-b22d-13d1938a8f69" + "b9f5695d-19f1-431a-be82-0015cbb50b2a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + "b4de42d0-a59c-4125-bb7a-ff0b6c50aa91" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015341Z:5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + "WESTUS2:20180518T221754Z:b4de42d0-a59c-4125-bb7a-ff0b6c50aa91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "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-5063.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063\",\r\n \"name\": \"sqlcrudtest-5063\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:01 GMT" + "Fri, 18 May 2018 22:17:53 GMT" ], "Pragma": [ "no-cache" @@ -354,9 +354,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -364,74 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3e3b81c2-42d3-48bb-a337-82c67ecf259c" + "ab288386-cab7-4f9c-9510-29bd64afb4a3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T015401Z:ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", - "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-3052.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052\",\r\n \"name\": \"sqlcrudtest-3052\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:54:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "cd86cdc6-a466-449c-8312-e202e41b484c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" - ], - "x-ms-correlation-request-id": [ - "c80105e8-124b-4632-81a9-db43bf558c9d" + "509dfb62-6ab9-4868-b509-37c3529c40f3" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015402Z:c80105e8-124b-4632-81a9-db43bf558c9d" + "WESTUS2:20180518T221754Z:509dfb62-6ab9-4868-b509-37c3529c40f3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -443,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -455,20 +394,20 @@ "29" ], "x-ms-client-request-id": [ - "f7aa2bc7-ec5f-4740-ad56-b8a08da57a3a" + "076d4c84-cdd9-4d5c-8f75-a7a351d7802d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -480,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:02 GMT" + "Fri, 18 May 2018 22:17:54 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -495,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "85ba04dc-77b8-4199-8074-1cb930cafb40" + "eb39a50f-6d1a-44e2-ae6f-ff27268dca50" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "de60899c-b274-47f1-903c-a6201c468acb" + "bc87622d-4f6b-46a9-bcb8-52745cc7c112" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015402Z:de60899c-b274-47f1-903c-a6201c468acb" + "WESTUS2:20180518T221755Z:bc87622d-4f6b-46a9-bcb8-52745cc7c112" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2YyZjNkNWU0LTY1NjItNDEzZi1iMjM1LWM1YTQ3OGViZTEzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f2f3d5e4-6562-413f-b235-c5a478ebe13a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:17 GMT" + "Fri, 18 May 2018 22:18:10 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e283b20a-7bb2-4f93-a4c7-fe216834bafa" + "cb8c9e5f-08a0-4b0e-8a27-4745430b8078" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14995" ], "x-ms-correlation-request-id": [ - "6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + "c8857f07-35c1-4d8f-bcbc-5f98774f66c0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015417Z:6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + "WESTUS2:20180518T221810Z:c8857f07-35c1-4d8f-bcbc-5f98774f66c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2YyZjNkNWU0LTY1NjItNDEzZi1iMjM1LWM1YTQ3OGViZTEzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f2f3d5e4-6562-413f-b235-c5a478ebe13a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:31 GMT" + "Fri, 18 May 2018 22:18:25 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ef0f1fc3-fbad-4609-9bec-4b6b1c984a8a" + "3f14d09e-9df3-4965-b8bd-fbf162ce5540" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14994" ], "x-ms-correlation-request-id": [ - "25acdc81-2078-4da3-bf5a-025861fb8140" + "097c7f1a-2e81-4cd6-b5f8-788098d18b14" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015432Z:25acdc81-2078-4da3-bf5a-025861fb8140" + "WESTUS2:20180518T221825Z:097c7f1a-2e81-4cd6-b5f8-788098d18b14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2YyZjNkNWU0LTY1NjItNDEzZi1iMjM1LWM1YTQ3OGViZTEzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f2f3d5e4-6562-413f-b235-c5a478ebe13a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:47 GMT" + "Fri, 18 May 2018 22:18:40 GMT" ], "Pragma": [ "no-cache" @@ -681,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "62af3461-5a38-4cd5-b7c0-1c720d83c90a" + "3526c40e-63d4-4c6d-8742-59bcbc58f6ff" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14993" ], "x-ms-correlation-request-id": [ - "ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + "af51af27-52ff-474b-8c01-0860ba1e125b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015447Z:ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + "WESTUS2:20180518T221840Z:af51af27-52ff-474b-8c01-0860ba1e125b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"fd8c640c-e139-4de3-957e-4408cd66aa3f\",\r\n \"creationDate\": \"2018-05-18T01:54:02.75Z\",\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-18T02:24:35.527Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"name\": \"sqlcrudtest-5992\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"42a0f8db-6fd7-4676-b565-fad2cc2e924e\",\r\n \"creationDate\": \"2018-05-18T22:17:56.15Z\",\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-18T22:48:36.587Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140\",\r\n \"name\": \"sqlcrudtest-140\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -724,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:47 GMT" + "Fri, 18 May 2018 22:18:40 GMT" ], "Pragma": [ "no-cache" @@ -739,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "11c1d299-8d0a-462f-a7d7-79937d2e6cbd" + "af3a7375-0eeb-4232-b3ed-27eb0f564e3c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14992" ], "x-ms-correlation-request-id": [ - "9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + "6f0c17ea-ea09-498e-82ce-7359367e4d2c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015447Z:9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + "WESTUS2:20180518T221841Z:6f0c17ea-ea09-498e-82ce-7359367e4d2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -760,29 +699,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "235" + "234" ], "x-ms-client-request-id": [ - "8cc6f8fe-1a0a-42a7-be7d-438d2cf2244a" + "03383fa9-fcf9-4489-b696-aa67c15d790d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -797,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:48 GMT" + "Fri, 18 May 2018 22:18:40 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -812,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "ec4d3eb3-ccfd-4421-b33e-637cc102c557" + "7ab511bb-c322-48a3-bc07-d3890dbee901" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "0370f574-dc64-401e-b2df-e8a9206c5de3" + "92303d3d-9092-4cd6-9d66-af7c3b8dc75d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015448Z:0370f574-dc64-401e-b2df-e8a9206c5de3" + "WESTUS2:20180518T221841Z:92303d3d-9092-4cd6-9d66-af7c3b8dc75d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,78 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:55:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "7e3ee8e1-873b-42a1-85e8-c6c9bdddb348" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "4388afc1-3066-455d-965f-168451c91936" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T015503Z:4388afc1-3066-455d-965f-168451c91936" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:55:18 GMT" + "Fri, 18 May 2018 22:18:56 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cfd11f7d-19b6-43a3-9c3c-f2c4427f4fc9" + "caf1b90a-8371-4221-8323-64d32262a93e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14991" ], "x-ms-correlation-request-id": [ - "168137b4-1db0-4407-aa5b-ee196d73660f" + "375c77a0-0b23-45af-b7d4-ceb3c149d078" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015518Z:168137b4-1db0-4407-aa5b-ee196d73660f" + "WESTUS2:20180518T221856Z:375c77a0-0b23-45af-b7d4-ceb3c149d078" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:55:33 GMT" + "Fri, 18 May 2018 22:19:11 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bc9066f0-d507-437f-ad74-679b90481264" + "93632b07-399b-435c-8198-2c56e13ce2b9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14990" ], "x-ms-correlation-request-id": [ - "951c4925-c232-4a4c-a60b-d3fbe53d823a" + "27d1ed51-a297-466c-820e-b2b51fde1897" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015533Z:951c4925-c232-4a4c-a60b-d3fbe53d823a" + "WESTUS2:20180518T221911Z:27d1ed51-a297-466c-820e-b2b51fde1897" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:55:48 GMT" + "Fri, 18 May 2018 22:19:26 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "55168349-e7ba-4e98-bdda-f573be8cdd1e" + "452c3894-0192-40bd-9828-9be9d4d92053" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14989" ], "x-ms-correlation-request-id": [ - "33635e6b-9322-458b-b91b-23ffe6e1df81" + "6273fa27-d804-4f39-9045-da7e67b93008" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015548Z:33635e6b-9322-458b-b91b-23ffe6e1df81" + "WESTUS2:20180518T221926Z:6273fa27-d804-4f39-9045-da7e67b93008" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:03 GMT" + "Fri, 18 May 2018 22:19:41 GMT" ], "Pragma": [ "no-cache" @@ -1120,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cea09f57-1e4f-48d7-adea-30b0dd79eaf7" + "06a606f1-e734-44b8-914c-1e8d83a4369c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14988" ], "x-ms-correlation-request-id": [ - "653f085c-7f16-4d1c-9db7-77ac86b9e587" + "83f84d7f-7616-43b9-adec-b9edb22b3003" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015603Z:653f085c-7f16-4d1c-9db7-77ac86b9e587" + "WESTUS2:20180518T221941Z:83f84d7f-7616-43b9-adec-b9edb22b3003" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1141,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1163,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:03 GMT" + "Fri, 18 May 2018 22:19:41 GMT" ], "Pragma": [ "no-cache" @@ -1178,16 +1056,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ca1066d4-0ec7-43fa-b6f8-d860d61496db" + "bf4de78f-3150-45e0-8b0f-3fab27d6cd7a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14987" ], "x-ms-correlation-request-id": [ - "a8da8a69-db03-4022-a7cd-d00a2c805a14" + "e42d7cfb-5245-4df2-aa08-a80e162826d4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015603Z:a8da8a69-db03-4022-a7cd-d00a2c805a14" + "WESTUS2:20180518T221941Z:e42d7cfb-5245-4df2-aa08-a80e162826d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1199,32 +1077,32 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"cloudsa\",\r\n \"password\": \"Yukon900!\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"a\",\r\n \"password\": \"b!\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "85" + "72" ], "x-ms-client-request-id": [ - "ce26c2ed-39f1-47b8-b56c-705e27ed2711" + "097fba34-7b74-4402-9380-2ca0917629c0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"cloudsa\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"a\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "289" + "283" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1236,7 +1114,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:42 GMT" ], "Pragma": [ "no-cache" @@ -1245,16 +1123,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "79007019-754d-4bb0-85f0-e4e735a841b1" + "35442c74-0fcd-4fb6-9661-8fbc80b8e56f" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + "090961c8-6080-4a72-b279-12c8899a5814" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015604Z:b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + "WESTUS2:20180518T221942Z:090961c8-6080-4a72-b279-12c8899a5814" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1266,8 +1144,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1278,17 +1156,17 @@ "88" ], "x-ms-client-request-id": [ - "2806d149-727d-417a-8b80-40d7fbe4bf68" + "331a1146-d32f-4bb6-a3dc-e481bee06e5c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1300,7 +1178,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" @@ -1315,16 +1193,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e0c8255f-4a9e-4251-9a7d-314640703f76" + "d32c3d30-8087-4df8-afff-45e85a82a3e3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "eb509704-9140-4b6a-b875-e9c0fffe0ff8" + "38769f62-7a06-411c-a1ab-20fca16c579d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015604Z:eb509704-9140-4b6a-b875-e9c0fffe0ff8" + "WESTUS2:20180518T221943Z:38769f62-7a06-411c-a1ab-20fca16c579d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1336,23 +1214,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "229b53c5-d62e-41d1-907d-22f8bf461e0a" + "3791d56b-3fe7-44a6-9ab8-aab73904075c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1364,7 +1242,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" @@ -1379,16 +1257,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bfc87e0a-f1f5-4073-a24e-79f1825de53c" + "86755cae-6e99-42fe-a77e-988a0f2ac729" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14986" ], "x-ms-correlation-request-id": [ - "863d1a96-099c-4550-b0ad-ac971ed85159" + "055a4fbe-2164-46f7-adcb-5ca7ee7712ce" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015605Z:863d1a96-099c-4550-b0ad-ac971ed85159" + "WESTUS2:20180518T221943Z:055a4fbe-2164-46f7-adcb-5ca7ee7712ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1400,20 +1278,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "be0f55b2-dcfa-4d64-84ae-24c62ad15656" + "e797c625-9a66-4b09-bd9a-62975021d6d1" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1428,7 +1306,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" @@ -1437,16 +1315,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "13fd1eff-e139-43a9-97fc-d139455062b3" + "a747ebc1-a25b-4cda-b29b-97d0ec4cb56c" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "edc5833f-58ae-409c-ad5e-78b56c2b8175" + "f6e6969f-b6f7-4676-a948-d6db0285c50b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015605Z:edc5833f-58ae-409c-ad5e-78b56c2b8175" + "WESTUS2:20180518T221943Z:f6e6969f-b6f7-4676-a948-d6db0285c50b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1458,13 +1336,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8527?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1Mjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "093e03bf-82b7-4329-96a2-e016aa0ffada" + "09a8b07f-dbaf-4199-a938-bc3ae52a4794" ], "accept-language": [ "en-US" @@ -1486,28 +1364,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:05 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1MjctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-request-id": [ - "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + "6c8a2a9b-3d01-44de-93f8-458820cde4db" ], "x-ms-correlation-request-id": [ - "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + "6c8a2a9b-3d01-44de-93f8-458820cde4db" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015606Z:4a4700a4-1a26-47a6-ab65-ad129a8ce527" + "WESTUS2:20180518T221943Z:6c8a2a9b-3d01-44de-93f8-458820cde4db" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1519,13 +1397,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8527?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1Mjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "22d525f7-d50d-422c-a151-b746c38b8baa" + "bd482cb7-7fc7-496a-870a-e8c4dbde4213" ], "accept-language": [ "en-US" @@ -1547,28 +1425,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:05 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1MjctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14997" ], "x-ms-request-id": [ - "868e8101-8302-4c94-ae25-acb96c26a65f" + "d40a981d-1f72-4bde-8142-2b837f1c66e4" ], "x-ms-correlation-request-id": [ - "868e8101-8302-4c94-ae25-acb96c26a65f" + "d40a981d-1f72-4bde-8142-2b837f1c66e4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015606Z:868e8101-8302-4c94-ae25-acb96c26a65f" + "WESTUS2:20180518T221943Z:d40a981d-1f72-4bde-8142-2b837f1c66e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1582,13 +1460,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-3019" + "sqlcrudtest-8527" ], "CreateServer": [ - "sqlcrudtest-3052" + "sqlcrudtest-5063" ], "TestCreateUpdateDropJobCredential": [ - "sqlcrudtest-5992" + "sqlcrudtest-140" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json index 4d81e551efa6d..cb108b449e7ca 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1232?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1232\": \"2018-05-18 22:13:26Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "5f70a9d2-1bc3-482c-b970-704e8e730577" + "7eab8b3d-2095-4eca-a5d8-72bed1b43df7" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280\",\r\n \"name\": \"sqlcrudtest-8280\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232\",\r\n \"name\": \"sqlcrudtest-1232\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1232\": \"2018-05-18 22:13:26Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:48 GMT" + "Fri, 18 May 2018 22:13:27 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "1014406f-9a29-421a-bcd8-4788a969e242" + "98f76e65-89f4-40ce-9c20-5768c0252af0" ], "x-ms-correlation-request-id": [ - "1014406f-9a29-421a-bcd8-4788a969e242" + "98f76e65-89f4-40ce-9c20-5768c0252af0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014948Z:1014406f-9a29-421a-bcd8-4788a969e242" + "WESTUS2:20180518T221327Z:98f76e65-89f4-40ce-9c20-5768c0252af0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,20 +77,20 @@ "183" ], "x-ms-client-request-id": [ - "2eb29fcd-9f9b-46a4-8dd5-a5d999b475ea" + "0b7bc55a-6c90-4a8c-bbb4-21cfe581d1a5" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:49 GMT" + "Fri, 18 May 2018 22:13:29 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverOperationResults/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverOperationResults/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "6e785afc-cb07-4e53-afaf-39ab28034920" + "c69c47b5-fb6a-47ed-ab34-51b5d2471a9c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + "6460e47f-8bfb-4b24-891f-41d99c99d6f6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014950Z:1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + "WESTUS2:20180518T221330Z:6460e47f-8bfb-4b24-891f-41d99c99d6f6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jNjljNDdiNS1mYjZhLTQ3ZWQtYWIzNC01MWI1ZDI0NzFhOWM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c69c47b5-fb6a-47ed-ab34-51b5d2471a9c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:59 GMT" + "Fri, 18 May 2018 22:13:39 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8edc8344-b7fb-4a61-a3cd-a9d98d8e4b61" + "2b74737a-c909-4f86-b9d1-379ef463f66e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "534561d0-6563-4ff5-9a28-a238c12c7600" + "c6cc1c13-b1b2-4343-b588-3b4f718f0968" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015000Z:534561d0-6563-4ff5-9a28-a238c12c7600" + "WESTUS2:20180518T221340Z:c6cc1c13-b1b2-4343-b588-3b4f718f0968" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jNjljNDdiNS1mYjZhLTQ3ZWQtYWIzNC01MWI1ZDI0NzFhOWM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c69c47b5-fb6a-47ed-ab34-51b5d2471a9c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:20 GMT" + "Fri, 18 May 2018 22:14:00 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "15d66bb2-4ee0-4de5-b1e3-dcc74865c837" + "0575f045-e5f5-4775-986e-8cf57e1bedfd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + "e680f4f2-956a-4a18-a7bc-f7fa851e8aed" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015020Z:19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + "WESTUS2:20180518T221400Z:e680f4f2-956a-4a18-a7bc-f7fa851e8aed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jNjljNDdiNS1mYjZhLTQ3ZWQtYWIzNC01MWI1ZDI0NzFhOWM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c69c47b5-fb6a-47ed-ab34-51b5d2471a9c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:39 GMT" + "Fri, 18 May 2018 22:14:19 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "07681f60-7586-4231-8262-aebd16c28cba" + "e62e486d-def0-4d15-98ea-d4e1fca9fcb4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + "7e675978-7c93-4e85-ba19-fcd8eb5d5920" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015040Z:6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + "WESTUS2:20180518T221420Z:7e675978-7c93-4e85-ba19-fcd8eb5d5920" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-70.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70\",\r\n \"name\": \"sqlcrudtest-70\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-5099.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099\",\r\n \"name\": \"sqlcrudtest-5099\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:40 GMT" + "Fri, 18 May 2018 22:14:19 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1fd3cffc-eeaa-4efd-8b46-c63e9cf520db" + "2ee3c571-a956-4afb-9e16-2eaa77067e3b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "6a4d4e60-e0c4-449d-a987-e8ce53848022" + "d9391b75-fead-479e-8e95-75e246be3754" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015040Z:6a4d4e60-e0c4-449d-a987-e8ce53848022" + "WESTUS2:20180518T221420Z:d9391b75-fead-479e-8e95-75e246be3754" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDY0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,20 +394,20 @@ "29" ], "x-ms-client-request-id": [ - "42605303-5c23-4839-8681-f8b6daa2788a" + "c5b0e33d-8efd-4828-8381-54a8530e917c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:40 GMT" + "Fri, 18 May 2018 22:14:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "5a3ea1c2-6576-403c-b0ba-8ec1f778e58d" + "4e98e78b-79b7-44ae-912f-7c456f3c6cac" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + "f7df9094-1e27-48aa-bdbc-bacf67fae449" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015041Z:9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + "WESTUS2:20180518T221421Z:f7df9094-1e27-48aa-bdbc-bacf67fae449" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2MzYmQ5OTBmLTU2MGQtNDhiNi05MjgyLTdlMjQyNzNiNGY5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c3bd990f-560d-48b6-9282-7e24273b4f9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:56 GMT" + "Fri, 18 May 2018 22:14:35 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4a8cac52-96a6-4472-b92a-8e1d9b340cef" + "e87a011f-8937-4d35-829d-f977bb7ebe0f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "b905f245-b4f0-426e-acf9-48c73d4a75e6" + "dff9ef90-9f81-4f22-90bb-85cd0b10f5af" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015056Z:b905f245-b4f0-426e-acf9-48c73d4a75e6" + "WESTUS2:20180518T221436Z:dff9ef90-9f81-4f22-90bb-85cd0b10f5af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2MzYmQ5OTBmLTU2MGQtNDhiNi05MjgyLTdlMjQyNzNiNGY5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c3bd990f-560d-48b6-9282-7e24273b4f9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:11 GMT" + "Fri, 18 May 2018 22:14:51 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c76db829-4891-4942-b5c2-052fdd4867b9" + "a7d96a72-e1fa-4d79-bab1-bda33da7223d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "ea4e371f-c051-4679-996e-2f10c9b029ef" + "79f2e0a3-17bd-4b78-90c8-241c3b0a9c5f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015111Z:ea4e371f-c051-4679-996e-2f10c9b029ef" + "WESTUS2:20180518T221451Z:79f2e0a3-17bd-4b78-90c8-241c3b0a9c5f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2MzYmQ5OTBmLTU2MGQtNDhiNi05MjgyLTdlMjQyNzNiNGY5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c3bd990f-560d-48b6-9282-7e24273b4f9d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:26 GMT" + "Fri, 18 May 2018 22:15:05 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c9b32992-0881-4b31-92d0-01e9793cb02e" + "ccaef9e7-a8a0-4cf9-af82-435bb17871a9" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + "6f7b612f-b7b5-4ecd-be91-ed5e8f1c4c71" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015126Z:d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + "WESTUS2:20180518T221506Z:6f7b612f-b7b5-4ecd-be91-ed5e8f1c4c71" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDY0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"7a645adf-4ce2-438b-bb7b-99ef97fcb20c\",\r\n \"creationDate\": \"2018-05-18T01:50:41.847Z\",\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-18T02:21:19.207Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"name\": \"sqlcrudtest-5536\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"795e4c87-c085-44d9-94c2-9117ee2db9c4\",\r\n \"creationDate\": \"2018-05-18T22:14:21.13Z\",\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-18T22:45:05.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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064\",\r\n \"name\": \"sqlcrudtest-1064\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:26 GMT" + "Fri, 18 May 2018 22:15:05 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6fa9ee64-5ef9-4f02-a58f-c2227a62a3e1" + "fd931d3c-9f05-4c76-b2a2-795998ff7745" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "57b630b6-cc3a-4500-a800-58beda2f90cc" + "c1bd4de3-8269-480a-a0ab-698af8315e73" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015126Z:57b630b6-cc3a-4500-a800-58beda2f90cc" + "WESTUS2:20180518T221506Z:c1bd4de3-8269-480a-a0ab-698af8315e73" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,29 +699,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "233" + "235" ], "x-ms-client-request-id": [ - "0050b407-3752-4777-8899-eee1a5b96f88" + "73fb5ba7-4121-48ce-95cf-8f15e2470fb0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -736,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:27 GMT" + "Fri, 18 May 2018 22:15:06 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -751,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "7f923ca2-c13e-4e09-bf7a-c11a44a128bd" + "78ee70bb-cbbc-4f34-986d-a4c9c53833f4" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "be311460-b3a6-4a73-968f-46f36fb33ef5" + "596d3545-8b2f-4f7f-9b84-fc3575c30d17" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015127Z:be311460-b3a6-4a73-968f-46f36fb33ef5" + "WESTUS2:20180518T221506Z:596d3545-8b2f-4f7f-9b84-fc3575c30d17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -775,17 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -797,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:42 GMT" + "Fri, 18 May 2018 22:15:21 GMT" ], "Pragma": [ "no-cache" @@ -815,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8385e82c-4146-4d33-ac26-d32afc653ec0" + "3bdce320-c0ff-46c2-bbed-89fbf53e669b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + "7b344021-4f24-47a1-865b-d4dff784a48b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015142Z:bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + "WESTUS2:20180518T221522Z:7b344021-4f24-47a1-865b-d4dff784a48b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:57 GMT" + "Fri, 18 May 2018 22:15:36 GMT" ], "Pragma": [ "no-cache" @@ -876,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ede5d092-8233-4c7f-8282-147205fd5e33" + "fddde452-5deb-4d63-afed-6a6c3767b76e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + "afedb6b0-dfa5-4c09-9828-7f44e9a8db4e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015157Z:cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + "WESTUS2:20180518T221537Z:afedb6b0-dfa5-4c09-9828-7f44e9a8db4e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -897,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:12 GMT" + "Fri, 18 May 2018 22:15:51 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "453fd724-a56d-4b13-b406-9251d72ab390" + "3b590a0c-011c-489b-8ec7-7347fc5cf3fc" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14989" ], "x-ms-correlation-request-id": [ - "f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + "795259e7-68ae-484f-a9b3-b4549520f253" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015213Z:f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + "WESTUS2:20180518T221552Z:795259e7-68ae-484f-a9b3-b4549520f253" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:27 GMT" + "Fri, 18 May 2018 22:16:06 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e4f5c365-4c83-455a-8f1d-bb385252b721" + "b3aee032-7344-4157-8453-f656d40930ee" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14988" ], "x-ms-correlation-request-id": [ - "0f43634a-414a-401a-878e-b0d20e692bcc" + "b2123ebd-61d2-46e4-a100-8a3a160cb65f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015228Z:0f43634a-414a-401a-878e-b0d20e692bcc" + "WESTUS2:20180518T221607Z:b2123ebd-61d2-46e4-a100-8a3a160cb65f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:42 GMT" + "Fri, 18 May 2018 22:16:21 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +1059,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8aa34515-50bb-4019-b534-b43a78d378f9" + "a72de13c-7e43-4397-a9cf-82906de68f0d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14987" ], "x-ms-correlation-request-id": [ - "59956930-e5dd-4302-b829-e10d1ffe45fa" + "a97f22bb-7e37-4291-87f0-ab1ed64ed36c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015243Z:59956930-e5dd-4302-b829-e10d1ffe45fa" + "WESTUS2:20180518T221622Z:a97f22bb-7e37-4291-87f0-ab1ed64ed36c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +1080,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +1102,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:42 GMT" + "Fri, 18 May 2018 22:16:37 GMT" ], "Pragma": [ "no-cache" @@ -1110,6 +1110,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -1117,16 +1120,77 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "de287e13-6eb0-4968-a332-a9d22bb31972" + "97583406-c717-42e2-a2bb-6ba9f5cfb293" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14986" + ], + "x-ms-correlation-request-id": [ + "09f11254-9239-41cd-9f56-67a69cd0d2fd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T221637Z:09f11254-9239-41cd-9f56-67a69cd0d2fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 22:16:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4211301a-7bce-4d04-9193-b107f1161f81" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" ], "x-ms-correlation-request-id": [ - "3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + "5f593306-2f1b-4081-ae78-5a9a3c497278" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015243Z:3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + "WESTUS2:20180518T221652Z:5f593306-2f1b-4081-ae78-5a9a3c497278" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1138,8 +1202,66 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvY3JlZGVudGlhbHMvZHVtbXlsb2dpbj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 22:16:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ec5b7894-8864-420e-bfd9-33f6f8fc9ae6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "c22a4010-1bcd-4025-bcb9-3df3f1bbeb1b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T221652Z:c22a4010-1bcd-4025-bcb9-3df3f1bbeb1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1150,20 +1272,20 @@ "88" ], "x-ms-client-request-id": [ - "5c981184-6e05-42f2-8de8-3c7d15c28db8" + "bd8368fa-6868-42a5-81e1-24212075e592" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "290" + "292" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1175,7 +1297,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:42 GMT" + "Fri, 18 May 2018 22:16:52 GMT" ], "Pragma": [ "no-cache" @@ -1184,16 +1306,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0f45d530-59ca-4b9c-9dc7-c938fb21b753" + "a0014ae6-9676-41ee-a904-1127994d4842" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1196" ], "x-ms-correlation-request-id": [ - "9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + "f8664fc4-4870-4b79-966d-34fcf211a476" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015243Z:9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + "WESTUS2:20180518T221653Z:f8664fc4-4870-4b79-966d-34fcf211a476" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1205,32 +1327,32 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvdGFyZ2V0R3JvdXBzL3RnMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-5099\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "382" + "386" ], "x-ms-client-request-id": [ - "b85db771-1179-4c83-8fa9-9575d64ef0c2" + "58111fb3-58ac-4462-8ebd-e33d3696220b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-5099\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "536" + "542" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1242,7 +1364,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:44 GMT" + "Fri, 18 May 2018 22:16:53 GMT" ], "Pragma": [ "no-cache" @@ -1251,16 +1373,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a7b9decd-bc91-4c6c-a8a6-c42804ddbb22" + "58a3a99b-1b01-4848-bcef-7edb26dba443" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1195" ], "x-ms-correlation-request-id": [ - "fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + "eb32c8a3-abe2-4e6c-9ce7-e8cd2abc08ca" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015244Z:fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + "WESTUS2:20180518T221654Z:eb32c8a3-abe2-4e6c-9ce7-e8cd2abc08ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1272,8 +1394,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -1284,20 +1406,20 @@ "140" ], "x-ms-client-request-id": [ - "fec1092a-c3fe-47e0-b138-69f4e4fa85b9" + "d178367b-d4d5-4769-916c-e12072c2a3d5" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "395" + "397" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1309,7 +1431,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:44 GMT" + "Fri, 18 May 2018 22:16:54 GMT" ], "Pragma": [ "no-cache" @@ -1318,16 +1440,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "298c4c5f-bf8f-4b6a-85b2-e02cfeb85b8a" + "07b5f81e-f477-4e01-9700-baa7e8c13cfa" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1194" ], "x-ms-correlation-request-id": [ - "15ed289a-1aea-4512-9f62-683045886241" + "cc5b0dbe-46d0-44e6-b1a8-f7156e757635" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015244Z:15ed289a-1aea-4512-9f62-683045886241" + "WESTUS2:20180518T221654Z:cc5b0dbe-46d0-44e6-b1a8-f7156e757635" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1339,32 +1461,32 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "458" + "462" ], "x-ms-client-request-id": [ - "ad24e4af-75b9-4d8a-a715-5c0178123dbd" + "bdaa09e6-8271-4bdc-b8a8-09eb600f78ee" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "863" + "869" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1376,7 +1498,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:45 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" @@ -1385,16 +1507,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "43024d33-19fb-4bb0-94ec-ccd1b26b781a" + "3efe7c2e-d86a-4498-ba1f-c17846ec1e7f" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1193" ], "x-ms-correlation-request-id": [ - "9fce6364-5342-4bf2-b343-065bb5b4eb5d" + "575d9432-de42-4103-93d7-c959bbb1daab" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015245Z:9fce6364-5342-4bf2-b343-065bb5b4eb5d" + "WESTUS2:20180518T221655Z:575d9432-de42-4103-93d7-c959bbb1daab" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1406,29 +1528,29 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "1197" + "1203" ], "x-ms-client-request-id": [ - "9b6614e0-4897-4365-8584-8f7d29f697d3" + "6e090100-9197-4218-a052-9c1072ddd40d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1440,7 +1562,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" @@ -1455,16 +1577,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c9246d29-daf3-4658-8d7c-1729e012680e" + "9088ce27-1af7-4e4a-bddd-3d3a94bafd11" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1192" ], "x-ms-correlation-request-id": [ - "554a1267-54af-4305-974b-ace34f7e5ad7" + "bbaf66e1-3ef8-452b-b9f7-6786156f20e0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015246Z:554a1267-54af-4305-974b-ace34f7e5ad7" + "WESTUS2:20180518T221655Z:bbaf66e1-3ef8-452b-b9f7-6786156f20e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1476,23 +1598,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "68501a29-a61c-40dd-8ac4-1de265a3f83c" + "32b4536d-4b12-4010-aedd-e52a5236f2ce" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1504,7 +1626,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" @@ -1519,16 +1641,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "552adf15-400e-44bd-b9be-3089309a18a4" + "9f5192ea-0cc7-492a-91f6-87e29c2b2ad1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14983" ], "x-ms-correlation-request-id": [ - "21bed326-906a-4eaa-a9da-668fa3736795" + "8f37669c-9558-4143-8388-25bdc0a1fc42" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015246Z:21bed326-906a-4eaa-a9da-668fa3736795" + "WESTUS2:20180518T221656Z:8f37669c-9558-4143-8388-25bdc0a1fc42" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1540,20 +1662,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6e898082-2d26-47ba-a0e2-651adf9b7c95" + "e39c5795-3eae-4ff8-a236-61ac1b255a41" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1568,7 +1690,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:56 GMT" ], "Pragma": [ "no-cache" @@ -1577,16 +1699,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "65fbdfe4-99ee-42f9-979b-b1d4be5fd069" + "952413b5-175e-41fc-b429-05819c2d22a2" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "e6324b08-9fe8-4af7-8960-558602da097a" + "44cbb20d-a099-40c0-befa-3306cc8c8283" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015246Z:e6324b08-9fe8-4af7-8960-558602da097a" + "WESTUS2:20180518T221656Z:44cbb20d-a099-40c0-befa-3306cc8c8283" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1598,13 +1720,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1232?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9b96a71c-7273-48ef-b9af-7d69a6f4f77b" + "bb34472a-c31c-4c16-9785-cd48da0fe7fb" ], "accept-language": [ "en-US" @@ -1626,13 +1748,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyMzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1641,13 +1763,13 @@ "14999" ], "x-ms-request-id": [ - "51fa52af-2017-421f-86b5-75149d0ec40e" + "5c994a0b-3134-438b-a282-2f21a4ddf099" ], "x-ms-correlation-request-id": [ - "51fa52af-2017-421f-86b5-75149d0ec40e" + "5c994a0b-3134-438b-a282-2f21a4ddf099" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015247Z:51fa52af-2017-421f-86b5-75149d0ec40e" + "WESTUS2:20180518T221656Z:5c994a0b-3134-438b-a282-2f21a4ddf099" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1659,13 +1781,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1232?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "66a7520a-e15c-4086-9f6d-74e7ce1df4dd" + "b95c522b-0c09-4a23-8738-8586a943f06b" ], "accept-language": [ "en-US" @@ -1687,13 +1809,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:47 GMT" + "Fri, 18 May 2018 22:16:56 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyMzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1702,13 +1824,13 @@ "14998" ], "x-ms-request-id": [ - "204bab47-8838-44f8-91f7-4ce797ca1e18" + "6333310f-38fa-4229-82dd-c857b023e4a7" ], "x-ms-correlation-request-id": [ - "204bab47-8838-44f8-91f7-4ce797ca1e18" + "6333310f-38fa-4229-82dd-c857b023e4a7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015247Z:204bab47-8838-44f8-91f7-4ce797ca1e18" + "WESTUS2:20180518T221657Z:6333310f-38fa-4229-82dd-c857b023e4a7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1722,13 +1844,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8280" + "sqlcrudtest-1232" ], "CreateServer": [ - "sqlcrudtest-70" + "sqlcrudtest-5099" ], "TestCreateUpdateDropJobStep": [ - "sqlcrudtest-5536" + "sqlcrudtest-1064" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json index 311d69edb1301..221e731530016 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7726?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc3MjY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7726\": \"2018-05-18 22:27:40Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "9b294804-0b29-4f7d-807d-2c3d180d4644" + "3e8aa359-2c5e-4eac-8419-ab5fc5857bb4" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439\",\r\n \"name\": \"sqlcrudtest-8439\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726\",\r\n \"name\": \"sqlcrudtest-7726\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7726\": \"2018-05-18 22:27:40Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:08:55 GMT" + "Fri, 18 May 2018 22:27:41 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "591e1ddd-ab10-4051-af74-0fc1e173b05f" + "109431f8-0fa9-4bf2-9c6a-412a2fd39bf7" ], "x-ms-correlation-request-id": [ - "591e1ddd-ab10-4051-af74-0fc1e173b05f" + "109431f8-0fa9-4bf2-9c6a-412a2fd39bf7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020856Z:591e1ddd-ab10-4051-af74-0fc1e173b05f" + "WESTUS2:20180518T222741Z:109431f8-0fa9-4bf2-9c6a-412a2fd39bf7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,20 +77,20 @@ "183" ], "x-ms-client-request-id": [ - "f5d4157c-690f-4a47-9f93-1cf205d58060" + "08cba42e-1123-4d84-b92d-6024dd00af0d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:00 GMT" + "Fri, 18 May 2018 22:27:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverOperationResults/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverOperationResults/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "1ba5103e-f115-4bca-bb0e-ad4987ac5e3f" + "b861d9a0-388e-4681-b49c-7786e3e0d422" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "02b70de8-a117-4ed1-b94d-357d6da7dedb" + "a2ff99ff-9cf2-440b-bfbb-f293482644e4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020901Z:02b70de8-a117-4ed1-b94d-357d6da7dedb" + "WESTUS2:20180518T222744Z:a2ff99ff-9cf2-440b-bfbb-f293482644e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iODYxZDlhMC0zODhlLTQ2ODEtYjQ5Yy03Nzg2ZTNlMGQ0MjI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b861d9a0-388e-4681-b49c-7786e3e0d422\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:10 GMT" + "Fri, 18 May 2018 22:27:53 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "2fb917cf-801e-4e49-94a0-584b3f7e0c0f" + "e435f652-4173-4aff-9843-9eb151b30ef4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "9e9ae5ed-2680-40ca-90db-576ab89d8708" + "fc83678f-a7e4-462a-971f-72553b825bb1" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020911Z:9e9ae5ed-2680-40ca-90db-576ab89d8708" + "WESTUS2:20180518T222754Z:fc83678f-a7e4-462a-971f-72553b825bb1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iODYxZDlhMC0zODhlLTQ2ODEtYjQ5Yy03Nzg2ZTNlMGQ0MjI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b861d9a0-388e-4681-b49c-7786e3e0d422\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:31 GMT" + "Fri, 18 May 2018 22:28:14 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4e3d98f4-fef0-459c-86d7-ee419daff3dc" + "66555da5-18c9-4cf0-a013-8660ca974e6b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "fe27887b-9403-4ef3-8397-4386d5d973bf" + "a5febb96-193e-42ce-a074-73e08e821c3b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020931Z:fe27887b-9403-4ef3-8397-4386d5d973bf" + "WESTUS2:20180518T222814Z:a5febb96-193e-42ce-a074-73e08e821c3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iODYxZDlhMC0zODhlLTQ2ODEtYjQ5Yy03Nzg2ZTNlMGQ0MjI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b861d9a0-388e-4681-b49c-7786e3e0d422\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:51 GMT" + "Fri, 18 May 2018 22:28:33 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "26c34bbe-e5fb-4390-a0a3-a88cea41cc62" + "d40c519b-8a8e-4383-bb67-bc0e6035015c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "388a853f-f340-472f-bbbc-fb2fb1fe1d17" + "b21bf4fd-d5f8-4ac8-9b4f-c8c997270e91" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020951Z:388a853f-f340-472f-bbbc-fb2fb1fe1d17" + "WESTUS2:20180518T222834Z:b21bf4fd-d5f8-4ac8-9b4f-c8c997270e91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-9682.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682\",\r\n \"name\": \"sqlcrudtest-9682\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-2390.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390\",\r\n \"name\": \"sqlcrudtest-2390\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:51 GMT" + "Fri, 18 May 2018 22:28:33 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a8bfab4d-0c80-4368-bed2-327a2734fbb3" + "8848303e-ba16-448e-85de-4c2126bc8791" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "fad56f04-36d5-4adb-9508-1a01905f6074" + "5cfe21f1-d008-4a45-a36c-88c89a430fbc" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020951Z:fad56f04-36d5-4adb-9508-1a01905f6074" + "WESTUS2:20180518T222834Z:5cfe21f1-d008-4a45-a36c-88c89a430fbc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,20 +394,20 @@ "29" ], "x-ms-client-request-id": [ - "50e9ab21-7745-4ac3-ad13-524d9f7d702f" + "45e90c76-d3f7-42dc-b28e-ab466e4994c8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:52 GMT" + "Fri, 18 May 2018 22:28:34 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "665d8040-3056-4d89-ac9c-501cc346792c" + "3f6f7736-7d94-4368-a223-583264861d5b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "c42df404-d534-4513-998a-663e77c7a1a3" + "1fc9f6bd-d9f8-41e3-8737-91ecb679429d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020953Z:c42df404-d534-4513-998a-663e77c7a1a3" + "WESTUS2:20180518T222834Z:1fc9f6bd-d9f8-41e3-8737-91ecb679429d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNiMDkxNzEwLTMwNjQtNDE2Mi05MDllLTRmZGQ5ZWE3ZGE3ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3b091710-3064-4162-909e-4fdd9ea7da74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:07 GMT" + "Fri, 18 May 2018 22:28:49 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a113ea25-5c32-481f-8b82-11d29999e3d9" + "9d251d99-e470-4e8f-89d7-c7894268676d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "87923036-a16f-4b5f-8df1-f2da272eeae9" + "754ab701-aa1e-4079-afe1-46b1576dae67" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021008Z:87923036-a16f-4b5f-8df1-f2da272eeae9" + "WESTUS2:20180518T222850Z:754ab701-aa1e-4079-afe1-46b1576dae67" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNiMDkxNzEwLTMwNjQtNDE2Mi05MDllLTRmZGQ5ZWE3ZGE3ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3b091710-3064-4162-909e-4fdd9ea7da74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:22 GMT" + "Fri, 18 May 2018 22:29:04 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8075ae56-5932-430b-8c0a-2208b7f50a4e" + "76565de7-22e6-44a3-a361-9770e7aa0a83" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + "ed23544b-82a4-440c-a7ad-aa8010205655" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021023Z:0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + "WESTUS2:20180518T222905Z:ed23544b-82a4-440c-a7ad-aa8010205655" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNiMDkxNzEwLTMwNjQtNDE2Mi05MDllLTRmZGQ5ZWE3ZGE3ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3b091710-3064-4162-909e-4fdd9ea7da74\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:37 GMT" + "Fri, 18 May 2018 22:29:19 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "faf03d7f-c54f-4bc9-b999-e52754b4be3a" + "3a6c8f0c-26f3-49ea-b328-4c8ca5978138" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "02f4d2da-d956-449c-8605-7514a63e8308" + "b4a072bb-2905-4106-8b7e-4a400ba1d508" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021038Z:02f4d2da-d956-449c-8605-7514a63e8308" + "WESTUS2:20180518T222920Z:b4a072bb-2905-4106-8b7e-4a400ba1d508" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"0c1971af-c80b-40af-aef7-b15a1fd9e008\",\r\n \"creationDate\": \"2018-05-18T02:09:53.273Z\",\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-18T02:40:33.04Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"name\": \"sqlcrudtest-6658\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"c2911a00-fffc-4c03-8bec-2e31c5efa0f2\",\r\n \"creationDate\": \"2018-05-18T22:28:34.99Z\",\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-18T22:59:13.73Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124\",\r\n \"name\": \"sqlcrudtest-1124\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:37 GMT" + "Fri, 18 May 2018 22:29:19 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8fb1931b-b941-41f9-9b98-a7015edfbc5f" + "f1cffec2-5a8e-4330-b7d1-f33a024de380" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "4d14e362-2526-4ebf-aa72-79376e39c448" + "1a1c1c89-d809-436e-b9e6-af79faa9d47a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021038Z:4d14e362-2526-4ebf-aa72-79376e39c448" + "WESTUS2:20180518T222920Z:1a1c1c89-d809-436e-b9e6-af79faa9d47a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,10 +699,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -711,20 +711,20 @@ "235" ], "x-ms-client-request-id": [ - "b0fecd09-8f58-4881-bb50-99d50257ce12" + "b605e732-818d-41c0-8598-0475c898bb2e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "70" + "71" ], "Content-Type": [ "application/json; charset=utf-8" @@ -736,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:38 GMT" + "Fri, 18 May 2018 22:29:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -751,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "ffe52cea-2a9a-4732-aff0-90b5c99bdd8b" + "1019aaa3-df78-41e5-aee0-31e79bf7526b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "f1988fe5-a740-44bf-a774-7562d35d1f6d" + "e49718a2-989c-4909-804e-ef0ca9d3efd6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021039Z:f1988fe5-a740-44bf-a774-7562d35d1f6d" + "WESTUS2:20180518T222920Z:e49718a2-989c-4909-804e-ef0ca9d3efd6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -775,17 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -797,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:54 GMT" + "Fri, 18 May 2018 22:29:34 GMT" ], "Pragma": [ "no-cache" @@ -815,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "80efc866-825c-4293-936d-cddc8a3f1896" + "1affbb9c-8b4a-4386-aa62-fe48435464cb" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "7cb9de30-074d-486c-a3f7-33cc8b3edb66" + "e1c6a2c4-3dcf-4e26-ad32-afda00387529" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021054Z:7cb9de30-074d-486c-a3f7-33cc8b3edb66" + "WESTUS2:20180518T222935Z:e1c6a2c4-3dcf-4e26-ad32-afda00387529" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:08 GMT" + "Fri, 18 May 2018 22:29:50 GMT" ], "Pragma": [ "no-cache" @@ -876,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fd41e475-68a0-455b-9a41-1b0e718d5043" + "c343098a-feb4-48ad-9d65-4d8ba9478cfc" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "3df93709-4900-402e-934f-f54cb39cec4a" + "174e12ee-a6e3-4039-b939-f71fc1188953" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021109Z:3df93709-4900-402e-934f-f54cb39cec4a" + "WESTUS2:20180518T222950Z:174e12ee-a6e3-4039-b939-f71fc1188953" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -897,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:23 GMT" + "Fri, 18 May 2018 22:30:05 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bd273ef5-c5c4-47ea-abed-6146f2117412" + "25c31095-24b5-4fc1-afcf-6009dd5bcdbd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14989" ], "x-ms-correlation-request-id": [ - "da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + "bfd363f6-5ea4-4890-a606-cf7bb6acc88d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021124Z:da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + "WESTUS2:20180518T223005Z:bfd363f6-5ea4-4890-a606-cf7bb6acc88d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:39 GMT" + "Fri, 18 May 2018 22:30:20 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3a2e5d87-a2c7-4e93-a304-8d8fd6fc47da" + "ee485bc1-3a7e-41b7-9ff7-c75db719065f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14988" ], "x-ms-correlation-request-id": [ - "bd217bda-45f0-4202-bf0d-e89e1328467c" + "9f8f0665-93ac-4250-95ef-6e366a3c1ed7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021139Z:bd217bda-45f0-4202-bf0d-e89e1328467c" + "WESTUS2:20180518T223020Z:9f8f0665-93ac-4250-95ef-6e366a3c1ed7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:54 GMT" + "Fri, 18 May 2018 22:30:35 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +1059,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3917201e-6d13-4dbd-8728-f015f600b02c" + "369240f3-0ccc-4b5f-bc5a-763cc095b8cb" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14987" ], "x-ms-correlation-request-id": [ - "c12b2b47-460e-48fe-b61f-8833122249e1" + "7caa05af-d07d-4686-9b25-8efc11f0859e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021154Z:c12b2b47-460e-48fe-b61f-8833122249e1" + "WESTUS2:20180518T223035Z:7caa05af-d07d-4686-9b25-8efc11f0859e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +1080,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +1102,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:08 GMT" + "Fri, 18 May 2018 22:30:50 GMT" ], "Pragma": [ "no-cache" @@ -1120,16 +1120,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "13f269e0-a8cb-4a99-9af5-92d74e51877b" + "eae5072a-834f-4776-9440-964a327d8314" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14986" ], "x-ms-correlation-request-id": [ - "c4522743-f02d-441e-bd92-e9d242b28be4" + "e8582859-cd2c-414b-a4c9-32389f9d9b1b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021209Z:c4522743-f02d-441e-bd92-e9d242b28be4" + "WESTUS2:20180518T223050Z:e8582859-cd2c-414b-a4c9-32389f9d9b1b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1141,17 +1141,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1163,7 +1163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:23 GMT" + "Fri, 18 May 2018 22:30:50 GMT" ], "Pragma": [ "no-cache" @@ -1171,9 +1171,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -1181,74 +1178,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d0b58104-795a-407b-ae03-d7529c6d3cea" + "c31fb77d-324a-4877-9977-8e943b350bc0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14985" ], "x-ms-correlation-request-id": [ - "8509015d-97b7-43dd-b4dc-2ebb5d134534" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T021224Z:8509015d-97b7-43dd-b4dc-2ebb5d134534" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "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\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 02:12:23 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "49ae86f1-2699-4d2d-9cf0-36378c0f7f2b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" - ], - "x-ms-correlation-request-id": [ - "9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + "b38dd67c-31af-43af-8dcf-56a5765902b7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021224Z:9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + "WESTUS2:20180518T223050Z:b38dd67c-31af-43af-8dcf-56a5765902b7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1260,8 +1199,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1272,17 +1211,17 @@ "88" ], "x-ms-client-request-id": [ - "fc46c53a-ec48-4edf-b662-45e406f619de" + "7eea09f7-4ff7-4deb-8aa5-094ebd12830d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ "292" @@ -1297,7 +1236,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:25 GMT" + "Fri, 18 May 2018 22:30:52 GMT" ], "Pragma": [ "no-cache" @@ -1306,16 +1245,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "011dfa85-578a-413c-a3f0-700f4ea8fe02" + "17a80222-82c3-4cb4-b70e-2562c86210e1" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "8d245ae9-f27b-4acb-ad03-af9a898704a1" + "1df31b27-2bde-4647-8536-af18b2185105" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021226Z:8d245ae9-f27b-4acb-ad03-af9a898704a1" + "WESTUS2:20180518T223052Z:1df31b27-2bde-4647-8536-af18b2185105" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1327,10 +1266,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1339,17 +1278,17 @@ "372" ], "x-ms-client-request-id": [ - "56df17b1-3976-4628-b176-21c0ea3b8d3b" + "d0015844-6027-400f-aca3-84b82bec933f" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Length": [ "528" @@ -1364,7 +1303,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:25 GMT" + "Fri, 18 May 2018 22:30:52 GMT" ], "Pragma": [ "no-cache" @@ -1373,16 +1312,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ec4840fe-2b35-4f2f-b209-0959ab5bb70d" + "f727da0f-3f9a-4e4d-98e1-3faf64dc93f1" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + "47fa54da-aac6-4c53-9cf5-54edcfb44b76" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021226Z:1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + "WESTUS2:20180518T223053Z:47fa54da-aac6-4c53-9cf5-54edcfb44b76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1394,10 +1333,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1406,17 +1345,17 @@ "1267" ], "x-ms-client-request-id": [ - "2c2ac406-3fef-428a-81e6-fa8e46d75db1" + "caeab0df-8e53-4a71-b35d-492ab9d7026c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1428,7 +1367,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" @@ -1443,16 +1382,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d94c9f3a-81a8-4e50-8f35-c205dc8ba20e" + "522817c2-913c-43a0-8774-acfb1e9a1c1b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-correlation-request-id": [ - "c3cd44bb-00be-4663-a42a-7fe8be68f418" + "7f66ad3f-cd98-4a15-b94b-ee5a665b8196" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:c3cd44bb-00be-4663-a42a-7fe8be68f418" + "WESTUS2:20180518T223053Z:7f66ad3f-cd98-4a15-b94b-ee5a665b8196" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1464,23 +1403,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7a5e168d-344c-4eff-a4ae-ce243f05afbe" + "31ca6812-d9ac-44a1-9a64-24eed3f38382" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1492,7 +1431,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" @@ -1507,16 +1446,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8ea896a8-0449-427e-9ffb-f2cc3dbc028e" + "a7343daf-3fe2-443c-8b9a-fe00933f55d5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14984" ], "x-ms-correlation-request-id": [ - "7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + "0a9cfe9d-49f8-4d48-8798-796f4241aa0f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + "WESTUS2:20180518T223053Z:0a9cfe9d-49f8-4d48-8798-796f4241aa0f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1528,20 +1467,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4b0b76a4-dd0a-4ee7-9db0-a70997ca9715" + "5f39d31c-4263-4249-95f3-73e1370a3440" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1556,7 +1495,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" @@ -1565,16 +1504,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ac65e6b0-773d-4a17-8f10-aaf6a376c123" + "d34ae65e-1d48-47dc-b605-dec2a22f43c3" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "26776d95-65b2-4243-95ab-4075aacfdd94" + "5fdcb136-7ee5-4e5f-9945-5dfa26882501" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:26776d95-65b2-4243-95ab-4075aacfdd94" + "WESTUS2:20180518T223053Z:5fdcb136-7ee5-4e5f-9945-5dfa26882501" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1586,13 +1525,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7726?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc3MjY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6e56fe0e-1efb-4924-98fb-74fdd9210f41" + "0257f392-882a-4488-b1da-fa42e3a7e3da" ], "accept-language": [ "en-US" @@ -1614,28 +1553,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDc3MjYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14997" ], "x-ms-request-id": [ - "644f08d8-3c28-4568-b310-c9181b8aaf1f" + "f1de9b95-ad8a-4a87-906d-2cfcca344d9d" ], "x-ms-correlation-request-id": [ - "644f08d8-3c28-4568-b310-c9181b8aaf1f" + "f1de9b95-ad8a-4a87-906d-2cfcca344d9d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:644f08d8-3c28-4568-b310-c9181b8aaf1f" + "WESTUS2:20180518T223054Z:f1de9b95-ad8a-4a87-906d-2cfcca344d9d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1647,13 +1586,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7726?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc3MjY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "85d1950f-76a0-4c39-ad4f-9da5cfb68450" + "0b25737d-e827-4f1c-9723-ebfe6e8c043f" ], "accept-language": [ "en-US" @@ -1675,28 +1614,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:27 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDc3MjYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14996" ], "x-ms-request-id": [ - "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + "d8d62667-98d6-45a7-9463-348962d3ccfa" ], "x-ms-correlation-request-id": [ - "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + "d8d62667-98d6-45a7-9463-348962d3ccfa" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021228Z:41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + "WESTUS2:20180518T223054Z:d8d62667-98d6-45a7-9463-348962d3ccfa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1710,17 +1649,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8439" + "sqlcrudtest-7726" ], "CreateServer": [ - "sqlcrudtest-9682" + "sqlcrudtest-2390" ], "TestCreateUpdateDropTargetGroup": [ - "sqlcrudtest-6658" + "sqlcrudtest-1124" ] }, "Variables": { - "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", - "DefaultLocation": "west us 2" + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" } } \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json index 2b0da26b149f6..d01d9f61b4db1 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8293?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8293\": \"2018-05-18 22:19:46Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "06e2580b-7e7c-4562-8a83-34e9b9dda01e" + "47e2afa8-82f2-49d1-a102-7c7340f07b70" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276\",\r\n \"name\": \"sqlcrudtest-7276\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293\",\r\n \"name\": \"sqlcrudtest-8293\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8293\": \"2018-05-18 22:19:46Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,22 +38,22 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:04 GMT" + "Fri, 18 May 2018 22:19:46 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-request-id": [ - "75b687e7-ee3c-4263-aa1e-022cff90deae" + "24ac1144-e5c6-4311-98c6-4ef3ea53bca2" ], "x-ms-correlation-request-id": [ - "75b687e7-ee3c-4263-aa1e-022cff90deae" + "24ac1144-e5c6-4311-98c6-4ef3ea53bca2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030405Z:75b687e7-ee3c-4263-aa1e-022cff90deae" + "WESTUS2:20180518T221946Z:24ac1144-e5c6-4311-98c6-4ef3ea53bca2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,17 +77,17 @@ "183" ], "x-ms-client-request-id": [ - "fc894820-5f49-412d-a7c2-8441841577de" + "f44574e6-8924-46e0-aa2e-f7bee0cbab44" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:08 GMT" + "Fri, 18 May 2018 22:19:48 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverOperationResults/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "e5ec2759-c49a-4708-9639-0d603c57ef0c" + "bf5a21a4-d6e5-40ee-98e4-81aefb003734" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + "4f136595-be8e-441f-bcc9-2b04fd8a529a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030408Z:6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + "WESTUS2:20180518T221948Z:4f136595-be8e-441f-bcc9-2b04fd8a529a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iZjVhMjFhNC1kNmU1LTQwZWUtOThlNC04MWFlZmIwMDM3MzQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bf5a21a4-d6e5-40ee-98e4-81aefb003734\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:17 GMT" + "Fri, 18 May 2018 22:19:58 GMT" ], "Pragma": [ "no-cache" @@ -181,77 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "01944712-5784-460b-9a58-488e83deb636" + "784e99c1-5d78-459b-9052-c5d01f9d698a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-correlation-request-id": [ - "d818ba5c-16d6-43da-9d27-a098e9de55d2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030418Z:d818ba5c-16d6-43da-9d27-a098e9de55d2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:04:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "20" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "11c4face-b9cc-4f4b-bf92-9adca285fc47" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14999" ], "x-ms-correlation-request-id": [ - "2cf39562-13ef-4545-b327-4678945d2ffc" + "5cecbe38-0a7d-4387-a328-ff82e2586818" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030438Z:2cf39562-13ef-4545-b327-4678945d2ffc" + "WESTUS2:20180518T221959Z:5cecbe38-0a7d-4387-a328-ff82e2586818" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iZjVhMjFhNC1kNmU1LTQwZWUtOThlNC04MWFlZmIwMDM3MzQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bf5a21a4-d6e5-40ee-98e4-81aefb003734\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:58 GMT" + "Fri, 18 May 2018 22:20:18 GMT" ], "Pragma": [ "no-cache" @@ -303,199 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "eb6ad01f-1588-475e-bdf3-0480bb80281f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" - ], - "x-ms-correlation-request-id": [ - "dbb97c39-499b-43de-8468-06ff8bf4f3ca" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030458Z:dbb97c39-499b-43de-8468-06ff8bf4f3ca" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:05:18 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "fceda5bf-dea0-469f-a5f8-3bc30ddc72d2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-correlation-request-id": [ - "933e215c-8409-4977-87cd-eca233d62136" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030518Z:933e215c-8409-4977-87cd-eca233d62136" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:05:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "8688d426-c5b1-43d4-8e8b-61c4569a0029" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "5f438d54-e463-4a8f-9494-dac531d50e06" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030534Z:5f438d54-e463-4a8f-9494-dac531d50e06" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/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\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:05:48 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "f1ae494c-5d7f-4f78-8cd8-a8e7f5489d7d" + "37c20d5c-bdb9-4b5e-9574-5a1ec6f46a72" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14998" ], "x-ms-correlation-request-id": [ - "e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + "7e8d627f-abb2-4b64-9e0a-adbad6d017e2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030549Z:e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + "WESTUS2:20180518T222019Z:7e8d627f-abb2-4b64-9e0a-adbad6d017e2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -507,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iZjVhMjFhNC1kNmU1LTQwZWUtOThlNC04MWFlZmIwMDM3MzQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bf5a21a4-d6e5-40ee-98e4-81aefb003734\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -529,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:03 GMT" + "Fri, 18 May 2018 22:20:38 GMT" ], "Pragma": [ "no-cache" @@ -547,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "902f57a8-dc42-487e-9150-3abb197cec1f" + "d7366b87-da33-4410-b95a-858f10f29e4c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14997" ], "x-ms-correlation-request-id": [ - "7297f647-01ac-4a0d-b85f-c3312b204e29" + "f95aa685-cdbf-47a0-a796-084f2fe01712" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030604Z:7297f647-01ac-4a0d-b85f-c3312b204e29" + "WESTUS2:20180518T222039Z:f95aa685-cdbf-47a0-a796-084f2fe01712" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -568,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-7378.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378\",\r\n \"name\": \"sqlcrudtest-7378\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-8803.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803\",\r\n \"name\": \"sqlcrudtest-8803\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -590,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:03 GMT" + "Fri, 18 May 2018 22:20:38 GMT" ], "Pragma": [ "no-cache" @@ -605,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "72bcaaaa-2153-463b-9ef9-1771a97359e4" + "c46aa7dd-e3e6-4a6e-9276-525b2547214b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14996" ], "x-ms-correlation-request-id": [ - "660d544f-5180-450b-ba0c-efaa332394c7" + "58fd6d7e-bbcb-4197-abc9-9089ea4256b6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030604Z:660d544f-5180-450b-ba0c-efaa332394c7" + "WESTUS2:20180518T222039Z:58fd6d7e-bbcb-4197-abc9-9089ea4256b6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -626,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/firewallRules/allowAll?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "RequestHeaders": { @@ -638,17 +394,17 @@ "101" ], "x-ms-client-request-id": [ - "bd170b63-da64-4ea6-9b17-af0ff1732a80" + "ea32a00a-f15a-452b-8e8e-7852e199372e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "340" @@ -660,13 +416,13 @@ "no-store, no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:04 GMT" + "Fri, 18 May 2018 22:20:39 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f9e1e810-36f5-4e2b-abf4-a44b52349e26" + "6ac03957-5666-4401-bb34-570f08733728" ], "X-Content-Type-Options": [ "nosniff" @@ -684,17 +440,17 @@ "1198" ], "x-ms-correlation-request-id": [ - "03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + "2b659042-680e-4e08-b87c-34e20e6b22fa" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030605Z:03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + "WESTUS2:20180518T222040Z:2b659042-680e-4e08-b87c-34e20e6b22fa" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MzcyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -705,20 +461,20 @@ "29" ], "x-ms-client-request-id": [ - "c27301cb-ae45-43cb-a631-dec6b1ced66a" + "963ab102-6f01-431a-93c8-1f395b185a3d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -730,13 +486,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:05 GMT" + "Fri, 18 May 2018 22:20:39 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -745,19 +501,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "d659f7c3-ead5-4a2f-8b4d-14c0b82a417b" + "9bddcffd-e482-4df4-a3bb-38af9b060a75" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "5cd10198-1cd0-4803-8cd2-156ef27c4877" + "4ebc4276-6035-4e58-a8ef-0a178d95b933" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030605Z:5cd10198-1cd0-4803-8cd2-156ef27c4877" + "WESTUS2:20180518T222040Z:4ebc4276-6035-4e58-a8ef-0a178d95b933" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -769,17 +525,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkMmQ3OTU5LWY4NjAtNDdmNC1hNTZkLTQ3M2IwYjY3NmEyZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6d2d7959-f860-47f4-a56d-473b0b676a2e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -791,7 +547,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:20 GMT" + "Fri, 18 May 2018 22:20:55 GMT" ], "Pragma": [ "no-cache" @@ -809,16 +565,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a5436133-f50d-4e17-a18c-f00746e9aa09" + "daf612d1-410e-4626-a49c-e57f881dde18" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14995" ], "x-ms-correlation-request-id": [ - "2f761f92-a228-4b7b-9b78-9374d3e04df5" + "aab0548a-a921-40fa-a126-fea908736cc9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030620Z:2f761f92-a228-4b7b-9b78-9374d3e04df5" + "WESTUS2:20180518T222055Z:aab0548a-a921-40fa-a126-fea908736cc9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -830,17 +586,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkMmQ3OTU5LWY4NjAtNDdmNC1hNTZkLTQ3M2IwYjY3NmEyZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6d2d7959-f860-47f4-a56d-473b0b676a2e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -852,7 +608,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:35 GMT" + "Fri, 18 May 2018 22:21:10 GMT" ], "Pragma": [ "no-cache" @@ -870,16 +626,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5d5e8c58-194a-48cb-91b9-bb03d0473bc9" + "e0668c98-88f3-41ab-ae8a-9ce2d0192a4a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14994" ], "x-ms-correlation-request-id": [ - "ccf7c356-2420-48b5-890b-da9b298994dc" + "5fca5ddd-5f36-4a26-9d59-848f0a6a098b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030635Z:ccf7c356-2420-48b5-890b-da9b298994dc" + "WESTUS2:20180518T222110Z:5fca5ddd-5f36-4a26-9d59-848f0a6a098b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -891,17 +647,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkMmQ3OTU5LWY4NjAtNDdmNC1hNTZkLTQ3M2IwYjY3NmEyZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6d2d7959-f860-47f4-a56d-473b0b676a2e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -913,7 +669,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:50 GMT" + "Fri, 18 May 2018 22:21:25 GMT" ], "Pragma": [ "no-cache" @@ -931,16 +687,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cba8c9d1-bae4-4834-8a4c-212ea730b309" + "69b80b1c-d845-4fd5-aa1b-4a5d566e3ff7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14993" ], "x-ms-correlation-request-id": [ - "f244d856-11b6-4673-bc6f-16f701201227" + "08b513c7-e70c-45d2-acc0-f686c369fb71" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030651Z:f244d856-11b6-4673-bc6f-16f701201227" + "WESTUS2:20180518T222125Z:08b513c7-e70c-45d2-acc0-f686c369fb71" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -952,17 +708,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MzcyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"d2fead04-a3d4-4699-8a9a-8185f60d179c\",\r\n \"creationDate\": \"2018-05-18T03:06:06.107Z\",\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-18T03:36:39.083Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"name\": \"sqlcrudtest-1280\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"a15c74f1-634d-4697-9ca3-241171f60d76\",\r\n \"creationDate\": \"2018-05-18T22:20:40.803Z\",\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-18T22:51:23.547Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372\",\r\n \"name\": \"sqlcrudtest-6372\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -974,7 +730,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:50 GMT" + "Fri, 18 May 2018 22:21:25 GMT" ], "Pragma": [ "no-cache" @@ -989,16 +745,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "11c6bfd6-2a2b-421f-bbdd-27f40705ae24" + "b21d90ca-7406-4085-b34a-bee3b3c46f20" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14992" ], "x-ms-correlation-request-id": [ - "4ab063ad-0696-4d5f-956b-c484f0c54046" + "6ce97c27-b956-4d0f-b744-c514ceb76aa9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030651Z:4ab063ad-0696-4d5f-956b-c484f0c54046" + "WESTUS2:20180518T222125Z:6ce97c27-b956-4d0f-b744-c514ceb76aa9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1010,10 +766,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1022,17 +778,17 @@ "235" ], "x-ms-client-request-id": [ - "3aba23a6-dbf5-488d-b410-5e2c32fea208" + "bc73822a-4c92-451f-89ee-1bdd91511688" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "70" @@ -1047,13 +803,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:50 GMT" + "Fri, 18 May 2018 22:21:26 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -1062,19 +818,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "cbc9efba-8c21-40b5-8868-6c24e287c408" + "e4b32533-2520-412a-92be-4f06736ed04a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + "282fe5f7-52f3-46ad-ac5f-a79b0156060b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030651Z:a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + "WESTUS2:20180518T222126Z:282fe5f7-52f3-46ad-ac5f-a79b0156060b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1086,17 +842,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1108,7 +864,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:07:05 GMT" + "Fri, 18 May 2018 22:21:40 GMT" ], "Pragma": [ "no-cache" @@ -1126,199 +882,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f906e787-f3ad-4228-92b0-c9d5f65e2bd3" + "f007102c-4242-46c3-be09-e112b073d1ea" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" - ], - "x-ms-correlation-request-id": [ - "e6f1213a-bfcd-40a2-b35e-31e6172d2a39" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030706Z:e6f1213a-bfcd-40a2-b35e-31e6172d2a39" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:07:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1bee5de9-88f4-4843-a657-e3cbef065746" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" - ], - "x-ms-correlation-request-id": [ - "f3989880-18b0-456d-a4f0-479c466244e8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030721Z:f3989880-18b0-456d-a4f0-479c466244e8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:07:35 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "20fcbc60-8408-4178-a47b-ed334245f261" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" - ], - "x-ms-correlation-request-id": [ - "4fdfe6b4-462b-43bd-9362-b543b368d948" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030736Z:4fdfe6b4-462b-43bd-9362-b543b368d948" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:07:51 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "8395b813-6f85-441d-9d5e-6e6809070e5a" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "14991" ], "x-ms-correlation-request-id": [ - "fcb1e9d8-6771-4404-a3c0-38f931098283" + "9b2c270f-61fd-4bae-b4a3-805243ef1dbf" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030751Z:fcb1e9d8-6771-4404-a3c0-38f931098283" + "WESTUS2:20180518T222141Z:9b2c270f-61fd-4bae-b4a3-805243ef1dbf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1330,17 +903,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1352,7 +925,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:06 GMT" + "Fri, 18 May 2018 22:21:56 GMT" ], "Pragma": [ "no-cache" @@ -1370,16 +943,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b51b6e43-3e96-460a-8c0d-16182b253748" + "2bfcdec6-a3ef-44f3-b0af-f36fb75d4413" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" + "14990" ], "x-ms-correlation-request-id": [ - "e584dfbd-088d-47eb-a656-2d47a290fbf7" + "75afccab-6fea-4bc1-8883-16dedeee4ce0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030806Z:e584dfbd-088d-47eb-a656-2d47a290fbf7" + "WESTUS2:20180518T222156Z:75afccab-6fea-4bc1-8883-16dedeee4ce0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1391,17 +964,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1413,7 +986,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:20 GMT" + "Fri, 18 May 2018 22:22:11 GMT" ], "Pragma": [ "no-cache" @@ -1431,16 +1004,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "99a99280-b952-4728-b365-3b6ddfd437cb" + "f8de40e9-8a2c-4a65-a686-f7822df230be" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" + "14989" ], "x-ms-correlation-request-id": [ - "1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + "1e1fa240-7835-445e-9fc3-a4d9c90e2330" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030821Z:1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + "WESTUS2:20180518T222211Z:1e1fa240-7835-445e-9fc3-a4d9c90e2330" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1452,17 +1025,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1474,7 +1047,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:36 GMT" + "Fri, 18 May 2018 22:22:25 GMT" ], "Pragma": [ "no-cache" @@ -1492,16 +1065,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4e5ce4f8-948f-4fd2-a3aa-2419e25b6347" + "2dfcfe9f-ea16-403b-8b7a-77cc2a6ac7da" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" + "14988" ], "x-ms-correlation-request-id": [ - "08d00152-259f-4b5a-981a-4c28799ff364" + "b4c7dc17-a919-4f3d-8124-5a5edc715c68" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030836Z:08d00152-259f-4b5a-981a-4c28799ff364" + "WESTUS2:20180518T222226Z:b4c7dc17-a919-4f3d-8124-5a5edc715c68" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1513,17 +1086,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1535,7 +1108,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:51 GMT" + "Fri, 18 May 2018 22:22:41 GMT" ], "Pragma": [ "no-cache" @@ -1553,16 +1126,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5073333d-033e-4b73-b5d2-b23d02db681d" + "7713f74f-7052-45b3-93c8-82158a628b4e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" + "14987" ], "x-ms-correlation-request-id": [ - "2e595697-bb17-47d0-b0a8-8ed875a09901" + "61404afc-1844-4a65-9f33-27d36c034ff0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030851Z:2e595697-bb17-47d0-b0a8-8ed875a09901" + "WESTUS2:20180518T222241Z:61404afc-1844-4a65-9f33-27d36c034ff0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1574,17 +1147,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1596,7 +1169,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:51 GMT" + "Fri, 18 May 2018 22:22:41 GMT" ], "Pragma": [ "no-cache" @@ -1611,16 +1184,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "eea29f5c-8d10-4ffb-be6f-0b28962fc67a" + "dde07532-1a50-49fe-9332-e940a755a68e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" + "14986" ], "x-ms-correlation-request-id": [ - "f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + "084f6b47-3a7a-4c37-ab4b-276cad45fb86" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030851Z:f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + "WESTUS2:20180518T222241Z:084f6b47-3a7a-4c37-ab4b-276cad45fb86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1632,8 +1205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1644,17 +1217,17 @@ "88" ], "x-ms-client-request-id": [ - "4ef165af-86fb-4260-b3ec-9b90a73f8eed" + "d71ac929-c112-4350-ac5b-6f8c353a0004" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ "292" @@ -1669,7 +1242,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:51 GMT" + "Fri, 18 May 2018 22:22:42 GMT" ], "Pragma": [ "no-cache" @@ -1678,16 +1251,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8489e2d8-16b7-4ad2-8333-25888a70307e" + "29f80257-4430-4e91-81d2-e9f4c33a4691" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "6444b11c-9607-474a-a4c3-c32d5e8c1084" + "d4aadf3d-6940-4959-bb63-c186ca67ac86" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030852Z:6444b11c-9607-474a-a4c3-c32d5e8c1084" + "WESTUS2:20180518T222242Z:d4aadf3d-6940-4959-bb63-c186ca67ac86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1699,10 +1272,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1711,17 +1284,17 @@ "228" ], "x-ms-client-request-id": [ - "eda93ee6-7cf3-4f3a-b947-80c9905079a0" + "f2827fa4-58a8-46c8-ac2f-c99016c8f6e0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Length": [ "384" @@ -1736,7 +1309,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:52 GMT" + "Fri, 18 May 2018 22:22:42 GMT" ], "Pragma": [ "no-cache" @@ -1745,16 +1318,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "12629311-abbb-4b82-9321-43c174b1177b" + "29f3052d-a4a8-4b2b-b8b2-579122fa150d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-correlation-request-id": [ - "d13ac651-9f45-4ea2-bfd0-87294cb94f71" + "5e1520f5-b162-42ff-8e76-8d02e0203094" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030853Z:d13ac651-9f45-4ea2-bfd0-87294cb94f71" + "WESTUS2:20180518T222243Z:5e1520f5-b162-42ff-8e76-8d02e0203094" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1766,8 +1339,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -1778,17 +1351,17 @@ "140" ], "x-ms-client-request-id": [ - "6521ae74-9785-4820-a1e7-fc50d1ba5438" + "04346809-5837-4a72-9e07-749d121fb079" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Length": [ "397" @@ -1803,7 +1376,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:53 GMT" + "Fri, 18 May 2018 22:22:43 GMT" ], "Pragma": [ "no-cache" @@ -1812,16 +1385,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "403e8a7e-cfcf-4683-a9f2-1c9a83afc1cb" + "7d7ed0a3-655a-46c8-8daa-e0de9d06c54d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-correlation-request-id": [ - "249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + "e12b902d-da18-46e6-8cc2-f08e44687455" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030853Z:249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + "WESTUS2:20180518T222243Z:e12b902d-da18-46e6-8cc2-f08e44687455" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1833,10 +1406,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1845,17 +1418,17 @@ "462" ], "x-ms-client-request-id": [ - "df314c76-2558-4ee8-8365-722a86c2abe2" + "a7004e37-3c89-4ebd-b307-cca8bd4cd001" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", "ResponseHeaders": { "Content-Length": [ "869" @@ -1870,7 +1443,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:53 GMT" + "Fri, 18 May 2018 22:22:44 GMT" ], "Pragma": [ "no-cache" @@ -1879,16 +1452,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "560b19c6-ef5c-4ac7-9975-102cd5acc129" + "c1462834-d922-4d63-91a4-b3035253877b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], "x-ms-correlation-request-id": [ - "8441cec9-0366-450f-b2e8-36a630090cb9" + "5c8df36e-ae44-453a-842d-4a7fa4501c64" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030854Z:8441cec9-0366-450f-b2e8-36a630090cb9" + "WESTUS2:20180518T222244Z:5c8df36e-ae44-453a-842d-4a7fa4501c64" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1900,23 +1473,23 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "efe04e21-67ac-46fe-b009-6367d3dc6936" + "bc5a0b89-907d-434e-a25d-3d66ced76e02" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1928,7 +1501,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:54 GMT" + "Fri, 18 May 2018 22:22:44 GMT" ], "Pragma": [ "no-cache" @@ -1937,7 +1510,7 @@ "chunked" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1946,16 +1519,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c0dd9f6c-c120-4718-be21-2e802c20e891" + "5337e672-46f0-48c5-8bb3-5ccdf0c25c05" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], "x-ms-correlation-request-id": [ - "a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + "57f7059c-1507-428f-b526-f74200f927d0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030854Z:a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + "WESTUS2:20180518T222245Z:57f7059c-1507-428f-b526-f74200f927d0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1967,17 +1540,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1989,7 +1562,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:15 GMT" ], "Pragma": [ "no-cache" @@ -2004,16 +1577,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1aaf74da-e6db-451d-b933-5e6261f37050" + "ee1217d6-5892-486d-9727-f4c0c159ec02" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14985" ], "x-ms-correlation-request-id": [ - "55c2f2e7-723d-4ace-b142-0878cc76578d" + "a6eac165-6f53-4a3d-b43a-f0b5cd0da559" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:55c2f2e7-723d-4ace-b142-0878cc76578d" + "WESTUS2:20180518T222315Z:a6eac165-6f53-4a3d-b43a-f0b5cd0da559" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2025,23 +1598,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7741005f-1c07-4a15-897b-3f981ebe965a" + "32a5f6e8-d685-4ffc-ac0c-83f657b25d2d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2053,7 +1626,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2068,16 +1641,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "22a9c67c-69bf-48c3-bef5-aa5222646486" + "1fd24332-305c-472c-801b-b355c2921d77" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" + "14982" ], "x-ms-correlation-request-id": [ - "7149e253-fade-414e-95fc-7cf642d95870" + "e170688c-0d4b-45c2-9976-99db9a7dd126" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:7149e253-fade-414e-95fc-7cf642d95870" + "WESTUS2:20180518T222316Z:e170688c-0d4b-45c2-9976-99db9a7dd126" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2089,23 +1662,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/executions?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3e343e0b-d6fc-448d-b8cb-70b038afb94e" + "35391ed2-ff8e-41c8-ba3c-d59ea515c858" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-18T22:22:51.1088269Z\",\r\n \"startTime\": \"2018-05-18T22:22:54.0619692Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"name\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2117,7 +1690,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2132,16 +1705,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f5eb320d-3dad-4d6f-9a75-635b53b98db3" + "04ba2546-1c56-4a86-8062-084e7806f0f0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" + "14984" ], "x-ms-correlation-request-id": [ - "c7e095f6-c949-4df5-8dea-08e75765ab4b" + "084160e5-5485-4a13-9c57-9fb99308019b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:c7e095f6-c949-4df5-8dea-08e75765ab4b" + "WESTUS2:20180518T222316Z:084160e5-5485-4a13-9c57-9fb99308019b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2153,23 +1726,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bd981b90-b033-4995-8b97-870b853e1629" + "3129970c-eedc-4d77-8c3f-0c91314a1ff5" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-18T22:22:51.1088269Z\",\r\n \"startTime\": \"2018-05-18T22:22:54.0619692Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"name\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2181,7 +1754,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2196,16 +1769,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8d43973d-b471-4c55-a6b2-0699996ad26d" + "46857b71-28a9-418e-911f-3c70c8fca01e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" + "14983" ], "x-ms-correlation-request-id": [ - "ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + "c5ce472f-ea9e-4713-b556-9c47f926c298" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + "WESTUS2:20180518T222316Z:c5ce472f-ea9e-4713-b556-9c47f926c298" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2217,23 +1790,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b46faeb8-dfd4-4927-a291-dd132d337588" + "d8f88560-9efa-44ad-9f0e-2a010de7efe0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:49.3275915Z\",\r\n \"startTime\": \"2018-05-18T22:22:50.5932003Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:22:59.3588849Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2245,7 +1818,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2260,16 +1833,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6861abfb-6488-4289-8bfc-1d8d5a251e59" + "7ee1d649-491e-4eb3-b8f1-4c2994b2243b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14981" ], "x-ms-correlation-request-id": [ - "b6c8f168-aca8-4777-b14a-27b7b90f9509" + "e1925ece-2005-49aa-843e-640d41273aa9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:b6c8f168-aca8-4777-b14a-27b7b90f9509" + "WESTUS2:20180518T222317Z:e1925ece-2005-49aa-843e-640d41273aa9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2281,23 +1854,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eedbbf9a-b685-4aa3-a9c4-3f676a77b2f5" + "1c6e3ade-791e-48d3-aeb6-06c0e9560cf8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:49.3275915Z\",\r\n \"startTime\": \"2018-05-18T22:22:50.5932003Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:22:59.3588849Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2309,7 +1882,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2324,16 +1897,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f05bcc22-8fef-466b-9878-15f9e7b9865d" + "10cab792-4fac-40fc-83f0-d124f60c63cf" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14957" + "14980" ], "x-ms-correlation-request-id": [ - "742706d2-65f4-417f-b29c-ae264cc654e0" + "68ce3945-737f-45ed-aa72-b61e392ec8b3" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:742706d2-65f4-417f-b29c-ae264cc654e0" + "WESTUS2:20180518T222317Z:68ce3945-737f-45ed-aa72-b61e392ec8b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2345,23 +1918,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/targets?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "defa2fb7-5b68-43c7-a70e-65099779f5f8" + "e302e983-0aeb-4261-bb88-d4cdb1c38024" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:59.3433333Z\",\r\n \"startTime\": \"2018-05-18T22:23:01.1089076Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.3432933Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:23:01.2651579Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-8803', database 'sqlcrudtest-6372').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"name\": \"d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2373,7 +1946,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2388,16 +1961,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "313422cf-3f1d-4c9f-898e-f5400fe89545" + "ddaffe78-ea2f-4585-9346-90dfaa64711b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14956" + "14979" ], "x-ms-correlation-request-id": [ - "1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + "c9bcf608-ce6d-4679-831d-10b6dec615e5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + "WESTUS2:20180518T222317Z:c9bcf608-ce6d-4679-831d-10b6dec615e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2409,23 +1982,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a4b1e561-88f4-4b87-9414-72e002423589" + "6d76cb90-a5bb-4067-9373-8ea7c4281e2e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:59.3433333Z\",\r\n \"startTime\": \"2018-05-18T22:23:01.1089076Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.3432933Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:23:01.2651579Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-8803', database 'sqlcrudtest-6372').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"name\": \"d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2437,7 +2010,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2452,16 +2025,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7bcf4668-8701-47f6-94e9-5c35cb807b0d" + "7a430ee4-d3fc-4e07-b809-7c46937a3fec" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14955" + "14978" ], "x-ms-correlation-request-id": [ - "f455572b-306d-4efb-ae04-c02ece9c27e6" + "8b7c2367-37cd-4085-86a7-9aa898fed523" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:f455572b-306d-4efb-ae04-c02ece9c27e6" + "WESTUS2:20180518T222317Z:8b7c2367-37cd-4085-86a7-9aa898fed523" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2473,23 +2046,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cy8wODgxNmQ0NS1lMmZiLTRlNGEtOWQ2Yi02N2I2ZjA3NDk5Mzc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHMvc3RlcDEvdGFyZ2V0cy9kMmU3MDQ5MS0wMmNiLTQxZWMtODMyOC00MjM0YzEwOGIwMmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8dd79bb5-fc8f-40d1-828f-5384ec9e3586" + "6baa1222-c73c-4ffa-bf6f-bab4b3047c55" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:59.3433333Z\",\r\n \"startTime\": \"2018-05-18T22:23:01.1089076Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.3432933Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:23:01.2651579Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-8803', database 'sqlcrudtest-6372').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"name\": \"d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2501,7 +2074,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2516,16 +2089,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d161fa9e-7d0b-4b32-bb21-0ec90bb82bfc" + "7291913b-93c7-4a91-9e51-b9574561134f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" + "14977" ], "x-ms-correlation-request-id": [ - "5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + "ee2e1de8-126a-4b46-8300-0e0817c90a56" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + "WESTUS2:20180518T222317Z:ee2e1de8-126a-4b46-8300-0e0817c90a56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2537,20 +2110,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/cancel?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/cancel?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "afb8c9d6-c24d-4242-a99f-201c8f411aa1" + "6e9f7ec1-1026-40b0-a9c7-53bb925f81d8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -2565,28 +2138,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:27 GMT" + "Fri, 18 May 2018 22:23:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "2c0e85ea-2d58-4995-b9da-2d59df10b4fd" + "768ea278-a645-4b24-a5a7-52108e5fbe42" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], "x-ms-correlation-request-id": [ - "e2b8c979-4d08-44c2-83fc-1785c370a602" + "a7cde73c-635b-4f79-9aee-8d405cabe3e5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030927Z:e2b8c979-4d08-44c2-83fc-1785c370a602" + "WESTUS2:20180518T222318Z:a7cde73c-635b-4f79-9aee-8d405cabe3e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2598,13 +2171,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8293?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "969a5928-112b-4b0c-b7ce-b975b6f89a51" + "330ffd29-919b-4f12-acff-548f3662f8dc" ], "accept-language": [ "en-US" @@ -2626,13 +2199,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:28 GMT" + "Fri, 18 May 2018 22:23:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2641,13 +2214,13 @@ "14999" ], "x-ms-request-id": [ - "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + "b1406337-5b11-4ff5-a450-4c3c506355e8" ], "x-ms-correlation-request-id": [ - "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + "b1406337-5b11-4ff5-a450-4c3c506355e8" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030929Z:233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + "WESTUS2:20180518T222318Z:b1406337-5b11-4ff5-a450-4c3c506355e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2659,13 +2232,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8293?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "80e7614c-6c19-46c2-ba9c-f5dd46cf4d10" + "acdc6560-55f2-4166-950d-945839c2db5d" ], "accept-language": [ "en-US" @@ -2687,13 +2260,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:28 GMT" + "Fri, 18 May 2018 22:23:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2702,13 +2275,13 @@ "14998" ], "x-ms-request-id": [ - "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + "af2aa569-b3e8-4e78-833f-841e19a91d81" ], "x-ms-correlation-request-id": [ - "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + "af2aa569-b3e8-4e78-833f-841e19a91d81" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030929Z:cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + "WESTUS2:20180518T222318Z:af2aa569-b3e8-4e78-833f-841e19a91d81" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2722,17 +2295,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-7276" + "sqlcrudtest-8293" ], "CreateServer": [ - "sqlcrudtest-7378" + "sqlcrudtest-8803" ], "TestStartStopGetJobExecution": [ - "sqlcrudtest-1280" + "sqlcrudtest-6372" ] }, "Variables": { - "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", - "DefaultLocation": "west us 2" + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" } } \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 5941ef96d5896..e278f2814205c 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 214f044313242..449a320027598 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -17,17 +17,6 @@ namespace Sql.Tests { public class SqlDatabaseAgentScenarioTests { - private string _subscriptionId; - - public SqlDatabaseAgentScenarioTests() - { - // Sort of a hacky way to grab the subscription id from the environment variables, but given that developer set their - // TEST_CSM_ORGID_AUTHENTICATION environment variable in this format then: - // SubscriptionId={SubId};ServicePrincipal={clientId};ServicePrincipalSecret={clientSecret};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record; - // The below string split and getting the {SubId} should work. - this._subscriptionId = Environment.GetEnvironmentVariables()["TEST_CSM_ORGID_AUTHENTICATION"].ToString().Split(';')[0].Split('=')[1]; - } - /// /// Test end to end agent /// @@ -120,8 +109,8 @@ public void TestCreateUpdateDropJobCredential() // Create credential JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential { - Username = "cloudsa", - Password = "Yukon900!" + Username = "a", + Password = "b!" }); @@ -194,7 +183,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, MembershipType = JobTargetGroupMembershipType.Include, } } @@ -210,7 +199,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, MembershipType = JobTargetGroupMembershipType.Include, }, // db target @@ -227,7 +216,7 @@ public void TestCreateUpdateDropTargetGroup() ShardMapName = "sm1", DatabaseName = "db1", ServerName = "s1", - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, Type = JobTargetType.SqlShardMap, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -236,7 +225,7 @@ public void TestCreateUpdateDropTargetGroup() { ElasticPoolName = "ep1", ServerName = "s1", - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, Type = JobTargetType.SqlElasticPool, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -364,8 +353,6 @@ public void TestCreateUpdateDropJobStep() Password = SqlManagementTestUtilities.DefaultPassword }); - - // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { @@ -376,7 +363,7 @@ public void TestCreateUpdateDropJobStep() { ServerName = server.Name, Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, MembershipType = JobTargetGroupMembershipType.Include, } } @@ -396,12 +383,12 @@ public void TestCreateUpdateDropJobStep() // Create step with min params JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) + TargetGroup = targetGroup.Id }); @@ -409,14 +396,14 @@ public void TestCreateUpdateDropJobStep() // Update step with max params step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Action = new JobStepAction { Value = "SELECT 1", Source = "Inline", Type = "TSql" }, - TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name), + TargetGroup = targetGroup.Id, ExecutionOptions = new JobStepExecutionOptions { InitialRetryIntervalSeconds = 100, @@ -433,7 +420,7 @@ public void TestCreateUpdateDropJobStep() SchemaName = "dbo", TableName = "tbl", SubscriptionId = new Guid(), - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Type = JobTargetType.SqlDatabase } }); @@ -531,12 +518,12 @@ public void TestStartStopGetJobExecution() // Create job step JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) + TargetGroup = targetGroup.Id }); @@ -577,25 +564,5 @@ public void TestStartStopGetJobExecution() } } } - - /// - /// Helper to format credential id string - /// - /// Refresh credential string - private string FormatCredentialId(string resourceGroupName, string serverName, string agentName, string credentialName) - { - return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/credentials/{4}", - this._subscriptionId, resourceGroupName, serverName, agentName, credentialName); - } - - /// - /// Helper to format target group id string - /// - /// Refresh credential string - private string FormatTargetGroupId(string resourceGroupName, string serverName, string agentName, string targetGroupName) - { - return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/targetGroups/{4}", - this._subscriptionId, resourceGroupName, serverName, agentName, targetGroupName); - } } } \ No newline at end of file From 8b93e0403bf92b1a4266eff26cfd62ad355cdf2d Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Fri, 18 May 2018 17:15:40 -0700 Subject: [PATCH 15/26] Updating release notes to include the sql db agent type names --- .../Management.Sql/Microsoft.Azure.Management.Sql.csproj | 1 + 1 file changed, 1 insertion(+) 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 de5bcc651d9e2..8aa6303aa0c21 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -13,6 +13,7 @@ From 04368557e74baceea4f6b71c3afc45c895aadfb5 Mon Sep 17 00:00:00 2001 From: yaakoviyun Date: Mon, 21 May 2018 09:25:07 +0300 Subject: [PATCH 16/26] Fix all PR issues --- ...eVulnerabilityAssessmentScansOperations.cs | 8 +- ...lityAssessmentScansOperationsExtensions.cs | 16 +- ...abaseVulnerabilityAssessmentsOperations.cs | 4 + ...eVulnerabilityAssessmentScansOperations.cs | 4 +- .../Models/DatabaseVulnerabilityAssessment.cs | 25 +- .../Microsoft.Azure.Management.Sql.csproj | 11 +- ...aseVulnerabilityAssessmentScenarioTests.cs | 20 +- ...teGetDatabaseVulnerabilityAssessments.json | 535 ++++++++++------ ...abaseVulnerabilityAssessmentBaselines.json | 403 ++++++------ ...tDatabaseVulnerabilityAssessmentScans.json | 572 +++++++++++------- ...tDatabaseVulnerabilityAssessmentScans.json | 511 +++++++++------- src/SDKs/_metadata/sql_resource-manager.txt | 2 - 12 files changed, 1275 insertions(+), 836 deletions(-) diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs index 9661d7a0c3980..45b2f76d7d3be 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs @@ -288,10 +288,10 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie /// /// The cancellation token. /// - public async Task ExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task InitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginExecuteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginInitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -771,7 +771,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie /// /// A response object containing the response body and response headers. /// - public async Task BeginExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginInitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -809,7 +809,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie tracingParameters.Add("scanId", scanId); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginExecute", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginInitiateScan", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs index fc09dc8ec8383..381d5182556c4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs @@ -94,9 +94,9 @@ public static VulnerabilityAssessmentScanRecord Get(this IDatabaseVulnerabilityA /// /// The vulnerability assessment scan Id of the scan to retrieve. /// - public static void Execute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + public static void InitiateScan(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) { - operations.ExecuteAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); + operations.InitiateScanAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); } /// @@ -121,9 +121,9 @@ public static void Execute(this IDatabaseVulnerabilityAssessmentScansOperations /// /// The cancellation token. /// - public static async Task ExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task InitiateScanAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.ExecuteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.InitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -249,9 +249,9 @@ public static DatabaseVulnerabilityAssessmentScansExport Export(this IDatabaseVu /// /// The vulnerability assessment scan Id of the scan to retrieve. /// - public static void BeginExecute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + public static void BeginInitiateScan(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) { - operations.BeginExecuteAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); + operations.BeginInitiateScanAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); } /// @@ -276,9 +276,9 @@ public static void BeginExecute(this IDatabaseVulnerabilityAssessmentScansOperat /// /// The cancellation token. /// - public static async Task BeginExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginInitiateScanAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginExecuteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginInitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs index ac7738e453037..836e27f47309d 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs @@ -312,6 +312,10 @@ internal DatabaseVulnerabilityAssessmentsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + if (parameters != null) + { + parameters.Validate(); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs index 1556a97386f9b..478f2e565823e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs @@ -85,7 +85,7 @@ public partial interface IDatabaseVulnerabilityAssessmentScansOperations /// /// Thrown when a required parameter is null /// - Task ExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + 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. /// @@ -179,7 +179,7 @@ public partial interface IDatabaseVulnerabilityAssessmentScansOperations /// /// Thrown when a required parameter is null /// - Task BeginExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + 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. /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs index 7c06d83df98df..df47c1ca9637e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs @@ -34,17 +34,17 @@ public DatabaseVulnerabilityAssessment() /// Initializes a new instance of the DatabaseVulnerabilityAssessment /// class. /// - /// Resource ID. - /// Resource name. - /// Resource type. /// 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 id = default(string), string name = default(string), string type = default(string), string storageContainerPath = default(string), string storageContainerSasKey = default(string), VulnerabilityAssessmentRecurringScansProperties recurringScans = default(VulnerabilityAssessmentRecurringScansProperties)) + 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; @@ -79,5 +79,22 @@ public DatabaseVulnerabilityAssessment() [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/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj index 472a64da17da2..07254ebd20462 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/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs index ac349376ce17e..2de66b89fa463 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs @@ -90,7 +90,7 @@ public async void TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaseli // Set policy await SetPolicy(context, sqlClient, resourceGroup, server, dbName); - // Set basleine + // Set baseline string testRuleId = "VA2031"; var ruleBaselineToSet = new DatabaseVulnerabilityAssessmentRuleBaseline( new List() @@ -107,14 +107,14 @@ public async void TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaseli sqlClient.DatabaseVulnerabilityAssessmentRuleBaselines.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, testRuleId, ruleBaselineToSet); - // Get basleine + // 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 basleine + // Delete baseline sqlClient.DatabaseVulnerabilityAssessmentRuleBaselines.Delete(resourceGroup.Name, server.Name, dbName, testRuleId); // Get baseline should fail after deleting the baseline @@ -147,13 +147,13 @@ public async void TestExcetueGetListDatabaseVulnerabilityAssessmentScans() await SetPolicy(context, sqlClient, resourceGroup, server, dbName); // Run some scans - string scanId = string.Format("scantest1_{0}", DateTime.UtcNow.Ticks); - sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId); + string scanId = string.Format("scantest1_{0}", testPrefix); + sqlClient.DatabaseVulnerabilityAssessmentScans.InitiateScan(resourceGroup.Name, server.Name, dbName, scanId); - string scanId1 = string.Format("scantest2_{0}", DateTime.UtcNow.Ticks); - sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId1); + string scanId1 = string.Format("scantest2_{0}", testPrefix); + sqlClient.DatabaseVulnerabilityAssessmentScans.InitiateScan(resourceGroup.Name, server.Name, dbName, scanId1); - // Veroify get scan and list scans + // Verify get scan and list scans VulnerabilityAssessmentScanRecord scanRecord = sqlClient.DatabaseVulnerabilityAssessmentScans.Get(resourceGroup.Name, server.Name, dbName, scanId); Assert.Equal(scanId, scanRecord.ScanId); @@ -199,8 +199,8 @@ public async void TestExportDatabaseVulnerabilityAssessmentScans() await SetPolicy(context, sqlClient, resourceGroup, server, dbName); // Run some scans - string scanId = string.Format("scan1_{0}", DateTime.UtcNow.Ticks); - sqlClient.DatabaseVulnerabilityAssessmentScans.Execute(resourceGroup.Name, server.Name, dbName, scanId); + 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); } } 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 index b7f8623d7cef0..eb1ccabfe8a02 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-4039?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQwMzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9200?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkyMDA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-4039\": \"2018-05-14 12:06:49Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-9200\": \"2018-05-21 05:22:55Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "076efd45-8659-4aa6-8a5a-9c090db201a9" + "3d141dee-9e07-40a9-858c-99f8aa5d45ee" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039\",\r\n \"name\": \"sqlcrudtest-4039\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-4039\": \"2018-05-14 12:06:49Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200\",\r\n \"name\": \"sqlcrudtest-9200\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-9200\": \"2018-05-21 05:22:55Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,22 +38,22 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:06:51 GMT" + "Mon, 21 May 2018 05:22:59 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1199" ], "x-ms-request-id": [ - "87008bbf-e92f-4da9-b743-1cae8e1c5418" + "9d52f02e-f3cd-4d40-9769-2a0d7be52dd5" ], "x-ms-correlation-request-id": [ - "87008bbf-e92f-4da9-b743-1cae8e1c5418" + "9d52f02e-f3cd-4d40-9769-2a0d7be52dd5" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120652Z:87008bbf-e92f-4da9-b743-1cae8e1c5418" + "WESTEUROPE:20180521T052259Z:9d52f02e-f3cd-4d40-9769-2a0d7be52dd5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "0f3c6dcb-a6af-44f8-afb7-fbee2386346e" + "9afde51c-5e43-40f6-af1a-48d6da9322e8" ], "accept-language": [ "en-US" @@ -87,10 +87,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-14T12:06:58.513Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:06:58 GMT" + "Mon, 21 May 2018 05:23:11 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverOperationResults/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverOperationResults/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "70ee4900-9869-49b1-9e42-2d7731d9e26b" + "ce9214b0-959d-4b1e-a9f0-053703a5068e" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "2117a9df-1a28-4ebe-a903-db5a78baee3d" + "074256ef-d103-4b37-bcaf-c51a645cb3d2" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120658Z:2117a9df-1a28-4ebe-a903-db5a78baee3d" + "WESTEUROPE:20180521T052311Z:074256ef-d103-4b37-bcaf-c51a645cb3d2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,69 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83MGVlNDkwMC05ODY5LTQ5YjEtOWU0Mi0yZDc3MzFkOWUyNmI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/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\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 21 May 2018 05:23:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de99694a-f6e2-4982-9450-e846a6ee42b8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "774bddb4-881c-4501-b977-88958ef95231" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T052322Z:774bddb4-881c-4501-b977-88958ef95231" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -151,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"70ee4900-9869-49b1-9e42-2d7731d9e26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:06:58.513Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:07:09 GMT" + "Mon, 21 May 2018 05:23:42 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e4d0953e-feb6-40b1-83a4-1fd3f8a12364" + "73de681a-84eb-40c4-8372-a2d5f6def15e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14916" + "14998" ], "x-ms-correlation-request-id": [ - "cd785251-9ad8-4c4f-b92a-5393d62949ba" + "40ed4556-f814-4d7f-b01e-7cfec8995694" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120709Z:cd785251-9ad8-4c4f-b92a-5393d62949ba" + "WESTEUROPE:20180521T052342Z:40ed4556-f814-4d7f-b01e-7cfec8995694" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83MGVlNDkwMC05ODY5LTQ5YjEtOWU0Mi0yZDc3MzFkOWUyNmI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -212,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"70ee4900-9869-49b1-9e42-2d7731d9e26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:06:58.513Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:07:29 GMT" + "Mon, 21 May 2018 05:24:02 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +303,77 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "98228674-5436-44bd-a966-51d5f1a85249" + "a2de3d91-7877-4a02-8083-643868fa6ffc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "8497a10d-a6b1-4252-bb1c-a09e57adc130" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T052403Z:8497a10d-a6b1-4252-bb1c-a09e57adc130" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/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\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 21 May 2018 05:24:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c1926152-34b5-4f86-b8bd-44248646beec" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14915" + "14996" ], "x-ms-correlation-request-id": [ - "7d2b41ad-1b4f-4e6f-9f81-616654b7fb0c" + "64961a66-042d-4b25-bab7-6c5a146e40bd" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120729Z:7d2b41ad-1b4f-4e6f-9f81-616654b7fb0c" + "WESTEUROPE:20180521T052423Z:64961a66-042d-4b25-bab7-6c5a146e40bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +385,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/70ee4900-9869-49b1-9e42-2d7731d9e26b?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83MGVlNDkwMC05ODY5LTQ5YjEtOWU0Mi0yZDc3MzFkOWUyNmI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -273,7 +395,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"70ee4900-9869-49b1-9e42-2d7731d9e26b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:06:58.513Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +407,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:07:50 GMT" + "Mon, 21 May 2018 05:24:38 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +425,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "dbfeec81-9f37-469a-9f87-2f755fc9f419" + "da4556ae-06d4-4661-9c96-bef97b329228" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14914" + "14995" ], "x-ms-correlation-request-id": [ - "1c2ad0be-4da6-4b0f-ae41-75d829a4bb3d" + "88197591-5805-4fe7-9a90-ef122c1c96c7" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120750Z:1c2ad0be-4da6-4b0f-ae41-75d829a4bb3d" + "WESTEUROPE:20180521T052439Z:88197591-5805-4fe7-9a90-ef122c1c96c7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +446,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +456,7 @@ "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-4506.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506\",\r\n \"name\": \"sqlcrudtest-4506\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-5134.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134\",\r\n \"name\": \"sqlcrudtest-5134\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +468,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:07:50 GMT" + "Mon, 21 May 2018 05:24:39 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +483,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b485f0f7-0d9e-4846-a537-e9ada668eb0c" + "a9a8d741-b2a0-4815-b322-b562cb4ae153" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14913" + "14994" ], "x-ms-correlation-request-id": [ - "a8a3cf05-73b1-460f-bef0-37291d6baab0" + "081c1a78-1ace-454d-b095-a32496126235" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120750Z:a8a3cf05-73b1-460f-bef0-37291d6baab0" + "WESTEUROPE:20180521T052439Z:081c1a78-1ace-454d-b095-a32496126235" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +504,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5Nzc/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,7 +516,7 @@ "29" ], "x-ms-client-request-id": [ - "33c5f7bf-4e19-45f3-af7e-a3fa50f84c71" + "aca57da1-a6a3-44ce-bd31-c360977c0b27" ], "accept-language": [ "en-US" @@ -404,7 +526,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-14T12:07:53.507Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "76" @@ -419,13 +541,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:07:53 GMT" + "Mon, 21 May 2018 05:24:42 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +556,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "b3d6a1ae-832b-40a5-a3d3-b2f5626c445b" + "9ed98521-54d5-4fd1-b9ba-c44dc6501ae9" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "bf3cfb49-5109-4235-be56-4cd4d337345c" + "27438556-25fd-488a-9d87-f86ba8da0e56" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120753Z:bf3cfb49-5109-4235-be56-4cd4d337345c" + "WESTEUROPE:20180521T052442Z:27438556-25fd-488a-9d87-f86ba8da0e56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,8 +580,69 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyM2Y1OWQzLTk1OGMtNDk0Ni1iMmI0LTliZTUwZDA5ZGZjMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 21 May 2018 05:24:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "67120340-6cb9-4b67-bc38-1e5e27839dd2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "7548676e-14e4-4ab2-8720-66c37217bb33" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T052457Z:7548676e-14e4-4ab2-8720-66c37217bb33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -468,7 +651,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"323f59d3-958c-4946-b2b4-9be50d09dfc2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:07:53.507Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:08:08 GMT" + "Mon, 21 May 2018 05:25:12 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cb3a3fe1-b8f9-4206-b3ac-9b652feb4413" + "8b9e8d80-12f7-474d-8e78-77d5ab12292e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14912" + "14992" ], "x-ms-correlation-request-id": [ - "b499b39e-a788-405b-8feb-9f0d5f66f55c" + "007fa133-79ac-44d1-9b49-9a953ddf3e04" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120809Z:b499b39e-a788-405b-8feb-9f0d5f66f55c" + "WESTEUROPE:20180521T052512Z:007fa133-79ac-44d1-9b49-9a953ddf3e04" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,8 +702,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyM2Y1OWQzLTk1OGMtNDk0Ni1iMmI0LTliZTUwZDA5ZGZjMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -529,7 +712,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"323f59d3-958c-4946-b2b4-9be50d09dfc2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-14T12:07:53.507Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +724,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:08:24 GMT" + "Mon, 21 May 2018 05:25:28 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +742,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "804503e4-e218-4068-89a7-973922d79cd9" + "ef5cc78b-119b-4c34-908d-6a15e9158aa2" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14911" + "14991" ], "x-ms-correlation-request-id": [ - "da58b46b-c73b-46af-809b-8bad80e26e73" + "9c45d75f-48b9-4b7b-97a1-ed6bc0c7c49d" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120824Z:da58b46b-c73b-46af-809b-8bad80e26e73" + "WESTEUROPE:20180521T052528Z:9c45d75f-48b9-4b7b-97a1-ed6bc0c7c49d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +763,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/323f59d3-958c-4946-b2b4-9be50d09dfc2?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyM2Y1OWQzLTk1OGMtNDk0Ni1iMmI0LTliZTUwZDA5ZGZjMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -590,7 +773,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"323f59d3-958c-4946-b2b4-9be50d09dfc2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-14T12:07:53.507Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +785,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:08:39 GMT" + "Mon, 21 May 2018 05:25:43 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +803,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a32325a7-c570-4179-b73d-6af6f5de3722" + "52fa6949-f96c-4dcb-a719-c189a6fa4432" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14910" + "14990" ], "x-ms-correlation-request-id": [ - "e3ae3fa6-7751-4f51-97e6-14eb2ad16c9e" + "7f2b96e2-82ce-4d54-9398-e856ffa89cb8" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120840Z:e3ae3fa6-7751-4f51-97e6-14eb2ad16c9e" + "WESTEUROPE:20180521T052543Z:7f2b96e2-82ce-4d54-9398-e856ffa89cb8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +824,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5Nzc/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -651,7 +834,7 @@ "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\": \"7b7c2d48-640c-4d66-8432-69290a883522\",\r\n \"creationDate\": \"2018-05-14T12:07:53.833Z\",\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-14T12:38:33.44Z\",\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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404\",\r\n \"name\": \"sqlvulnerabilityassessmentcrudtest-7404\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"d50c2e64-d2f7-4204-9da4-6d30f2e1d22b\",\r\n \"creationDate\": \"2018-05-21T05:24:42.5Z\",\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-21T05:55:36.913Z\",\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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977\",\r\n \"name\": \"sqlvulnerabilityassessmentcrudtest-4977\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +846,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:08:39 GMT" + "Mon, 21 May 2018 05:25:43 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +861,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8d87a4c1-0771-4820-9508-b3615b19e30e" + "0afd2f9f-b5fc-4b74-864f-5a3025a52a45" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14909" + "14989" ], "x-ms-correlation-request-id": [ - "fe031758-85ff-435a-8f9e-e2d4c3d29dca" + "6a9855a0-2189-4ce4-b7f6-a9eba5931ed2" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120840Z:fe031758-85ff-435a-8f9e-e2d4c3d29dca" + "WESTEUROPE:20180521T052543Z:6a9855a0-2189-4ce4-b7f6-a9eba5931ed2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,13 +882,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a43f3ab7-2fb2-4c58-b324-ed57c2c1400c" + "f39e68a9-f21a-4c57-a96a-fc54099bbcd1" ], "accept-language": [ "en-US" @@ -715,7 +898,7 @@ "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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -727,7 +910,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:08:51 GMT" + "Mon, 21 May 2018 05:25:44 GMT" ], "Pragma": [ "no-cache" @@ -742,16 +925,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8e586bb5-8f59-4040-b54f-83b35bc0e1a4" + "84fb43f6-f108-469f-971f-93fce2072372" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14908" + "14988" ], "x-ms-correlation-request-id": [ - "85a8d89c-6ff2-46e7-8c0b-e07bba0b53ca" + "1b8a8a24-d32e-4ba9-80ca-274ca5ead9b4" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120851Z:85a8d89c-6ff2-46e7-8c0b-e07bba0b53ca" + "WESTEUROPE:20180521T052544Z:1b8a8a24-d32e-4ba9-80ca-274ca5ead9b4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -763,13 +946,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "67c001dd-16fe-4fd9-9e38-86f5560ddab0" + "28392532-367c-4a37-863a-36a033c9df26" ], "accept-language": [ "en-US" @@ -779,7 +962,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4536.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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest9261.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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -791,7 +974,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:09:26 GMT" + "Mon, 21 May 2018 05:26:21 GMT" ], "Pragma": [ "no-cache" @@ -806,16 +989,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c064541f-e315-49ab-a467-c57a91346181" + "d301037c-2e60-4ff2-b114-7ec55fdbb453" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14907" + "14987" ], "x-ms-correlation-request-id": [ - "785ac445-f8a4-4455-af10-d47baf57f69e" + "e98b5f1a-965e-4a13-a411-af7ab2ef68ea" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120927Z:785ac445-f8a4-4455-af10-d47baf57f69e" + "WESTEUROPE:20180521T052621Z:e98b5f1a-965e-4a13-a411-af7ab2ef68ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -827,13 +1010,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5066a1f0-6468-4201-9ff3-10fa1ee83b60" + "b312c740-77b7-4941-a5e5-1a1d34a89e3a" ], "accept-language": [ "en-US" @@ -843,7 +1026,7 @@ "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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -855,7 +1038,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:09:57 GMT" + "Mon, 21 May 2018 05:26:22 GMT" ], "Pragma": [ "no-cache" @@ -870,16 +1053,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "45936547-48e1-44a0-b2a5-01d13e5490ea" + "428ea831-9f8a-4c4f-9cab-bb4921f5e952" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14906" + "14986" ], "x-ms-correlation-request-id": [ - "96a99917-4d21-4387-ada9-611363733047" + "a0dd1971-cceb-41a6-b923-c739edd73de7" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120957Z:96a99917-4d21-4387-ada9-611363733047" + "WESTEUROPE:20180521T052622Z:a0dd1971-cceb-41a6-b923-c739edd73de7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -891,8 +1074,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Storage/storageAccounts/sqlvatest4536?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q0NTM2P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Storage/storageAccounts/sqlvatest9261?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q5MjYxP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "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": { @@ -903,7 +1086,7 @@ "152" ], "x-ms-client-request-id": [ - "25dc7d08-bae3-4b32-bd1e-2f43d8af5f5f" + "29bf272d-48f2-4404-a191-dd4647eee299" ], "accept-language": [ "en-US" @@ -928,13 +1111,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:08:59 GMT" + "Mon, 21 May 2018 05:25:54 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/1ccb1305-5b29-48b9-83a4-cf0dab67db3a?monitor=true&api-version=2017-06-01" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/60a28f9d-0d29-4d90-8c0e-dc3b267dfa2d?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -943,19 +1126,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "1ccb1305-5b29-48b9-83a4-cf0dab67db3a" + "60a28f9d-0d29-4d90-8c0e-dc3b267dfa2d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1199" ], "x-ms-correlation-request-id": [ - "e4abc2c5-322d-4391-a32d-b5211d0cf6d7" + "9abd1ad3-51f2-4790-811b-ff553285d5c1" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120859Z:e4abc2c5-322d-4391-a32d-b5211d0cf6d7" + "WESTEUROPE:20180521T052555Z:9abd1ad3-51f2-4790-811b-ff553285d5c1" ], "X-Content-Type-Options": [ "nosniff" @@ -964,8 +1147,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/1ccb1305-5b29-48b9-83a4-cf0dab67db3a?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvMWNjYjEzMDUtNWIyOS00OGI5LTgzYTQtY2YwZGFiNjdkYjNhP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/60a28f9d-0d29-4d90-8c0e-dc3b267dfa2d?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNjBhMjhmOWQtMGQyOS00ZDkwLThjMGUtZGMzYjI2N2RmYTJkP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -974,7 +1157,7 @@ "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-4039/providers/Microsoft.Storage/storageAccounts/sqlvatest4536\",\r\n \"name\": \"sqlvatest4536\",\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-14T12:08:58.6708603Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-14T12:08:58.6708603Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-14T12:08:58.4833549Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest4536.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest4536.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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-9200/providers/Microsoft.Storage/storageAccounts/sqlvatest9261\",\r\n \"name\": \"sqlvatest9261\",\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-21T05:25:54.58489Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T05:25:54.58489Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T05:25:54.5067844Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest9261.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest9261.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -986,7 +1169,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:09:16 GMT" + "Mon, 21 May 2018 05:26:11 GMT" ], "Pragma": [ "no-cache" @@ -1001,19 +1184,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ca49a398-517b-4c02-a84a-503455a2dd99" + "3f73cf03-b903-485c-a1ac-ae6b39139bdf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14999" ], "x-ms-correlation-request-id": [ - "bd6a7511-99c5-4eb9-ac80-43b3c8cdbc18" + "cd613509-e320-4ec5-97ec-4770095717db" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120916Z:bd6a7511-99c5-4eb9-ac80-43b3c8cdbc18" + "WESTEUROPE:20180521T052612Z:cd613509-e320-4ec5-97ec-4770095717db" ], "X-Content-Type-Options": [ "nosniff" @@ -1022,13 +1205,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Storage/storageAccounts/sqlvatest4536/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q0NTM2L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Storage/storageAccounts/sqlvatest9261/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q5MjYxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "de9f0010-4dcf-4e5c-9972-116a21d5fd29" + "94e85736-c90b-4041-b437-6f772d3628bb" ], "accept-language": [ "en-US" @@ -1038,7 +1221,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"IyZJ08YfAXnGgHCVprdVkFU3TMyVW8XwOsOqEkflig+cpWRTxWLudFifSgI4TRz6xghC9w9u50hi3am8x1A4UA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"2P75x001dLlI9fgv2VPbPOCxOWBtcKz9K/abihVgrHeh1iMCz81Fux75dkc2iuf9irs7N/YHV7xVtrpaZHNnAg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"sA+E0GvUHURkMELV5dweN/F/qqbqNlOk+mekmayhdRg3zFSI+aWapM6JadnKPLNt6oy+yEvDfVEnfVPGXE1UNA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"k6Cfdvh870j7VgePDRBEwbBjPkGwlvM6808QgH6oGcVmrRgxpQli7+0hNM+IiNNt5She0Z4jPTH2GBeMuAFDDg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1050,7 +1233,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:09:17 GMT" + "Mon, 21 May 2018 05:26:12 GMT" ], "Pragma": [ "no-cache" @@ -1065,19 +1248,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9c7b74be-45e2-4bde-b3bc-e8423436c40b" + "ceefc019-ddfc-4b4c-a7b9-6f14033210c5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1198" ], "x-ms-correlation-request-id": [ - "6953248b-5ad4-4b11-ba92-6632478ebf6e" + "0e3d216f-4158-4a6c-865a-7877486b95ef" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120917Z:6953248b-5ad4-4b11-ba92-6632478ebf6e" + "WESTEUROPE:20180521T052613Z:0e3d216f-4158-4a6c-865a-7877486b95ef" ], "X-Content-Type-Options": [ "nosniff" @@ -1086,10 +1269,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4536.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=n6lcCvY7hw4oySSPjnA9nDZjFRWxuuEz7oNJx98KqhY%3D&se=2018-05-14T13%3A09%3A18Z&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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest9261.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=cQqbcSjHeqim1k7AsEyYUpHgy2Qk69wUQLbllEhSsaM%3D&se=2018-05-21T06%3A26%3A14Z&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" @@ -1098,7 +1281,7 @@ "457" ], "x-ms-client-request-id": [ - "25855e0f-af6e-4dc7-a4fd-e72176318113" + "d00d9f7c-93e9-4238-8b52-436238682901" ], "accept-language": [ "en-US" @@ -1108,7 +1291,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest4536.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-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest9261.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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1120,7 +1303,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:09:26 GMT" + "Mon, 21 May 2018 05:26:20 GMT" ], "Pragma": [ "no-cache" @@ -1135,16 +1318,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "083addad-a779-46dd-a964-cbcc2aa064c7" + "8caa6292-1bcd-424e-a3be-936676a24475" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "63bcfb6b-f079-4010-b258-68079b1b93ab" + "cc8dc6eb-4342-4207-9e60-634a92039b62" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120926Z:63bcfb6b-f079-4010-b258-68079b1b93ab" + "WESTEUROPE:20180521T052621Z:cc8dc6eb-4342-4207-9e60-634a92039b62" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1156,13 +1339,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-4039/providers/Microsoft.Sql/servers/sqlcrudtest-4506/databases/sqlvulnerabilityassessmentcrudtest-7404/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQwMzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTA2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc0MDQvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5d5fb89e-78fc-4ad9-becd-ca21892ead7a" + "7136be66-2247-4047-baab-0c8cbfa5a988" ], "accept-language": [ "en-US" @@ -1184,7 +1367,7 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:09:54 GMT" + "Mon, 21 May 2018 05:26:21 GMT" ], "Pragma": [ "no-cache" @@ -1193,16 +1376,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "07955227-b68e-4be7-95a0-ad222a1658d5" + "ee4978d8-ab69-462f-80a5-397aa3ec6303" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "f8276fc1-d8a6-4048-a9c6-1b30fec54e6f" + "59e95680-9457-4f3c-bfce-ff8ceaadc756" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T120954Z:f8276fc1-d8a6-4048-a9c6-1b30fec54e6f" + "WESTEUROPE:20180521T052622Z:59e95680-9457-4f3c-bfce-ff8ceaadc756" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1214,13 +1397,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-4039?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQwMzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9200?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkyMDA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dfb4081b-c133-491b-92f1-a2dbbd187207" + "7b6b71c3-fb05-4364-85b6-15bc75addac4" ], "accept-language": [ "en-US" @@ -1242,13 +1425,13 @@ "no-cache" ], "Date": [ - "Mon, 14 May 2018 12:10:07 GMT" + "Mon, 21 May 2018 05:26:26 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDQwMzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDkyMDAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1257,13 +1440,13 @@ "14999" ], "x-ms-request-id": [ - "2047c616-3c8c-43e4-964e-36930aeda325" + "ccd68135-dff2-4b44-8446-2767d06c323d" ], "x-ms-correlation-request-id": [ - "2047c616-3c8c-43e4-964e-36930aeda325" + "ccd68135-dff2-4b44-8446-2767d06c323d" ], "x-ms-routing-request-id": [ - "UKSOUTH:20180514T121007Z:2047c616-3c8c-43e4-964e-36930aeda325" + "WESTEUROPE:20180521T052626Z:ccd68135-dff2-4b44-8446-2767d06c323d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1277,16 +1460,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-4039" + "sqlcrudtest-9200" ], "CreateServer": [ - "sqlcrudtest-4506" + "sqlcrudtest-5134" ], "TestCreateUpdateGetDatabaseVulnerabilityAssessments": [ - "sqlvulnerabilityassessmentcrudtest-7404" + "sqlvulnerabilityassessmentcrudtest-4977" ], "CreateStorageContainer": [ - "sqlvatest4536" + "sqlvatest9261" ] }, "Variables": { 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 index 04856503aca86..43d8331503a28 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6063?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwNjM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-3117?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMxMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6063\": \"2018-05-16 16:02:52Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3117\": \"2018-05-21 05:28:09Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "f77a6426-ea63-4668-a5d3-258f62ae4956" + "f4173ae5-be55-46f4-8c53-794793434591" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063\",\r\n \"name\": \"sqlcrudtest-6063\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6063\": \"2018-05-16 16:02:52Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117\",\r\n \"name\": \"sqlcrudtest-3117\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3117\": \"2018-05-21 05:28:09Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:02:55 GMT" + "Mon, 21 May 2018 05:28:12 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "ba5146cf-e87b-4106-a8b3-774876c13a58" + "2e4ca016-a672-47d6-8955-4e2ef4758d62" ], "x-ms-correlation-request-id": [ - "ba5146cf-e87b-4106-a8b3-774876c13a58" + "2e4ca016-a672-47d6-8955-4e2ef4758d62" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160256Z:ba5146cf-e87b-4106-a8b3-774876c13a58" + "WESTEUROPE:20180521T052813Z:2e4ca016-a672-47d6-8955-4e2ef4758d62" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "8a8f01b9-d58a-4434-b50b-aa2431513eb4" + "53aeee4c-71d1-4cce-94a5-be7105a741ee" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:03:06 GMT" + "Mon, 21 May 2018 05:28:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverOperationResults/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverOperationResults/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "380da8e0-783e-4b23-b164-a68efa73d2c6" + "efcd03d3-404e-44c1-87fb-480cb24b7163" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "e94f39de-123c-4aea-b7f1-4c14f632accb" + "c0768ff5-7b92-4f45-9d76-531eea7104ad" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160307Z:e94f39de-123c-4aea-b7f1-4c14f632accb" + "WESTEUROPE:20180521T052824Z:c0768ff5-7b92-4f45-9d76-531eea7104ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zODBkYThlMC03ODNlLTRiMjMtYjE2NC1hNjhlZmE3M2QyYzY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"380da8e0-783e-4b23-b164-a68efa73d2c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:03:18 GMT" + "Mon, 21 May 2018 05:28:34 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3290d9e7-47e0-4c2b-9b90-aae7e79f5479" + "b79b6550-beea-4d8e-936f-6eefa4aeb29f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "a1bcff86-c9c2-4346-9aa7-d052422b45d4" + "e2e240b2-8df8-481b-bf18-d6d32087589c" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160318Z:a1bcff86-c9c2-4346-9aa7-d052422b45d4" + "WESTEUROPE:20180521T052834Z:e2e240b2-8df8-481b-bf18-d6d32087589c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zODBkYThlMC03ODNlLTRiMjMtYjE2NC1hNjhlZmE3M2QyYzY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"380da8e0-783e-4b23-b164-a68efa73d2c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:03:38 GMT" + "Mon, 21 May 2018 05:28:54 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7238cf5d-3d79-4bf2-8f0c-72ad34105894" + "dae017d2-f582-42dc-968f-06ff1a26d73e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "c328519c-22c4-44e7-bcc0-f05356a3b9fc" + "d92f9781-44c8-4211-b56c-0cdd2398238f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160338Z:c328519c-22c4-44e7-bcc0-f05356a3b9fc" + "WESTEUROPE:20180521T052855Z:d92f9781-44c8-4211-b56c-0cdd2398238f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/380da8e0-783e-4b23-b164-a68efa73d2c6?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zODBkYThlMC03ODNlLTRiMjMtYjE2NC1hNjhlZmE3M2QyYzY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"380da8e0-783e-4b23-b164-a68efa73d2c6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:03:07.387Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:03:58 GMT" + "Mon, 21 May 2018 05:29:15 GMT" ], "Pragma": [ "no-cache" @@ -294,7 +294,7 @@ "chunked" ], "Retry-After": [ - "15" + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1b990be3-fefc-4ffd-9922-f6c7bdb31f5e" + "b8f13ffa-3976-4b55-8c36-e2ce74caa721" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "fce09e36-b53c-468f-b585-35ee92f6d94b" + "e435f70e-827e-4f37-b9cd-58a34bb7dba3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160358Z:fce09e36-b53c-468f-b585-35ee92f6d94b" + "WESTEUROPE:20180521T052915Z:e435f70e-827e-4f37-b9cd-58a34bb7dba3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +334,7 @@ "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-3647.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647\",\r\n \"name\": \"sqlcrudtest-3647\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:03:59 GMT" + "Mon, 21 May 2018 05:29:35 GMT" ], "Pragma": [ "no-cache" @@ -354,6 +354,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -361,16 +364,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6593c4dd-7cb5-4851-b127-c95609a6928c" + "768f5cc7-a0cc-4f0d-9a26-d987215f7e82" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "a3a3eb7f-4b26-40c4-9466-479f6cdbc56c" + "2afee950-8c86-48d8-80b6-d5ed220645b3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160359Z:a3a3eb7f-4b26-40c4-9466-479f6cdbc56c" + "WESTEUROPE:20180521T052935Z:2afee950-8c86-48d8-80b6-d5ed220645b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +385,66 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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-2674.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674\",\r\n \"name\": \"sqlcrudtest-2674\",\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 05:29:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69240c5a-964d-49e7-a741-6cc8c6a2141d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "8a1f6736-36e8-4166-bb27-0444f457fa37" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T052936Z:8a1f6736-36e8-4166-bb27-0444f457fa37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,7 +455,7 @@ "29" ], "x-ms-client-request-id": [ - "2c790341-a265-4667-8038-8e1bcc55b6fc" + "2c6b0f8a-c1da-4b09-ac29-3dd8fef96b28" ], "accept-language": [ "en-US" @@ -404,10 +465,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T05:29:38.89Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +480,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:04:01 GMT" + "Mon, 21 May 2018 05:29:38 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +495,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "db1ecbc6-91bf-40c9-b853-165326c092e8" + "1b58988d-daae-4f2f-b84c-c67828721b8c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "f88eb3e7-991a-4e98-8026-7240ea11cce1" + "10251c63-c946-4573-a2f0-bffc399636f5" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160402Z:f88eb3e7-991a-4e98-8026-7240ea11cce1" + "WESTEUROPE:20180521T052939Z:10251c63-c946-4573-a2f0-bffc399636f5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,8 +519,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUwNDMyZDZmLWVmZmQtNDZlMS1iMzgxLTk2NTYzYjAzMTBiNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3MjEyZDM5LTVkNzctNGE4NC05YmQ4LTZiNjY4ZGRmZGI0Mz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -468,7 +529,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"50432d6f-effd-46e1-b381-96563b0310b6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b7212d39-5d77-4a84-9bd8-6b668ddfdb43\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:29:38.89Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +541,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:04:17 GMT" + "Mon, 21 May 2018 05:29:53 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f279129c-9ac7-45f9-953a-a6e8a06b2f0a" + "7d68dd34-5055-43e6-b0b4-70594698fc77" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14994" ], "x-ms-correlation-request-id": [ - "1bef1d7d-4dc4-4719-96a2-cc5485976341" + "759542e3-717e-4121-bb72-f01a98df21b6" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160417Z:1bef1d7d-4dc4-4719-96a2-cc5485976341" + "WESTEUROPE:20180521T052954Z:759542e3-717e-4121-bb72-f01a98df21b6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,8 +580,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUwNDMyZDZmLWVmZmQtNDZlMS1iMzgxLTk2NTYzYjAzMTBiNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3MjEyZDM5LTVkNzctNGE4NC05YmQ4LTZiNjY4ZGRmZGI0Mz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -529,7 +590,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"50432d6f-effd-46e1-b381-96563b0310b6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b7212d39-5d77-4a84-9bd8-6b668ddfdb43\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:29:38.89Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +602,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:04:32 GMT" + "Mon, 21 May 2018 05:30:09 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "780a3c99-7776-414b-81c6-b83105132e4e" + "4417abb7-c4ed-4a35-8bd2-0d32222e7f7e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14993" ], "x-ms-correlation-request-id": [ - "f926386e-3cdf-4021-a74a-531322e81463" + "9d8fbd41-0c78-4931-b830-9301b9b766c6" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160432Z:f926386e-3cdf-4021-a74a-531322e81463" + "WESTEUROPE:20180521T053009Z:9d8fbd41-0c78-4931-b830-9301b9b766c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +641,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/50432d6f-effd-46e1-b381-96563b0310b6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUwNDMyZDZmLWVmZmQtNDZlMS1iMzgxLTk2NTYzYjAzMTBiNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3MjEyZDM5LTVkNzctNGE4NC05YmQ4LTZiNjY4ZGRmZGI0Mz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -590,7 +651,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"50432d6f-effd-46e1-b381-96563b0310b6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:04:02.147Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b7212d39-5d77-4a84-9bd8-6b668ddfdb43\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:29:38.89Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +663,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:04:47 GMT" + "Mon, 21 May 2018 05:30:24 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "be116612-62a1-4a19-84e1-4f73c004cd85" + "f6a9d39b-48e5-4f51-958c-90244c13ec63" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14992" ], "x-ms-correlation-request-id": [ - "b84d1b6d-d4dc-4bf5-a0c0-b72b8a8ebbc0" + "81a48f04-4a41-4059-9509-b0cf2d63ef7d" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160448Z:b84d1b6d-d4dc-4bf5-a0c0-b72b8a8ebbc0" + "WESTEUROPE:20180521T053024Z:81a48f04-4a41-4059-9509-b0cf2d63ef7d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +702,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -651,7 +712,7 @@ "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\": \"c7d2d771-f306-4180-98d0-5815737442bf\",\r\n \"creationDate\": \"2018-05-16T16:04:02.363Z\",\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-16T16:34:34.763Z\",\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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-4204\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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\": \"eb8fddb1-c074-4f1e-ae5f-0747d80413ba\",\r\n \"creationDate\": \"2018-05-21T05:29:39.577Z\",\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-21T06:00:15.167Z\",\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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-431\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +724,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:04:48 GMT" + "Mon, 21 May 2018 05:30:24 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +739,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6b3235a1-116f-4c31-885a-073409338bb8" + "d74a84f8-be77-4385-b750-9bad109db840" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14991" ], "x-ms-correlation-request-id": [ - "f7cdfb8b-b765-48d9-9e3f-660d9902230a" + "21608ae2-667b-4e90-a103-6458a26468da" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160449Z:f7cdfb8b-b765-48d9-9e3f-660d9902230a" + "WESTEUROPE:20180521T053025Z:21608ae2-667b-4e90-a103-6458a26468da" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,8 +760,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Storage/storageAccounts/sqlvatest8714?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4NzE0P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Storage/storageAccounts/sqlvatest196?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxOTY/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": { @@ -711,7 +772,7 @@ "152" ], "x-ms-client-request-id": [ - "58c27bdf-fefd-4c8c-bd2b-c63b7c3f0ebe" + "fd6126b0-bc45-4a55-8cb1-621fedbf0beb" ], "accept-language": [ "en-US" @@ -736,13 +797,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:02 GMT" + "Mon, 21 May 2018 05:30:34 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/7327f825-7ad9-444b-b3bd-0e624ec52b93?monitor=true&api-version=2017-06-01" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/4ea60741-4ce1-4752-a5d6-c498c3ff5f94?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -751,19 +812,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "7327f825-7ad9-444b-b3bd-0e624ec52b93" + "4ea60741-4ce1-4752-a5d6-c498c3ff5f94" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1196" ], "x-ms-correlation-request-id": [ - "bdf1ff40-5689-42ce-8a32-b5aabe0fb51e" + "fe7503d9-f981-4ae2-8080-69a0977df1a9" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160502Z:bdf1ff40-5689-42ce-8a32-b5aabe0fb51e" + "WESTEUROPE:20180521T053035Z:fe7503d9-f981-4ae2-8080-69a0977df1a9" ], "X-Content-Type-Options": [ "nosniff" @@ -772,8 +833,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/7327f825-7ad9-444b-b3bd-0e624ec52b93?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNzMyN2Y4MjUtN2FkOS00NDRiLWIzYmQtMGU2MjRlYzUyYjkzP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/4ea60741-4ce1-4752-a5d6-c498c3ff5f94?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNGVhNjA3NDEtNGNlMS00NzUyLWE1ZDYtYzQ5OGMzZmY1Zjk0P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -782,7 +843,7 @@ "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-6063/providers/Microsoft.Storage/storageAccounts/sqlvatest8714\",\r\n \"name\": \"sqlvatest8714\",\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-16T16:05:01.6086246Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-16T16:05:01.6086246Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-16T16:05:01.5304666Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest8714.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest8714.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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-3117/providers/Microsoft.Storage/storageAccounts/sqlvatest196\",\r\n \"name\": \"sqlvatest196\",\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-21T05:30:35.0393713Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T05:30:35.0393713Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T05:30:34.9768738Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest196.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest196.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -794,7 +855,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:19 GMT" + "Mon, 21 May 2018 05:30:52 GMT" ], "Pragma": [ "no-cache" @@ -809,19 +870,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4254ca9d-9b0f-486c-a8e8-f75b4752dc56" + "ae04c59b-444a-45ca-864c-9371fb3cdf81" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14985" ], "x-ms-correlation-request-id": [ - "a935d29e-7b80-459f-9d39-2f8592149d30" + "47ed4d59-e746-477c-acf9-043fcacee710" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160519Z:a935d29e-7b80-459f-9d39-2f8592149d30" + "WESTEUROPE:20180521T053052Z:47ed4d59-e746-477c-acf9-043fcacee710" ], "X-Content-Type-Options": [ "nosniff" @@ -830,13 +891,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Storage/storageAccounts/sqlvatest8714/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4NzE0L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Storage/storageAccounts/sqlvatest196/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxOTYvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1a15a9f9-3626-4871-8190-bdaf9c8cc66e" + "1be5e00b-3747-42b9-87fb-9225d2ce58c3" ], "accept-language": [ "en-US" @@ -846,7 +907,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"oYgn95Xs82QMSZXcpp6Ujsj9cu1bApgB+45JfxTIjZas7nXu7sidPUqd81o2dOrhblUuTWShQHayyfWe9WvpGQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"JFfCZf2z8jvu4pOcCvlJ4Xxh7a5FcbF2rEJwubZgaQ5+buLZI8ktxRzc30mvtJ5pV3Xqtqgx6cqstj59EICf2A==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"O7Dc6Gt3LfaKjQsM0BTxR55gxbfzFHtTrssl7uWRySQ19xRjGEgwdlv6oNgHYmLMleES7ZvJrQ8lgn5B9mod1w==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"Vv851qkt59TwF0ooFkOdlLEtGwOA69eczvxTe/hI30vwDrFnRfFkGz3ibwQpDFZMrRx+ywKDhgdCvfCofzHWAw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -858,7 +919,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:19 GMT" + "Mon, 21 May 2018 05:30:52 GMT" ], "Pragma": [ "no-cache" @@ -873,19 +934,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e3ef75a5-2309-4812-ad18-02c135d31fe3" + "c0504dfb-4160-4a3f-b13d-0b584b538a07" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-correlation-request-id": [ - "a041927f-9d18-464e-8fb8-c1e6e14b6c0d" + "fdce7dbe-94ad-4b0d-8740-d9656437768a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160520Z:a041927f-9d18-464e-8fb8-c1e6e14b6c0d" + "WESTEUROPE:20180521T053053Z:fdce7dbe-94ad-4b0d-8740-d9656437768a" ], "X-Content-Type-Options": [ "nosniff" @@ -894,19 +955,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest8714.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=SwvoCj2lEbE2psPw7uVAXlfkAUvbIZi5L6cTLfOhfAw%3D&se=2018-05-16T17%3A05%3A21Z&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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest196.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=Jh5vvQREC4bb55OgwBhgEMkp1RweJRU70db%2BOR%2FTYXg%3D&se=2018-05-21T06%3A30%3A54Z&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" + "460" ], "x-ms-client-request-id": [ - "3f963515-8bd9-4262-8df5-24260364dd90" + "874c6810-3d23-46ad-acb6-fbedc2a4a0d2" ], "accept-language": [ "en-US" @@ -916,7 +977,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest8714.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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest196.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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -928,7 +989,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:28 GMT" + "Mon, 21 May 2018 05:31:00 GMT" ], "Pragma": [ "no-cache" @@ -943,16 +1004,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "08b863f4-f465-4fce-bf5a-9995897b2bb8" + "de66c98f-e02c-40ba-87d6-508710c23116" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "44c54f84-aeac-4d6c-b23b-505c90017a61" + "77416203-4039-4634-b24a-7e4a12b66a02" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160528Z:44c54f84-aeac-4d6c-b23b-505c90017a61" + "WESTEUROPE:20180521T053100Z:77416203-4039-4634-b24a-7e4a12b66a02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -964,8 +1025,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "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": { @@ -976,7 +1037,7 @@ "242" ], "x-ms-client-request-id": [ - "842408e4-3236-4065-8cf8-c437787f7562" + "871f44cc-7c21-4aa5-bbd8-b30cc59ae93f" ], "accept-language": [ "en-US" @@ -986,7 +1047,7 @@ "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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}", + "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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/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" @@ -998,7 +1059,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:32 GMT" + "Mon, 21 May 2018 05:31:03 GMT" ], "Pragma": [ "no-cache" @@ -1013,16 +1074,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4fccde16-802b-45c7-aa93-2ca52b79d9c1" + "d585c217-301a-4d15-af5c-2cff0f001bcc" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "f77443f6-83bf-437d-8ea7-68504dcdda15" + "bf7bf5df-77a8-4ca9-a407-9f56368ace15" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160532Z:f77443f6-83bf-437d-8ea7-68504dcdda15" + "WESTEUROPE:20180521T053103Z:bf7bf5df-77a8-4ca9-a407-9f56368ace15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1034,13 +1095,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "53163906-f6fc-4c09-af2c-e0eaf5eb8afc" + "e3ed7508-ad5d-4b83-9b84-64191bf2bb63" ], "accept-language": [ "en-US" @@ -1050,7 +1111,7 @@ "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-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}", + "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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/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" @@ -1062,7 +1123,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:33 GMT" + "Mon, 21 May 2018 05:31:03 GMT" ], "Pragma": [ "no-cache" @@ -1077,16 +1138,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "78c5b5e3-9716-4f7e-8c61-ba5b0eb97ed5" + "8f2c8234-1d9f-4447-bc8d-ff5d6214b8a0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14990" ], "x-ms-correlation-request-id": [ - "5948f8e6-7ba9-4170-a235-904b06ea7a2e" + "efbaa135-76a4-47b7-8275-cbbdb2ab6b8f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160533Z:5948f8e6-7ba9-4170-a235-904b06ea7a2e" + "WESTEUROPE:20180521T053104Z:efbaa135-76a4-47b7-8275-cbbdb2ab6b8f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1098,13 +1159,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f9e41a7c-f189-44be-b23f-19e34cdb2a28" + "c3aa8b88-077c-45c8-a7ff-b48d36bd0b26" ], "accept-language": [ "en-US" @@ -1129,7 +1190,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:35 GMT" + "Mon, 21 May 2018 05:31:05 GMT" ], "Pragma": [ "no-cache" @@ -1138,16 +1199,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "72da092e-6fc1-4fcc-b226-f87b6dcf85cc" + "33ecb640-d314-4594-b345-901eee276d26" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14989" ], "x-ms-correlation-request-id": [ - "d41e2ec2-153c-4b49-8ee7-e64e7006a8e9" + "fe270ec3-fa86-45fb-b090-bea072436830" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160535Z:d41e2ec2-153c-4b49-8ee7-e64e7006a8e9" + "WESTEUROPE:20180521T053105Z:fe270ec3-fa86-45fb-b090-bea072436830" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1159,13 +1220,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6063/providers/Microsoft.Sql/servers/sqlcrudtest-3647/databases/sqlvulnerabilityassessmentbaselinetest-4204/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwNjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNjQ3L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MjA0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2f39cfd7-e3b0-4ecd-b68a-2c87e886975a" + "111f0932-6581-4dae-be78-4b23505eb0ef" ], "accept-language": [ "en-US" @@ -1187,7 +1248,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:34 GMT" + "Mon, 21 May 2018 05:31:04 GMT" ], "Pragma": [ "no-cache" @@ -1196,16 +1257,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "9814cecd-3095-4e4d-8d36-02ee53cdcef0" + "fb1a93ef-494d-497d-bb34-c87aed0a11a1" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "e068bb44-cba6-41ef-b719-c8a1b4bb800b" + "ef1906e7-5226-456c-af8b-5309321b7543" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160534Z:e068bb44-cba6-41ef-b719-c8a1b4bb800b" + "WESTEUROPE:20180521T053105Z:ef1906e7-5226-456c-af8b-5309321b7543" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1217,13 +1278,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6063?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwNjM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-3117?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMxMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "99bcfc16-d184-46d6-9dc6-f546b7f64860" + "a8c6af0c-1870-4d2d-ba96-f1b900a6dedf" ], "accept-language": [ "en-US" @@ -1245,13 +1306,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:05:40 GMT" + "Mon, 21 May 2018 05:31:08 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYwNjMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMxMTctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1260,13 +1321,13 @@ "14999" ], "x-ms-request-id": [ - "0b0570b0-ee8f-4212-874c-49f98293eef7" + "5ca10ca9-ffcd-402b-bbeb-626f95059354" ], "x-ms-correlation-request-id": [ - "0b0570b0-ee8f-4212-874c-49f98293eef7" + "5ca10ca9-ffcd-402b-bbeb-626f95059354" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160540Z:0b0570b0-ee8f-4212-874c-49f98293eef7" + "WESTEUROPE:20180521T053109Z:5ca10ca9-ffcd-402b-bbeb-626f95059354" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1280,16 +1341,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-6063" + "sqlcrudtest-3117" ], "CreateServer": [ - "sqlcrudtest-3647" + "sqlcrudtest-2674" ], "TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines": [ - "sqlvulnerabilityassessmentbaselinetest-4204" + "sqlvulnerabilityassessmentbaselinetest-431" ], "CreateStorageContainer": [ - "sqlvatest8714" + "sqlvatest196" ] }, "Variables": { 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 index 23014076220f0..c5f6dc9fa9fc4 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5541?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1NDE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5506?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1MDY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5541\": \"2018-05-16 15:52:53Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5506\": \"2018-05-21 05:53:37Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "21e43c15-c247-4525-8a20-b1dddec245e7" + "9e1046ac-7317-41d8-b115-02e593fbffb5" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541\",\r\n \"name\": \"sqlcrudtest-5541\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5541\": \"2018-05-16 15:52:53Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506\",\r\n \"name\": \"sqlcrudtest-5506\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5506\": \"2018-05-21 05:53:37Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:52:58 GMT" + "Mon, 21 May 2018 05:53:40 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "c4700efd-1cd7-4ffe-8d5b-1090c84d31f3" + "d45350e7-3176-4e9d-8ac1-dc335ac184ca" ], "x-ms-correlation-request-id": [ - "c4700efd-1cd7-4ffe-8d5b-1090c84d31f3" + "d45350e7-3176-4e9d-8ac1-dc335ac184ca" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155258Z:c4700efd-1cd7-4ffe-8d5b-1090c84d31f3" + "WESTEUROPE:20180521T055341Z:d45350e7-3176-4e9d-8ac1-dc335ac184ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "2e541582-cbcf-4dbb-b814-d854a511e4cb" + "ed8cb44c-d87c-4776-979f-277e3be6ee32" ], "accept-language": [ "en-US" @@ -87,10 +87,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-16T15:53:09.64Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "73" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:53:09 GMT" + "Mon, 21 May 2018 05:53:50 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverOperationResults/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverOperationResults/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "20e26534-77b2-4cf1-b3f7-5902c5146633" + "6230cd63-4c2c-45a4-a7a8-4537aca92390" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "bf8b8cc9-73dc-4983-9826-b7f75da617b3" + "161c1813-bbc7-478a-8892-bd72687041ab" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155309Z:bf8b8cc9-73dc-4983-9826-b7f75da617b3" + "WESTEUROPE:20180521T055351Z:161c1813-bbc7-478a-8892-bd72687041ab" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMGUyNjUzNC03N2IyLTRjZjEtYjNmNy01OTAyYzUxNDY2MzM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MjMwY2Q2My00YzJjLTQ1YTQtYTdhOC00NTM3YWNhOTIzOTA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"20e26534-77b2-4cf1-b3f7-5902c5146633\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:53:09.64Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6230cd63-4c2c-45a4-a7a8-4537aca92390\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:53:19 GMT" + "Mon, 21 May 2018 05:54:01 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9f394c3f-d9f9-446d-b676-538687e5c721" + "533e1d1d-de87-4808-9a92-3025f46d4134" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14945" + "14999" ], "x-ms-correlation-request-id": [ - "a2ff2496-f0f9-4754-8dba-0482939b977c" + "53334f06-4500-4db5-a6ac-bf3bda880076" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155320Z:a2ff2496-f0f9-4754-8dba-0482939b977c" + "WESTEUROPE:20180521T055401Z:53334f06-4500-4db5-a6ac-bf3bda880076" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMGUyNjUzNC03N2IyLTRjZjEtYjNmNy01OTAyYzUxNDY2MzM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MjMwY2Q2My00YzJjLTQ1YTQtYTdhOC00NTM3YWNhOTIzOTA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"20e26534-77b2-4cf1-b3f7-5902c5146633\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:53:09.64Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6230cd63-4c2c-45a4-a7a8-4537aca92390\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:53:40 GMT" + "Mon, 21 May 2018 05:54:22 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4a109955-3e91-427d-bcce-a410fec3d7b6" + "97646f38-1708-44c5-9f28-7151ed6af47a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14944" + "14998" ], "x-ms-correlation-request-id": [ - "1c44e84f-aeed-4496-acad-94b42618dc3b" + "aea8879b-29c0-4d3b-91f8-5dcbc89ec26c" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155340Z:1c44e84f-aeed-4496-acad-94b42618dc3b" + "WESTEUROPE:20180521T055422Z:aea8879b-29c0-4d3b-91f8-5dcbc89ec26c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/20e26534-77b2-4cf1-b3f7-5902c5146633?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMGUyNjUzNC03N2IyLTRjZjEtYjNmNy01OTAyYzUxNDY2MzM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MjMwY2Q2My00YzJjLTQ1YTQtYTdhOC00NTM3YWNhOTIzOTA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"20e26534-77b2-4cf1-b3f7-5902c5146633\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:53:09.64Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6230cd63-4c2c-45a4-a7a8-4537aca92390\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:54:00 GMT" + "Mon, 21 May 2018 05:54:42 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4c85182b-fb41-4c2a-b030-f895b0b22397" + "3bbb0c1f-a191-4ea8-8c68-17ebd45d50a8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14943" + "14997" ], "x-ms-correlation-request-id": [ - "cbe2490a-1338-41f2-a33d-048ba3036a00" + "35580aee-2d02-4928-8104-44c8d0bfaf18" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155401Z:cbe2490a-1338-41f2-a33d-048ba3036a00" + "WESTEUROPE:20180521T055443Z:35580aee-2d02-4928-8104-44c8d0bfaf18" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +334,7 @@ "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-3714.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714\",\r\n \"name\": \"sqlcrudtest-3714\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-6098.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098\",\r\n \"name\": \"sqlcrudtest-6098\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:54:01 GMT" + "Mon, 21 May 2018 05:54:42 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "309f0745-2e85-48fc-b46d-ebf838130455" + "4a6edc68-9443-4165-9393-951d4ecfc9bd" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14942" + "14996" ], "x-ms-correlation-request-id": [ - "8dffed0b-99eb-41d2-a414-ec85d6f8d506" + "fb22b876-7719-40a9-a8d8-d44c6c7dc031" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155401Z:8dffed0b-99eb-41d2-a414-ec85d6f8d506" + "WESTEUROPE:20180521T055443Z:fb22b876-7719-40a9-a8d8-d44c6c7dc031" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,7 +394,7 @@ "29" ], "x-ms-client-request-id": [ - "c4b9ac8b-e99f-41fc-a610-92ee5156ae87" + "d03f3f02-1614-43b4-9f12-b6f74e249d46" ], "accept-language": [ "en-US" @@ -404,7 +404,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-16T15:54:04.677Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "76" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:54:04 GMT" + "Mon, 21 May 2018 05:54:47 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "276cc8c7-0232-42c1-9236-47a60f862607" + "182abd5a-d85a-4937-bb60-38705d3be6ab" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "6f2b1817-c442-414e-acb9-d741c5d374de" + "8963f76e-eaa5-4f97-8758-6529ab379f93" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155404Z:6f2b1817-c442-414e-acb9-d741c5d374de" + "WESTEUROPE:20180521T055448Z:8963f76e-eaa5-4f97-8758-6529ab379f93" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,8 +458,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI4ZDU3ZTIxLTE0MzgtNGM3NS05MjI4LTIzMzkyNTQ0YTZmNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -468,7 +468,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"28d57e21-1438-4c75-9228-23392544a6f7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:54:04.677Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:54:19 GMT" + "Mon, 21 May 2018 05:55:03 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9543ad92-e3a0-424b-936d-f6911f08c355" + "c68371d1-34ef-4b80-a19f-bbe4b467dbde" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14941" + "14995" ], "x-ms-correlation-request-id": [ - "addc2d7d-44d9-4ba0-8fd9-6b7dd1da92bf" + "306810a0-adef-4e74-9454-c3dcbaf20022" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155420Z:addc2d7d-44d9-4ba0-8fd9-6b7dd1da92bf" + "WESTEUROPE:20180521T055503Z:306810a0-adef-4e74-9454-c3dcbaf20022" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,8 +519,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI4ZDU3ZTIxLTE0MzgtNGM3NS05MjI4LTIzMzkyNTQ0YTZmNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -529,7 +529,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"28d57e21-1438-4c75-9228-23392544a6f7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:54:04.677Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:54:36 GMT" + "Mon, 21 May 2018 05:55:17 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d2e681fe-b92f-4611-95c0-eab699e25b57" + "294657be-73c0-454f-b544-1d3b5ef61dc4" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14940" + "14994" ], "x-ms-correlation-request-id": [ - "97826e83-deff-45f0-9658-536c2eb9a18e" + "951aa116-96b4-4407-a55c-b391c630cad3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155437Z:97826e83-deff-45f0-9658-536c2eb9a18e" + "WESTEUROPE:20180521T055518Z:951aa116-96b4-4407-a55c-b391c630cad3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +580,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28d57e21-1438-4c75-9228-23392544a6f7?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI4ZDU3ZTIxLTE0MzgtNGM3NS05MjI4LTIzMzkyNTQ0YTZmNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -590,7 +590,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"28d57e21-1438-4c75-9228-23392544a6f7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:54:04.677Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:54:53 GMT" + "Mon, 21 May 2018 05:55:33 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1b15c701-5787-4abd-9a4a-e261d89b2e89" + "3ab4a51c-248c-49c2-ba22-04d9be05d686" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14939" + "14993" ], "x-ms-correlation-request-id": [ - "67caa980-6611-4921-8b7b-782e65ea4812" + "026752f6-47a2-4b39-b768-41f385b7674b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155453Z:67caa980-6611-4921-8b7b-782e65ea4812" + "WESTEUROPE:20180521T055533Z:026752f6-47a2-4b39-b768-41f385b7674b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +641,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -651,7 +651,7 @@ "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\": \"9db12e79-64e1-480c-959f-a55eeb0db783\",\r\n \"creationDate\": \"2018-05-16T15:54:04.94Z\",\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-16T16:24:40.483Z\",\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-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318\",\r\n \"name\": \"sqlvulnerabilityassessmentscantest-7318\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:54:53 GMT" + "Mon, 21 May 2018 05:55:49 GMT" ], "Pragma": [ "no-cache" @@ -671,6 +671,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -678,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "16110bff-8d3b-42ca-96d3-9d63ca5bfe96" + "71c5e92b-6609-49e9-9e06-1d7269ff14e1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14938" + "14992" ], "x-ms-correlation-request-id": [ - "06c74495-19dd-411f-996e-96dbfa04e54f" + "726d3894-6597-4787-a4d4-29d6c9e8ff73" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155453Z:06c74495-19dd-411f-996e-96dbfa04e54f" + "WESTEUROPE:20180521T055549Z:726d3894-6597-4787-a4d4-29d6c9e8ff73" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,8 +702,66 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Storage/storageAccounts/sqlvatest5599?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q1NTk5P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjM/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\": \"1b2a9e06-01b5-4e52-9dde-3195b7095a1f\",\r\n \"creationDate\": \"2018-05-21T05:54:48.163Z\",\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-21T06:25:43.49Z\",\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-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763\",\r\n \"name\": \"sqlvulnerabilityassessmentscantest-8763\",\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 05:55:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e9c3ce15-e255-4e6f-9ad8-e65b42fd3164" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "c8f8ffb2-3618-47ef-9305-e55a5a3c1f42" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T055549Z:c8f8ffb2-3618-47ef-9305-e55a5a3c1f42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Storage/storageAccounts/sqlvatest2326?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyMzI2P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "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": { @@ -711,7 +772,7 @@ "152" ], "x-ms-client-request-id": [ - "3a1417e8-2093-4d62-8de7-8846e53eb795" + "3851e3cd-be8b-4858-b669-8b107cc8b188" ], "accept-language": [ "en-US" @@ -736,13 +797,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:05 GMT" + "Mon, 21 May 2018 05:56:01 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/c9d62a72-8133-4337-9241-f6a38441b82b?monitor=true&api-version=2017-06-01" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/f8ee4a80-250f-4e29-a6b1-ea5dd04c5940?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -751,19 +812,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c9d62a72-8133-4337-9241-f6a38441b82b" + "f8ee4a80-250f-4e29-a6b1-ea5dd04c5940" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1194" ], "x-ms-correlation-request-id": [ - "6c3b6db7-5b8e-451c-8758-21ab6ff868e9" + "2f78a663-20f1-4a70-a57c-828ee3373ac1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155506Z:6c3b6db7-5b8e-451c-8758-21ab6ff868e9" + "WESTEUROPE:20180521T055601Z:2f78a663-20f1-4a70-a57c-828ee3373ac1" ], "X-Content-Type-Options": [ "nosniff" @@ -772,8 +833,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/c9d62a72-8133-4337-9241-f6a38441b82b?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvYzlkNjJhNzItODEzMy00MzM3LTkyNDEtZjZhMzg0NDFiODJiP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/f8ee4a80-250f-4e29-a6b1-ea5dd04c5940?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvZjhlZTRhODAtMjUwZi00ZTI5LWE2YjEtZWE1ZGQwNGM1OTQwP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -782,7 +843,7 @@ "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-5541/providers/Microsoft.Storage/storageAccounts/sqlvatest5599\",\r\n \"name\": \"sqlvatest5599\",\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-16T15:55:05.608461Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-16T15:55:05.608461Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-16T15:55:05.5297504Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest5599.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest5599.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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-5506/providers/Microsoft.Storage/storageAccounts/sqlvatest2326\",\r\n \"name\": \"sqlvatest2326\",\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-21T05:56:00.1324988Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T05:56:00.1324988Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T05:56:00.0386974Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest2326.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest2326.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -794,7 +855,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:23 GMT" + "Mon, 21 May 2018 05:56:18 GMT" ], "Pragma": [ "no-cache" @@ -809,19 +870,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bc0e6d44-960a-468b-b7f8-7c5b8b3a0ca1" + "9e1d1183-b578-48fd-9c4f-d7f658049311" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14984" ], "x-ms-correlation-request-id": [ - "f5e1fe25-ee72-451e-9eee-1d42e43eab39" + "e9862f86-d66b-4529-a2ba-7a85ad32968b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155523Z:f5e1fe25-ee72-451e-9eee-1d42e43eab39" + "WESTEUROPE:20180521T055619Z:e9862f86-d66b-4529-a2ba-7a85ad32968b" ], "X-Content-Type-Options": [ "nosniff" @@ -830,13 +891,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Storage/storageAccounts/sqlvatest5599/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q1NTk5L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Storage/storageAccounts/sqlvatest2326/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyMzI2L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cd6948b6-6768-42be-8fa1-315838d89dbd" + "f6acdca2-70cc-45ca-b8c5-05f631ad75d2" ], "accept-language": [ "en-US" @@ -846,7 +907,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"wU2ZFQU91djysKtbC0ZU9w+eJ7qgYTjSqRPDOiI0+Lz7YR32bCSs0m0k6iw9qXX9HDgj6lByEhQx7jctjOIthw==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"M1Mcl8O3cncfIoCYBHFmhWbDGJQwL6CGTBTZPhHUoKmQqfuG7XDKT3BG6qKP6r76blaSrPh2Qsq0sLIFIRMOLw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"dLGTSq2uFFVkJXIVOYQ1BWa6FufLAZof7VJ7XNmkqFCF0PH05R0AlE1Yc+ewKznOVqIfmtqzc1jkcat71BhoWg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"gtF0sjpcLZiPnaskTGKtCECGRiAXUSeHoT12h28nw4AN/rL2XZxKqmJr5wXDpMGuQvpfVtDOFvWBp10OwLinLQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -858,7 +919,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:23 GMT" + "Mon, 21 May 2018 05:56:19 GMT" ], "Pragma": [ "no-cache" @@ -873,19 +934,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "714d6d94-ed94-4f25-97a8-1f00a9c972d6" + "7ad464ec-4c05-436a-8f16-457a2e54beff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1193" ], "x-ms-correlation-request-id": [ - "91786600-90df-47e1-9e62-f195776f37ef" + "90e8555c-9122-4708-ba31-888f35ac9442" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155524Z:91786600-90df-47e1-9e62-f195776f37ef" + "WESTEUROPE:20180521T055619Z:90e8555c-9122-4708-ba31-888f35ac9442" ], "X-Content-Type-Options": [ "nosniff" @@ -894,19 +955,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=Cwyt71lyf5yveahErySGHMKa1yoGV3VOUt3x%2BE2dpwU%3D&se=2018-05-16T16%3A55%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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=MukfXij41vAtOm3jz34uYEIzeXXE3fmdr%2FWMc%2BNYsA0%3D&se=2018-05-21T06%3A56%3A20Z&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" + "461" ], "x-ms-client-request-id": [ - "b4e837eb-7b4d-4f9a-8651-273887a7c9a0" + "8a207135-533c-4094-81f7-6dec4601fce4" ], "accept-language": [ "en-US" @@ -916,7 +977,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest5599.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-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2326.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-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -928,7 +989,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:33 GMT" + "Mon, 21 May 2018 05:56:28 GMT" ], "Pragma": [ "no-cache" @@ -943,16 +1004,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "04e3c24b-ccc7-4e6d-81ec-6ffcd1beb59d" + "32bf1028-9dc9-48aa-b776-d64701dfdd42" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "59233fed-b43b-4dbf-898a-b400d738005e" + "c5262a19-223f-42ec-a4b7-90bcdeeb29cc" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155534Z:59233fed-b43b-4dbf-898a-b400d738005e" + "WESTEUROPE:20180521T055628Z:c5262a19-223f-42ec-a4b7-90bcdeeb29cc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -964,13 +1025,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest1_636620829337261191/initiateScan?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxXzYzNjYyMDgyOTMzNzI2MTE5MS9pbml0aWF0ZVNjYW4/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "43159a7f-2d96-4e90-a21f-1d07bea3e19a" + "d8cf7423-0285-4b6e-88f6-5143429cdc17" ], "accept-language": [ "en-US" @@ -980,10 +1041,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-16T15:55:34.853Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T05:56:28.92Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "97" + "96" ], "Content-Type": [ "application/json; charset=utf-8" @@ -995,13 +1056,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:34 GMT" + "Mon, 21 May 2018 05:56:28 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -1010,19 +1071,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "601cf8ca-d7fd-4cc6-8947-e636d6a3447f" + "83fcf815-04e7-4995-a071-3c0417aacd2a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "cf663986-8338-49e2-a8b0-5d99ac192fae" + "c018fb3e-52b9-426d-9b7a-15d2484cffba" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155535Z:cf663986-8338-49e2-a8b0-5d99ac192fae" + "WESTEUROPE:20180521T055629Z:c018fb3e-52b9-426d-9b7a-15d2484cffba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1034,8 +1095,69 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9kMDg3NmQ4Yi02YTc1LTRlYWItYTQzZC1mYmVlNWMxOGFkOGU/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9hMjJmOTA2Yi00M2Y2LTQ0MjktOTAyZS0yZjlhOWNjZWFjNjY/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\": \"a22f906b-43f6-4429-902e-2f9a9cceac66\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:56:28.92Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 21 May 2018 05:56:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6f4ed7ca-c55b-48f1-ae42-f0b81b72de48" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "8d062431-9549-4eae-a26e-45c4e007aae1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T055644Z:8d062431-9549-4eae-a26e-45c4e007aae1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9hMjJmOTA2Yi00M2Y2LTQ0MjktOTAyZS0yZjlhOWNjZWFjNjY/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1044,7 +1166,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d0876d8b-6a75-4eab-a43d-fbee5c18ad8e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:55:34.853Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"a22f906b-43f6-4429-902e-2f9a9cceac66\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:56:28.92Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1056,7 +1178,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:49 GMT" + "Mon, 21 May 2018 05:56:59 GMT" ], "Pragma": [ "no-cache" @@ -1074,16 +1196,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1c915fc2-4f31-44e0-b699-010f761854cf" + "201558ec-7e3d-4b41-a84c-cdcb85bde040" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14944" + "14989" ], "x-ms-correlation-request-id": [ - "e94c780b-9749-4ba2-aacd-579b77fc0007" + "8cebbc05-f66f-470e-b7b2-7f048bf1b097" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155550Z:e94c780b-9749-4ba2-aacd-579b77fc0007" + "WESTEUROPE:20180521T055659Z:8cebbc05-f66f-470e-b7b2-7f048bf1b097" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,8 +1217,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d0876d8b-6a75-4eab-a43d-fbee5c18ad8e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9kMDg3NmQ4Yi02YTc1LTRlYWItYTQzZC1mYmVlNWMxOGFkOGU/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9hMjJmOTA2Yi00M2Y2LTQ0MjktOTAyZS0yZjlhOWNjZWFjNjY/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1105,10 +1227,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_636620829337261191\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:34.853Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases//vulnerabilityAssessments/Default/scans/scantest1_636620829337261191\",\r\n \"name\": \"scantest1_636620829337261191\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T05:56:28.92Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default/scans/scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "635" + "724" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1120,7 +1242,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:50 GMT" + "Mon, 21 May 2018 05:56:59 GMT" ], "Pragma": [ "no-cache" @@ -1129,16 +1251,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "fcd27ed3-f468-4045-928f-383ad0ff368d" + "60a5407d-48c5-470e-b2bc-4d412c6e7cef" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14943" + "14988" ], "x-ms-correlation-request-id": [ - "10c53661-21b0-46c8-959d-3d5984761a28" + "a44f34cf-03f8-4be4-a736-fd78ddf2cbc0" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155551Z:10c53661-21b0-46c8-959d-3d5984761a28" + "WESTEUROPE:20180521T055700Z:a44f34cf-03f8-4be4-a736-fd78ddf2cbc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1150,13 +1272,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest2_636620829509887101/initiateScan?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyXzYzNjYyMDgyOTUwOTg4NzEwMS9pbml0aWF0ZVNjYW4/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cf722451-94e7-4624-ab10-08dad3e4817e" + "1f3b0a30-099e-41ee-bb1e-ea444910d62b" ], "accept-language": [ "en-US" @@ -1166,10 +1288,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-16T15:55:52.013Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T05:57:01.07Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "97" + "96" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1181,13 +1303,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:55:51 GMT" + "Mon, 21 May 2018 05:57:00 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -1196,19 +1318,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "3c5fdfe9-4e66-4bc0-b577-884a8806e228" + "93a4972a-1256-4259-b88a-710860d8c350" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "f05e2b96-4e4b-47f0-82e1-6ad1d0829d0b" + "8321f6d1-0492-4dc7-abc3-c76fa7948da4" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155552Z:f05e2b96-4e4b-47f0-82e1-6ad1d0829d0b" + "WESTEUROPE:20180521T055701Z:8321f6d1-0492-4dc7-abc3-c76fa7948da4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1220,8 +1342,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9lOGEwZmMyMS1jMmQ3LTRlYTItYWIwNi03NmUzNjc5OWEyOWU/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi8zZDU3YmE2OC1jMmJiLTQwYjItYWMyMi1iOTY2ODFmMzljNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1230,7 +1352,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e8a0fc21-c2d7-4ea2-ab06-76e36799a29e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:55:52.013Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3d57ba68-c2bb-40b2-ac22-b96681f39c40\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:57:01.07Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1242,7 +1364,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:56:07 GMT" + "Mon, 21 May 2018 05:57:16 GMT" ], "Pragma": [ "no-cache" @@ -1260,16 +1382,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "aa2ba8f7-0c31-47fb-bd62-c3a4c971049e" + "60dcdf5e-b656-4102-8622-56c4451fe609" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14942" + "14987" ], "x-ms-correlation-request-id": [ - "f8b62969-9bbe-4b23-8c24-f9613ffa0742" + "4604c33b-ce0d-4566-99d8-7791671ee10c" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155608Z:f8b62969-9bbe-4b23-8c24-f9613ffa0742" + "WESTEUROPE:20180521T055716Z:4604c33b-ce0d-4566-99d8-7791671ee10c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1281,8 +1403,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/e8a0fc21-c2d7-4ea2-ab06-76e36799a29e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9lOGEwZmMyMS1jMmQ3LTRlYTItYWIwNi03NmUzNjc5OWEyOWU/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy8zZDU3YmE2OC1jMmJiLTQwYjItYWMyMi1iOTY2ODFmMzljNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1291,10 +1413,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_636620829509887101\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:52.013Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases//vulnerabilityAssessments/Default/scans/scantest2_636620829509887101\",\r\n \"name\": \"scantest2_636620829509887101\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T05:57:01.07Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default/scans/scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "635" + "724" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1306,7 +1428,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:56:07 GMT" + "Mon, 21 May 2018 05:57:16 GMT" ], "Pragma": [ "no-cache" @@ -1315,16 +1437,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c11982b4-388f-4663-961a-d8bf90135f7f" + "baefee0c-048b-4de7-bce4-7112e8e2f51f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14941" + "14986" ], "x-ms-correlation-request-id": [ - "1716e270-2de5-4d02-af69-3f266c54b16d" + "26b66abc-06ba-47f6-b72a-5e1fae682a52" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155608Z:1716e270-2de5-4d02-af69-3f266c54b16d" + "WESTEUROPE:20180521T055716Z:26b66abc-06ba-47f6-b72a-5e1fae682a52" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1336,13 +1458,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest1_636620829337261191?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxXzYzNjYyMDgyOTMzNzI2MTE5MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e86048dc-d665-462e-bfed-1f6688dbdfb0" + "f78dd4c0-a5f7-4d91-80d5-b887a12d3d38" ], "accept-language": [ "en-US" @@ -1352,7 +1474,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_636620829337261191\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:36.605769Z\",\r\n \"endTime\": \"2018-05-16T15:55:46.7468675Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest1_636620829337261191\",\r\n \"name\": \"scantest1_636620829337261191\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T05:56:30.1267299Z\",\r\n \"endTime\": \"2018-05-21T05:56:42.6268001Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/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" @@ -1364,7 +1486,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:56:08 GMT" + "Mon, 21 May 2018 05:57:16 GMT" ], "Pragma": [ "no-cache" @@ -1379,16 +1501,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b4a3d460-e916-4e0d-8318-ea17039f2f98" + "52d45063-9765-465a-b728-d3a35771734f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14940" + "14985" ], "x-ms-correlation-request-id": [ - "3f3ea2ad-e5b7-464b-885d-cd4f7fc7c373" + "3216da30-08c5-4397-93d0-acf974b3b01f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155608Z:3f3ea2ad-e5b7-464b-885d-cd4f7fc7c373" + "WESTEUROPE:20180521T055717Z:3216da30-08c5-4397-93d0-acf974b3b01f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1400,13 +1522,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b504bf99-d6a7-4687-9e10-8791672e1a48" + "c2c08e9f-760c-4421-9766-c9de7b6f7ae9" ], "accept-language": [ "en-US" @@ -1416,7 +1538,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"scanId\": \"scantest1_636620829337261191\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:36.605769Z\",\r\n \"endTime\": \"2018-05-16T15:55:46.7468675Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest1_636620829337261191\",\r\n \"name\": \"scantest1_636620829337261191\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n },\r\n {\r\n \"properties\": {\r\n \"scanId\": \"scantest2_636620829509887101\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:52.2783475Z\",\r\n \"endTime\": \"2018-05-16T15:55:56.0128654Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest2_636620829509887101\",\r\n \"name\": \"scantest2_636620829509887101\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n }\r\n ]\r\n}", + "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-21T05:56:30.1267299Z\",\r\n \"endTime\": \"2018-05-21T05:56:42.6268001Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/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-21T05:57:01.2576927Z\",\r\n \"endTime\": \"2018-05-21T05:57:05.1796125Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/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" @@ -1428,7 +1550,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:56:08 GMT" + "Mon, 21 May 2018 05:57:17 GMT" ], "Pragma": [ "no-cache" @@ -1443,16 +1565,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "497d0c3e-87f0-44a5-8eab-c581d66eaa19" + "12fda316-01e8-48bb-aa51-d1386da8a33c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14939" + "14984" ], "x-ms-correlation-request-id": [ - "3b9c5aab-0541-4695-9b06-571881b50c4f" + "3887a38b-6da8-4408-b132-f287013f9275" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155609Z:3b9c5aab-0541-4695-9b06-571881b50c4f" + "WESTEUROPE:20180521T055717Z:3887a38b-6da8-4408-b132-f287013f9275" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1464,13 +1586,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/default/scans/scantest2_636620829509887101?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNzE0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTczMTgvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyXzYzNjYyMDgyOTUwOTg4NzEwMT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "558123dd-5c21-4113-a0ad-407da448b984" + "a3bbe5b8-4b0f-483f-bfd1-77029851b40e" ], "accept-language": [ "en-US" @@ -1480,7 +1602,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_636620829509887101\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T15:55:52.2783475Z\",\r\n \"endTime\": \"2018-05-16T15:55:56.0128654Z\",\r\n \"storageContainerPath\": \"https://sqlvatest5599.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5541/providers/Microsoft.Sql/servers/sqlcrudtest-3714/databases/sqlvulnerabilityassessmentscantest-7318/vulnerabilityAssessments/Default/scans/scantest2_636620829509887101\",\r\n \"name\": \"scantest2_636620829509887101\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T05:57:01.2576927Z\",\r\n \"endTime\": \"2018-05-21T05:57:05.1796125Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/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" @@ -1492,7 +1614,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:56:08 GMT" + "Mon, 21 May 2018 05:57:17 GMT" ], "Pragma": [ "no-cache" @@ -1507,16 +1629,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "899f80c6-b0bc-49b7-b87a-e4c4b0d81d96" + "537cff79-ef16-449f-8407-e92815b94cb2" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14938" + "14983" ], "x-ms-correlation-request-id": [ - "ba91a5ac-8ca5-49cc-b1be-0339bef15814" + "453e0617-ff63-4865-869e-88baa06651af" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155609Z:ba91a5ac-8ca5-49cc-b1be-0339bef15814" + "WESTEUROPE:20180521T055717Z:453e0617-ff63-4865-869e-88baa06651af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1528,13 +1650,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5541?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1NDE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5506?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1MDY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "328c106e-163f-4b1d-9ae7-860a2260b2c2" + "bc00b6ae-4443-43f8-9038-1ffb3336ac11" ], "accept-language": [ "en-US" @@ -1556,13 +1678,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:56:13 GMT" + "Mon, 21 May 2018 05:57:21 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU1NDEtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU1MDYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1571,13 +1693,13 @@ "14999" ], "x-ms-request-id": [ - "d91e5781-29f0-4b33-9c85-93270570a55a" + "6401aeca-521b-4060-96e0-109b03d8bfc7" ], "x-ms-correlation-request-id": [ - "d91e5781-29f0-4b33-9c85-93270570a55a" + "6401aeca-521b-4060-96e0-109b03d8bfc7" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155613Z:d91e5781-29f0-4b33-9c85-93270570a55a" + "WESTEUROPE:20180521T055721Z:6401aeca-521b-4060-96e0-109b03d8bfc7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1591,16 +1713,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-5541" + "sqlcrudtest-5506" ], "CreateServer": [ - "sqlcrudtest-3714" + "sqlcrudtest-6098" ], "TestExcetueGetListDatabaseVulnerabilityAssessmentScans": [ - "sqlvulnerabilityassessmentscantest-7318" + "sqlvulnerabilityassessmentscantest-8763" ], "CreateStorageContainer": [ - "sqlvatest5599" + "sqlvatest2326" ] }, "Variables": { 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 index 280472821435c..8454060c0548e 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6432?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0MzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9496?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk0OTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6432\": \"2018-05-16 15:58:56Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-9496\": \"2018-05-21 06:04:56Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "0e5b4ba2-1800-4a6a-beae-cb09f47ee450" + "821c153d-569b-4d1d-b1c2-f17a3a9f26b6" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432\",\r\n \"name\": \"sqlcrudtest-6432\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6432\": \"2018-05-16 15:58:56Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496\",\r\n \"name\": \"sqlcrudtest-9496\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-9496\": \"2018-05-21 06:04:56Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:59:00 GMT" + "Mon, 21 May 2018 06:04:58 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "9ba8630c-f9e2-4adb-865f-793cd65daa2c" + "ee70c06e-3e83-4675-bd75-bdd392b478d6" ], "x-ms-correlation-request-id": [ - "9ba8630c-f9e2-4adb-865f-793cd65daa2c" + "ee70c06e-3e83-4675-bd75-bdd392b478d6" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155900Z:9ba8630c-f9e2-4adb-865f-793cd65daa2c" + "WESTEUROPE:20180521T060459Z:ee70c06e-3e83-4675-bd75-bdd392b478d6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "3fa8d032-e157-41ba-b3a7-87416f15b826" + "cb623a52-c2f7-473c-89fd-9bab5096bab0" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-16T15:59:11.647Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:59:11 GMT" + "Mon, 21 May 2018 06:05:11 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverOperationResults/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverOperationResults/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "3d740383-97bb-4ad8-8516-96d5cb9c716e" + "88658119-ff3a-4dcc-b2c7-9bb15b2cbe38" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "ebd92c4b-110f-4edc-b8bc-309caa47cdf4" + "f47a04bd-a538-4e2c-bf55-c485776d6683" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155912Z:ebd92c4b-110f-4edc-b8bc-309caa47cdf4" + "WESTEUROPE:20180521T060512Z:f47a04bd-a538-4e2c-bf55-c485776d6683" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zZDc0MDM4My05N2JiLTRhZDgtODUxNi05NmQ1Y2I5YzcxNmU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ODY1ODExOS1mZjNhLTRkY2MtYjJjNy05YmIxNWIyY2JlMzg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"3d740383-97bb-4ad8-8516-96d5cb9c716e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:59:11.647Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"88658119-ff3a-4dcc-b2c7-9bb15b2cbe38\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:59:22 GMT" + "Mon, 21 May 2018 06:05:21 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3ba18af1-494a-4832-b52f-1c853c23cd17" + "0add1628-ba51-4dce-9cbe-1bf3dfebd958" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "23b0f23e-7622-4f55-a84f-4c00ae4b5b7e" + "af696646-86d4-444c-bd02-a8c880396c1b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155922Z:23b0f23e-7622-4f55-a84f-4c00ae4b5b7e" + "WESTEUROPE:20180521T060522Z:af696646-86d4-444c-bd02-a8c880396c1b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zZDc0MDM4My05N2JiLTRhZDgtODUxNi05NmQ1Y2I5YzcxNmU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ODY1ODExOS1mZjNhLTRkY2MtYjJjNy05YmIxNWIyY2JlMzg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"3d740383-97bb-4ad8-8516-96d5cb9c716e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T15:59:11.647Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"88658119-ff3a-4dcc-b2c7-9bb15b2cbe38\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 15:59:42 GMT" + "Mon, 21 May 2018 06:05:42 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7ee9e5a1-41c2-4c75-ad8c-e8b96cb8cdd4" + "7bf1a3a7-0b82-4143-9844-9bf6d0bdfb73" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "52b3abe9-7b70-4b74-895f-50c572eecc8f" + "4ef66c20-f29a-4b64-9f25-d850c1cbb773" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T155943Z:52b3abe9-7b70-4b74-895f-50c572eecc8f" + "WESTEUROPE:20180521T060542Z:4ef66c20-f29a-4b64-9f25-d850c1cbb773" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/3d740383-97bb-4ad8-8516-96d5cb9c716e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zZDc0MDM4My05N2JiLTRhZDgtODUxNi05NmQ1Y2I5YzcxNmU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ODY1ODExOS1mZjNhLTRkY2MtYjJjNy05YmIxNWIyY2JlMzg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"3d740383-97bb-4ad8-8516-96d5cb9c716e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T15:59:11.647Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"88658119-ff3a-4dcc-b2c7-9bb15b2cbe38\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:00:02 GMT" + "Mon, 21 May 2018 06:06:02 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "51717303-a8cf-4704-9be6-57c8032bbd3c" + "85f360e9-9d94-469d-8725-0def1b08493b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "d95352a6-ba95-4138-997a-63a3504a1b72" + "7379e83f-c623-4a2c-a53c-14e1eef1990e" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160003Z:d95352a6-ba95-4138-997a-63a3504a1b72" + "WESTEUROPE:20180521T060603Z:7379e83f-c623-4a2c-a53c-14e1eef1990e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +334,7 @@ "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-8296.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296\",\r\n \"name\": \"sqlcrudtest-8296\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-5576.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576\",\r\n \"name\": \"sqlcrudtest-5576\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:00:03 GMT" + "Mon, 21 May 2018 06:06:03 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1c381266-b768-4b76-bcfc-23492362c25d" + "30285d80-b746-4c29-adfc-84fd232010b4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "6f1524b7-37a1-4706-bb99-aecbf095b6ca" + "5088a19d-7ff7-4fb9-ad5b-5eb7a5d20c14" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160003Z:6f1524b7-37a1-4706-bb99-aecbf095b6ca" + "WESTEUROPE:20180521T060603Z:5088a19d-7ff7-4fb9-ad5b-5eb7a5d20c14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,7 +394,7 @@ "29" ], "x-ms-client-request-id": [ - "b2a131f5-7fee-439f-bff8-4a5eeb51adba" + "baf84aa9-7303-4f63-a3fa-82ec8b4050fb" ], "accept-language": [ "en-US" @@ -404,10 +404,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-16T16:00:06.487Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:00:06 GMT" + "Mon, 21 May 2018 06:06:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/e6833f5b-8a73-4a64-91bf-c3082612e051?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e6833f5b-8a73-4a64-91bf-c3082612e051?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "60192944-9877-4b90-9e69-68dfb93af7eb" + "4156d6dd-2753-4fd3-825e-7aef9f923222" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "16e38b5f-47f1-4f3e-8c88-e071132e562b" + "3ccd4775-1e7d-401d-b4f7-48a806c672f3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160007Z:16e38b5f-47f1-4f3e-8c88-e071132e562b" + "WESTEUROPE:20180521T060606Z:3ccd4775-1e7d-401d-b4f7-48a806c672f3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,8 +458,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e6833f5b-8a73-4a64-91bf-c3082612e051?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U2ODMzZjViLThhNzMtNGE2NC05MWJmLWMzMDgyNjEyZTA1MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -468,7 +468,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e6833f5b-8a73-4a64-91bf-c3082612e051\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:00:06.487Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:00:25 GMT" + "Mon, 21 May 2018 06:06:21 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "93482e88-7dc7-4b09-b1f7-46e71d641a8a" + "1c24090a-3774-4100-8b42-87fc4f0761d2" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "0bc14051-33e5-4344-b46a-6afc35ebb613" + "642660c8-4d18-4cd9-9fda-d9011f00661d" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160025Z:0bc14051-33e5-4344-b46a-6afc35ebb613" + "WESTEUROPE:20180521T060622Z:642660c8-4d18-4cd9-9fda-d9011f00661d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,8 +519,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/e6833f5b-8a73-4a64-91bf-c3082612e051?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U2ODMzZjViLThhNzMtNGE2NC05MWJmLWMzMDgyNjEyZTA1MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -529,7 +529,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e6833f5b-8a73-4a64-91bf-c3082612e051\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:00:06.487Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:00:40 GMT" + "Mon, 21 May 2018 06:06:37 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5518accb-84c0-4a33-b355-120557763b6f" + "c1b0d400-52bd-4e2e-a8a5-85f0cf66f67e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "f7993fba-2c96-40ba-883c-49e9f55cc87b" + "3d4a2da6-15f3-44c4-bd1f-0fecc7dcf820" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160041Z:f7993fba-2c96-40ba-883c-49e9f55cc87b" + "WESTEUROPE:20180521T060638Z:3d4a2da6-15f3-44c4-bd1f-0fecc7dcf820" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +580,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -590,7 +590,7 @@ "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\": \"14532e6e-0ce9-4e2f-a355-113b50164d06\",\r\n \"creationDate\": \"2018-05-16T16:00:07.487Z\",\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-16T16:30:39.713Z\",\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-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331\",\r\n \"name\": \"sqlvulnerabilityassessmentexportscantest-3331\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:00:41 GMT" + "Mon, 21 May 2018 06:06:52 GMT" ], "Pragma": [ "no-cache" @@ -610,6 +610,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -617,16 +620,135 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b750726d-8631-44f6-9c0e-e0af9b5485c9" + "8e2e4599-902c-4a71-98ad-2bc17b43a527" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "cf7cb07f-0228-47a5-8875-2bcab1274b23" + "cb76a3b2-6035-4661-8267-ede99d42bb77" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T060653Z:cb76a3b2-6035-4661-8267-ede99d42bb77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 21 May 2018 06:07:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9ca65955-b04e-4a00-8521-d4bdf4ab98a1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "ee65765c-0128-41b3-b9d1-cd103057ba6b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180521T060708Z:ee65765c-0128-41b3-b9d1-cd103057ba6b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDM/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\": \"e6f9bb75-24a9-47dc-b839-23dac044af99\",\r\n \"creationDate\": \"2018-05-21T06:06:06.29Z\",\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-21T06:37:04.087Z\",\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-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943\",\r\n \"name\": \"sqlvulnerabilityassessmentexportscantest-7943\",\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 06:07:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ca337dcc-84a1-495d-94e6-75dbb4a12693" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "954614cb-dcd6-41cf-b025-8a8391a76def" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160041Z:cf7cb07f-0228-47a5-8875-2bcab1274b23" + "WESTEUROPE:20180521T060708Z:954614cb-dcd6-41cf-b025-8a8391a76def" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -638,8 +760,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Storage/storageAccounts/sqlvatest839?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4Mzk/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Storage/storageAccounts/sqlvatest7952?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q3OTUyP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "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": { @@ -650,7 +772,7 @@ "152" ], "x-ms-client-request-id": [ - "726aa42d-1822-4038-87f1-c39ddb1d4ec8" + "f9f842a8-3077-4028-9c26-8b3218dba518" ], "accept-language": [ "en-US" @@ -675,13 +797,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:00:51 GMT" + "Mon, 21 May 2018 06:07:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/74fcf578-21cf-4f61-9b10-671a6d183951?monitor=true&api-version=2017-06-01" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/6b58ff5d-c8d2-4278-872c-0d8b7b862c6f?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -690,19 +812,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "74fcf578-21cf-4f61-9b10-671a6d183951" + "6b58ff5d-c8d2-4278-872c-0d8b7b862c6f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1199" ], "x-ms-correlation-request-id": [ - "59004a39-50ac-443c-b61d-66242719c195" + "69743e9e-2603-4c32-ae69-fb7dc07a9ef4" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160051Z:59004a39-50ac-443c-b61d-66242719c195" + "WESTEUROPE:20180521T060718Z:69743e9e-2603-4c32-ae69-fb7dc07a9ef4" ], "X-Content-Type-Options": [ "nosniff" @@ -711,8 +833,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/74fcf578-21cf-4f61-9b10-671a6d183951?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNzRmY2Y1NzgtMjFjZi00ZjYxLTliMTAtNjcxYTZkMTgzOTUxP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/6b58ff5d-c8d2-4278-872c-0d8b7b862c6f?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNmI1OGZmNWQtYzhkMi00Mjc4LTg3MmMtMGQ4YjdiODYyYzZmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -721,7 +843,7 @@ "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-6432/providers/Microsoft.Storage/storageAccounts/sqlvatest839\",\r\n \"name\": \"sqlvatest839\",\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-16T16:00:50.9151473Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-16T16:00:50.9151473Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-16T16:00:50.8526438Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest839.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest839.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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-9496/providers/Microsoft.Storage/storageAccounts/sqlvatest7952\",\r\n \"name\": \"sqlvatest7952\",\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-21T06:07:18.4053827Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T06:07:18.4053827Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T06:07:18.3428824Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest7952.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest7952.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -733,7 +855,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:01:10 GMT" + "Mon, 21 May 2018 06:07:36 GMT" ], "Pragma": [ "no-cache" @@ -748,19 +870,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "51a4f02b-7a57-4864-b630-f80fac3928cc" + "161be2af-721e-442c-96fd-96e234d02963" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14999" ], "x-ms-correlation-request-id": [ - "7134bad2-ce0d-49a3-a5a0-a1dfa3520d25" + "1bb6eb9a-7a4c-4a37-ae23-56c49efa0b3d" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160110Z:7134bad2-ce0d-49a3-a5a0-a1dfa3520d25" + "WESTEUROPE:20180521T060736Z:1bb6eb9a-7a4c-4a37-ae23-56c49efa0b3d" ], "X-Content-Type-Options": [ "nosniff" @@ -769,13 +891,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Storage/storageAccounts/sqlvatest839/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q4MzkvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Storage/storageAccounts/sqlvatest7952/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q3OTUyL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c2ff55b3-5bba-4117-9232-0adf25153251" + "6d079372-c366-4c68-b73d-586c7214740d" ], "accept-language": [ "en-US" @@ -785,7 +907,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"OTsdAM/XF0Wdh0BB+axyuwDpuodAnL+MDQmwZWTY7lvbSLfdIwPVrn19JPQLvZ+8ey6u97sC8bfZVL9tNJRXrA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"ozodOsi2newMNOdzWnDVRW9GXuXSLsJ2BdHH35u13vXnu1Q9eLmLy5i03wks7UZX3fD1zUBWiNDboaq4rv9DwA==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"bygu6Ac6sG+ud5/EAAFqWrGwGudVhc/g4wyTQZ3ZSjbIe+XB2bPIzTU9dFL8uc4ag5gGnQ4evQ2nvIctA/lutA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"MkEdbdVTG+AKOH+jJFtTp7nnho5nd5Hj814LuHlYp6IWzj1rcNkMM7rXpSlXusxb8Y8xg2VJQwmNZRMw1Tzqkg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -797,7 +919,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:01:10 GMT" + "Mon, 21 May 2018 06:07:36 GMT" ], "Pragma": [ "no-cache" @@ -812,19 +934,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a3ad166e-d8db-47a7-babc-7f8010379f9c" + "0a3a33e7-e5a3-4b71-abd1-e90a659f5a56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1198" ], "x-ms-correlation-request-id": [ - "a0b23414-85eb-4ba4-828c-d40e7361d064" + "c71f277a-b2c9-470a-b471-b297a93908b3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160111Z:a0b23414-85eb-4ba4-828c-d40e7361d064" + "WESTEUROPE:20180521T060736Z:c71f277a-b2c9-470a-b471-b297a93908b3" ], "X-Content-Type-Options": [ "nosniff" @@ -833,19 +955,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest839.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=tcyjrlFBzL9Ap%2BcCI5blJTVFxm1o7ZoY43lzFg2xnMg%3D&se=2018-05-16T17%3A01%3A13Z&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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest7952.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=UdoxBuH5O4A2kIqnIp9Tg%2BD6vWiSL52qCNEcpCH4mVs%3D&se=2018-05-21T07%3A07%3A37Z&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": [ - "458" + "459" ], "x-ms-client-request-id": [ - "73fb9cb6-36d7-49ae-8dd3-ae6769cd9e56" + "94e37351-3667-46c1-a974-b9842f3fd475" ], "accept-language": [ "en-US" @@ -855,7 +977,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest839.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-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest7952.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-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -867,7 +989,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:01:20 GMT" + "Mon, 21 May 2018 06:07:42 GMT" ], "Pragma": [ "no-cache" @@ -882,16 +1004,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3c4d3d7c-4789-4ef3-b7e8-6c3a35d502a7" + "93f631ea-aa4d-4323-ada4-3ba489793023" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1197" ], "x-ms-correlation-request-id": [ - "7631c58e-5833-4fd6-a051-7c0200ecc81e" + "54e6d21b-8ede-4e33-b6c5-7b9c78b3459a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160120Z:7631c58e-5833-4fd6-a051-7c0200ecc81e" + "WESTEUROPE:20180521T060743Z:54e6d21b-8ede-4e33-b6c5-7b9c78b3459a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -903,13 +1025,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/default/scans/scan1_636620832809793820/initiateScan?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfNjM2NjIwODMyODA5NzkzODIwL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRleHBvcnRzY2FudGVzdC0vaW5pdGlhdGVTY2FuP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b380333c-fa44-45c5-9fe4-c91872c1aa4d" + "6cf5fbfd-546e-4cb0-b684-a36ee880c45d" ], "accept-language": [ "en-US" @@ -919,7 +1041,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-16T16:01:21.273Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T06:07:43.933Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "97" @@ -934,13 +1056,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:01:21 GMT" + "Mon, 21 May 2018 06:07:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -949,19 +1071,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "496b3064-51cc-4191-8685-e394b0c48e6d" + "089bbf6d-2301-42f6-a8db-33ce9ef294fd" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1196" ], "x-ms-correlation-request-id": [ - "522389b6-6271-4fd0-9d59-c889ed40a869" + "c2bb8430-581f-4a7d-a2ec-e3cfca497e67" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160121Z:522389b6-6271-4fd0-9d59-c889ed40a869" + "WESTEUROPE:20180521T060744Z:c2bb8430-581f-4a7d-a2ec-e3cfca497e67" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -973,69 +1095,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9kNGM2ZmZhZS05MDE3LTRhNGItOTE5MC02ZDdlYzUyNzExZWU/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\": \"d4c6ffae-9017-4a4b-9190-6d7ec52711ee\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-16T16:01:21.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 16 May 2018 16:01:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "4b62d654-1597-446c-8ce2-6fd0c599a7e8" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-correlation-request-id": [ - "7739e8db-99e8-4244-92ec-00e9c86f14ea" - ], - "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160137Z:7739e8db-99e8-4244-92ec-00e9c86f14ea" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9kNGM2ZmZhZS05MDE3LTRhNGItOTE5MC02ZDdlYzUyNzExZWU/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi84OWRkNzRmOS1jNzFiLTQ2ZDktYmRjMi00OTI2YjM5NGZkNzg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1044,7 +1105,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d4c6ffae-9017-4a4b-9190-6d7ec52711ee\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-16T16:01:21.273Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"89dd74f9-c71b-46d9-bdc2-4926b394fd78\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T06:07:43.933Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1056,7 +1117,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:01:52 GMT" + "Mon, 21 May 2018 06:07:59 GMT" ], "Pragma": [ "no-cache" @@ -1074,16 +1135,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "450ccab5-ac6b-4651-815a-95e3ebd46a3c" + "ec0db7d2-5eb6-46f4-8292-3b69627ab0e3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "b81f7a40-97fc-4d5d-be48-27637cfea106" + "0eee6e9b-d7f5-4297-8762-c140fa6b9fa3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160152Z:b81f7a40-97fc-4d5d-be48-27637cfea106" + "WESTEUROPE:20180521T060800Z:0eee6e9b-d7f5-4297-8762-c140fa6b9fa3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,8 +1156,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/d4c6ffae-9017-4a4b-9190-6d7ec52711ee?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9kNGM2ZmZhZS05MDE3LTRhNGItOTE5MC02ZDdlYzUyNzExZWU/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy84OWRkNzRmOS1jNzFiLTQ2ZDktYmRjMi00OTI2YjM5NGZkNzg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1105,10 +1166,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scan1_636620832809793820\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-16T16:01:21.273Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest839.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases//vulnerabilityAssessments/Default/scans/scan1_636620832809793820\",\r\n \"name\": \"scan1_636620832809793820\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-21T06:07:43.933Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest7952.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/Default/scans/scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"name\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "622" + "737" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1120,7 +1181,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:01:53 GMT" + "Mon, 21 May 2018 06:07:59 GMT" ], "Pragma": [ "no-cache" @@ -1129,16 +1190,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "805ef6d6-c5e8-40a9-8129-fee09ffa43ca" + "f887653f-919a-46d4-a31e-482994bd705b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14989" ], "x-ms-correlation-request-id": [ - "1c14751a-c23c-4317-8a3b-eb6217b95823" + "b2a28d8f-b5cb-44f3-9caf-eaba9f70d4e7" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160153Z:1c14751a-c23c-4317-8a3b-eb6217b95823" + "WESTEUROPE:20180521T060800Z:b2a28d8f-b5cb-44f3-9caf-eaba9f70d4e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1150,13 +1211,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/default/scans/scan1_636620832809793820/export?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Mjk2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTMzMzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfNjM2NjIwODMyODA5NzkzODIwL2V4cG9ydD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/export?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRleHBvcnRzY2FudGVzdC0vZXhwb3J0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "172b0cea-2a4f-4fd5-a690-a4f5d85ccc36" + "298d4357-bfa1-4762-ad55-414f50ccde65" ], "accept-language": [ "en-US" @@ -1166,10 +1227,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"exportedReportLocation\": \"https://sqlvatest839.blob.core.windows.net/vulnerability-assessment/scans/sqlcrudtest-8296/sqlvulnerabilityassessmentexportscantest-3331/scan_scan1_636620832809793820.xlsx\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-6432/providers/Microsoft.Sql/servers/sqlcrudtest-8296/databases/sqlvulnerabilityassessmentexportscantest-3331/vulnerabilityAssessments/Default/scans/scan1_636620832809793820/export\",\r\n \"name\": \"scan1_636620832809793820\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"exportedReportLocation\": \"https://sqlvatest7952.blob.core.windows.net/vulnerability-assessment/scans/sqlcrudtest-5576/sqlvulnerabilityassessmentexportscantest-7943/scan_scan1_sqlvulnerabilityassessmentexportscantest-.xlsx\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/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": [ - "595" + "665" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1181,7 +1242,7 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:01:56 GMT" + "Mon, 21 May 2018 06:08:02 GMT" ], "Pragma": [ "no-cache" @@ -1190,16 +1251,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8c1d4056-7f41-45d1-b2fd-f1b40f8a68b3" + "0cbdd5c7-0b09-4d7a-acdb-ef1ed3447c94" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1195" ], "x-ms-correlation-request-id": [ - "b7acdabc-01d5-4cc7-9996-7ef57b03aefb" + "62c3880d-cd4e-417f-9eb7-2152a4655b01" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160156Z:b7acdabc-01d5-4cc7-9996-7ef57b03aefb" + "WESTEUROPE:20180521T060802Z:62c3880d-cd4e-417f-9eb7-2152a4655b01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1211,13 +1272,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-6432?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0MzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9496?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk0OTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9b8b2474-d352-43f0-9629-03f1730043a8" + "a6221d1c-4cd9-4208-8705-bcb854501924" ], "accept-language": [ "en-US" @@ -1239,13 +1300,13 @@ "no-cache" ], "Date": [ - "Wed, 16 May 2018 16:02:01 GMT" + "Mon, 21 May 2018 06:08:06 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY0MzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDk0OTYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1254,13 +1315,13 @@ "14999" ], "x-ms-request-id": [ - "8dc5db1c-4856-45ab-af7f-011ee7f25a15" + "53bdf835-2c77-445c-b1c6-5da986f82cf7" ], "x-ms-correlation-request-id": [ - "8dc5db1c-4856-45ab-af7f-011ee7f25a15" + "53bdf835-2c77-445c-b1c6-5da986f82cf7" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180516T160201Z:8dc5db1c-4856-45ab-af7f-011ee7f25a15" + "WESTEUROPE:20180521T060806Z:53bdf835-2c77-445c-b1c6-5da986f82cf7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1274,16 +1335,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-6432" + "sqlcrudtest-9496" ], "CreateServer": [ - "sqlcrudtest-8296" + "sqlcrudtest-5576" ], "TestExportDatabaseVulnerabilityAssessmentScans": [ - "sqlvulnerabilityassessmentexportscantest-3331" + "sqlvulnerabilityassessmentexportscantest-7943" ], "CreateStorageContainer": [ - "sqlvatest839" + "sqlvatest7952" ] }, "Variables": { diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index d70dd33ab55ef..dab47de7dad8b 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,12 +1,10 @@ Type dsc to start/install the DS Consolidated Console -2018-05-12 18:15:45 UTC 1) azure-rest-api-specs repository information GitHub user: yaakoviyun Branch: master -Commit: 2344dd5a986df8d4dc87a9cd74df62d35e0f6f08 2) AutoRest information Requested version: latest From 8f80b199dd2a99dcbe474e4d63cbd8ca16e8673e Mon Sep 17 00:00:00 2001 From: yaakoviyun Date: Mon, 21 May 2018 11:10:59 +0300 Subject: [PATCH 17/26] Turn ON database threat detection Turn ON database threat detection as a preprequite to use VA --- ...aseVulnerabilityAssessmentScenarioTests.cs | 32 + ...teGetDatabaseVulnerabilityAssessments.json | 532 ++++++++-------- ...abaseVulnerabilityAssessmentBaselines.json | 482 ++++++++------- ...tDatabaseVulnerabilityAssessmentScans.json | 566 ++++++++---------- ...tDatabaseVulnerabilityAssessmentScans.json | 423 ++++++------- 5 files changed, 1021 insertions(+), 1014 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs index 2de66b89fa463..9b810efda048b 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs @@ -40,6 +40,14 @@ public async void TestCreateUpdateGetDatabaseVulnerabilityAssessments() }); 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); @@ -87,6 +95,14 @@ public async void TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaseli }); 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); @@ -143,6 +159,14 @@ public async void TestExcetueGetListDatabaseVulnerabilityAssessmentScans() }); 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); @@ -195,6 +219,14 @@ public async void TestExportDatabaseVulnerabilityAssessmentScans() }); 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); 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 index eb1ccabfe8a02..05bb0fc33536d 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9200?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkyMDA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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-9200\": \"2018-05-21 05:22:55Z\"\r\n }\r\n}", + "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" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "3d141dee-9e07-40a9-858c-99f8aa5d45ee" + "bf1db98d-1bfb-4c65-9c23-8043cddd22d9" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200\",\r\n \"name\": \"sqlcrudtest-9200\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-9200\": \"2018-05-21 05:22:55Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "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" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:22:59 GMT" + "Mon, 21 May 2018 07:56:02 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "9d52f02e-f3cd-4d40-9769-2a0d7be52dd5" + "884bc67b-3839-4521-9a23-399ec210ac2a" ], "x-ms-correlation-request-id": [ - "9d52f02e-f3cd-4d40-9769-2a0d7be52dd5" + "884bc67b-3839-4521-9a23-399ec210ac2a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052259Z:9d52f02e-f3cd-4d40-9769-2a0d7be52dd5" + "WESTEUROPE:20180521T075602Z:884bc67b-3839-4521-9a23-399ec210ac2a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "9afde51c-5e43-40f6-af1a-48d6da9322e8" + "5cb12f90-eaf5-4779-8e5c-2350777bb378" ], "accept-language": [ "en-US" @@ -87,10 +87,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:56:10.943Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "73" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:23:11 GMT" + "Mon, 21 May 2018 07:56:11 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverOperationResults/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview" + "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" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview" + "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": [ - "ce9214b0-959d-4b1e-a9f0-053703a5068e" + "64cbf3cf-bbf0-43c5-aad4-488e842b6c98" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "074256ef-d103-4b37-bcaf-c51a645cb3d2" + "8090b70c-e28e-40b3-b412-52ec98363e61" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052311Z:074256ef-d103-4b37-bcaf-c51a645cb3d2" + "WESTEUROPE:20180521T075611Z:8090b70c-e28e-40b3-b412-52ec98363e61" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "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" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:23:22 GMT" + "Mon, 21 May 2018 07:56:21 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "de99694a-f6e2-4982-9450-e846a6ee42b8" + "4513be18-5569-4784-888a-65a028dcf304" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "774bddb4-881c-4501-b977-88958ef95231" + "443124c3-5a41-493f-ac3e-027b3538be86" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052322Z:774bddb4-881c-4501-b977-88958ef95231" + "WESTEUROPE:20180521T075621Z:443124c3-5a41-493f-ac3e-027b3538be86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "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" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:23:42 GMT" + "Mon, 21 May 2018 07:56:41 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "73de681a-84eb-40c4-8372-a2d5f6def15e" + "bed18417-f160-42a1-8263-4117dacf4c6a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "40ed4556-f814-4d7f-b01e-7cfec8995694" + "6e596915-fb4d-42aa-b55c-795c501415e6" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052342Z:40ed4556-f814-4d7f-b01e-7cfec8995694" + "WESTEUROPE:20180521T075641Z:6e596915-fb4d-42aa-b55c-795c501415e6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "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" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:24:02 GMT" + "Mon, 21 May 2018 07:57:01 GMT" ], "Pragma": [ "no-cache" @@ -294,7 +294,7 @@ "chunked" ], "Retry-After": [ - "20" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a2de3d91-7877-4a02-8083-643868fa6ffc" + "d8f384c4-c9c4-477e-bc61-63ab048536ff" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "8497a10d-a6b1-4252-bb1c-a09e57adc130" + "0a779f9c-30f2-4c2e-b4d7-f001d476e821" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052403Z:8497a10d-a6b1-4252-bb1c-a09e57adc130" + "WESTEUROPE:20180521T075702Z:0a779f9c-30f2-4c2e-b4d7-f001d476e821" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -334,7 +334,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "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" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:24:23 GMT" + "Mon, 21 May 2018 07:57:02 GMT" ], "Pragma": [ "no-cache" @@ -354,9 +354,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -364,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c1926152-34b5-4f86-b8bd-44248646beec" + "147ac703-c368-4cf9-a4ad-d86bc487d022" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "64961a66-042d-4b25-bab7-6c5a146e40bd" + "997cc440-023d-41e5-aa85-4feb312a3e90" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052423Z:64961a66-042d-4b25-bab7-6c5a146e40bd" + "WESTEUROPE:20180521T075702Z:997cc440-023d-41e5-aa85-4feb312a3e90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -385,18 +382,33 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/ce9214b0-959d-4b1e-a9f0-053703a5068e?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZTkyMTRiMC05NTlkLTRiMWUtYTlmMC0wNTM3MDNhNTA2OGU/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", + "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 \"name\": \"ce9214b0-959d-4b1e-a9f0-053703a5068e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:23:11.71Z\"\r\n}", + "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" ], @@ -407,13 +419,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:24:38 GMT" + "Mon, 21 May 2018 07:57:04 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "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" @@ -421,20 +433,20 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" + "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": [ - "da4556ae-06d4-4661-9c96-bef97b329228" + "30c58e45-fe93-4ec3-b9b1-e64b0299ead9" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" ], "x-ms-correlation-request-id": [ - "88197591-5805-4fe7-9a90-ef122c1c96c7" + "9834549a-94ef-4e45-8975-0554bca55f17" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052439Z:88197591-5805-4fe7-9a90-ef122c1c96c7" + "WESTEUROPE:20180521T075705Z:9834549a-94ef-4e45-8975-0554bca55f17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -443,11 +455,11 @@ "nosniff" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": { @@ -456,7 +468,7 @@ "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-5134.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134\",\r\n \"name\": \"sqlcrudtest-5134\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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" @@ -468,7 +480,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:24:39 GMT" + "Mon, 21 May 2018 07:57:19 GMT" ], "Pragma": [ "no-cache" @@ -476,6 +488,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -483,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a9a8d741-b2a0-4815-b322-b562cb4ae153" + "9c896bc5-1f7b-42d9-a524-d1f5a74431a1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14995" ], "x-ms-correlation-request-id": [ - "081c1a78-1ace-454d-b095-a32496126235" + "675e8600-cc84-46f2-ab38-9fa3ec68242a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052439Z:081c1a78-1ace-454d-b095-a32496126235" + "WESTEUROPE:20180521T075720Z:675e8600-cc84-46f2-ab38-9fa3ec68242a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -504,33 +519,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5Nzc/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "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": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "aca57da1-a6a3-44ce-bd31-c360977c0b27" - ], - "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-21T05:24:42.143Z\"\r\n}", + "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-Length": [ - "76" - ], "Content-Type": [ "application/json; charset=utf-8" ], @@ -541,13 +541,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:24:42 GMT" + "Mon, 21 May 2018 07:57:35 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview" + "Transfer-Encoding": [ + "chunked" ], "Retry-After": [ "15" @@ -555,20 +555,20 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview" + "Vary": [ + "Accept-Encoding" ], "x-ms-request-id": [ - "9ed98521-54d5-4fd1-b9ba-c44dc6501ae9" + "ae91d48f-be94-456a-a202-2d90852fdfa4" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" ], "x-ms-correlation-request-id": [ - "27438556-25fd-488a-9d87-f86ba8da0e56" + "5b3dc55e-012a-44fb-9c6c-9132d268d42b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052442Z:27438556-25fd-488a-9d87-f86ba8da0e56" + "WESTEUROPE:20180521T075736Z:5b3dc55e-012a-44fb-9c6c-9132d268d42b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -577,11 +577,11 @@ "nosniff" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -590,7 +590,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", + "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" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:24:57 GMT" + "Mon, 21 May 2018 07:57:50 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "67120340-6cb9-4b67-bc38-1e5e27839dd2" + "0740b14f-f8ab-4315-872d-cf9350ee7c12" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "7548676e-14e4-4ab2-8720-66c37217bb33" + "38c7113d-3a88-4e3c-a213-0656436e98e4" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052457Z:7548676e-14e4-4ab2-8720-66c37217bb33" + "WESTEUROPE:20180521T075751Z:38c7113d-3a88-4e3c-a213-0656436e98e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +641,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -651,7 +651,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", + "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" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:25:12 GMT" + "Mon, 21 May 2018 07:58:06 GMT" ], "Pragma": [ "no-cache" @@ -681,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8b9e8d80-12f7-474d-8e78-77d5ab12292e" + "444bd96f-4dff-4131-9f3c-51dbb97f466c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "007fa133-79ac-44d1-9b49-9a953ddf3e04" + "2017be50-2bad-44e6-a788-8c7fcbf2b5f8" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052512Z:007fa133-79ac-44d1-9b49-9a953ddf3e04" + "WESTEUROPE:20180521T075806Z:2017be50-2bad-44e6-a788-8c7fcbf2b5f8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,8 +702,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -712,7 +712,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", + "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" @@ -724,7 +724,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:25:28 GMT" + "Mon, 21 May 2018 07:58:06 GMT" ], "Pragma": [ "no-cache" @@ -732,9 +732,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -742,16 +739,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ef5cc78b-119b-4c34-908d-6a15e9158aa2" + "7af5d905-da2b-4dc6-8179-bfb2b7bf1d74" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "9c45d75f-48b9-4b7b-97a1-ed6bc0c7c49d" + "befd3b0d-7fff-46aa-a1ac-0afc24281a14" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052528Z:9c45d75f-48b9-4b7b-97a1-ed6bc0c7c49d" + "WESTEUROPE:20180521T075807Z:befd3b0d-7fff-46aa-a1ac-0afc24281a14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -763,93 +760,38 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/8b21f408-0a21-48e2-b63d-9bc44039c2ca?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzhiMjFmNDA4LTBhMjEtNDhlMi1iNjNkLTliYzQ0MDM5YzJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "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": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"8b21f408-0a21-48e2-b63d-9bc44039c2ca\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:24:42.143Z\"\r\n}", - "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Mon, 21 May 2018 05:25:43 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "52fa6949-f96c-4dcb-a719-c189a6fa4432" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "7f2b96e2-82ce-4d54-9398-e856ffa89cb8" + "Content-Length": [ + "90" ], - "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052543Z:7f2b96e2-82ce-4d54-9398-e856ffa89cb8" + "x-ms-client-request-id": [ + "3f88b2c7-48de-40e4-8814-c51582422226" ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "accept-language": [ + "en-US" ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5Nzc/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\": \"d50c2e64-d2f7-4204-9da4-6d30f2e1d22b\",\r\n \"creationDate\": \"2018-05-21T05:24:42.5Z\",\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-21T05:55:36.913Z\",\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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977\",\r\n \"name\": \"sqlvulnerabilityassessmentcrudtest-4977\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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; charset=utf-8" - ], - "Expires": [ - "-1" + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" ], "Cache-Control": [ - "no-cache" + "no-store, no-cache" ], "Date": [ - "Mon, 21 May 2018 05:25:43 GMT" - ], - "Pragma": [ - "no-cache" + "Mon, 21 May 2018 07:58:09 GMT" ], "Transfer-Encoding": [ "chunked" @@ -861,34 +803,40 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0afd2f9f-b5fc-4b74-864f-5a3025a52a45" + "066e11b0-0e9e-4afe-ae17-1dfeecb9be03" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "6a9855a0-2189-4ce4-b7f6-a9eba5931ed2" + "Preference-Applied": [ + "return-content" ], - "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052543Z:6a9855a0-2189-4ce4-b7f6-a9eba5931ed2" + "DataServiceVersion": [ + "3.0;" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ - "nosniff" + "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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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": [ - "f39e68a9-f21a-4c57-a96a-fc54099bbcd1" + "dfa2d6e6-3bb5-420b-981f-70d99f302494" ], "accept-language": [ "en-US" @@ -898,7 +846,7 @@ "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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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" @@ -910,7 +858,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:25:44 GMT" + "Mon, 21 May 2018 07:58:12 GMT" ], "Pragma": [ "no-cache" @@ -925,16 +873,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "84fb43f6-f108-469f-971f-93fce2072372" + "68b9a357-a3b7-4d58-97b5-7fa905b2bcee" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14990" ], "x-ms-correlation-request-id": [ - "1b8a8a24-d32e-4ba9-80ca-274ca5ead9b4" + "4bf69e53-5567-4781-b65f-cea98104e6d1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052544Z:1b8a8a24-d32e-4ba9-80ca-274ca5ead9b4" + "WESTEUROPE:20180521T075813Z:4bf69e53-5567-4781-b65f-cea98104e6d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -946,13 +894,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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": [ - "28392532-367c-4a37-863a-36a033c9df26" + "9ced4518-d721-4be4-93f8-96cd95409bf0" ], "accept-language": [ "en-US" @@ -962,7 +910,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest9261.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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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" @@ -974,7 +922,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:26:21 GMT" + "Mon, 21 May 2018 07:58:40 GMT" ], "Pragma": [ "no-cache" @@ -989,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d301037c-2e60-4ff2-b114-7ec55fdbb453" + "818a39ba-16d2-4364-96c0-e8bb56114d60" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14989" ], "x-ms-correlation-request-id": [ - "e98b5f1a-965e-4a13-a411-af7ab2ef68ea" + "1d218fc2-430a-4f6d-9605-0899becb240d" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052621Z:e98b5f1a-965e-4a13-a411-af7ab2ef68ea" + "WESTEUROPE:20180521T075840Z:1d218fc2-430a-4f6d-9605-0899becb240d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1010,13 +958,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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": [ - "b312c740-77b7-4941-a5e5-1a1d34a89e3a" + "082736bf-4d79-48fa-a769-a25c20476694" ], "accept-language": [ "en-US" @@ -1026,7 +974,7 @@ "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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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" @@ -1038,7 +986,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:26:22 GMT" + "Mon, 21 May 2018 07:58:40 GMT" ], "Pragma": [ "no-cache" @@ -1053,16 +1001,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "428ea831-9f8a-4c4f-9cab-bb4921f5e952" + "03dbc43d-2fb4-4343-9424-2a6800a79cfe" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14988" ], "x-ms-correlation-request-id": [ - "a0dd1971-cceb-41a6-b923-c739edd73de7" + "830338b2-de21-415b-bb81-1ecafa436050" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052622Z:a0dd1971-cceb-41a6-b923-c739edd73de7" + "WESTEUROPE:20180521T075841Z:830338b2-de21-415b-bb81-1ecafa436050" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1074,8 +1022,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Storage/storageAccounts/sqlvatest9261?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q5MjYxP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": { @@ -1086,7 +1034,7 @@ "152" ], "x-ms-client-request-id": [ - "29bf272d-48f2-4404-a191-dd4647eee299" + "7c2cd68c-165e-4593-83a3-5aeccc7b1c58" ], "accept-language": [ "en-US" @@ -1111,13 +1059,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:25:54 GMT" + "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/60a28f9d-0d29-4d90-8c0e-dc3b267dfa2d?monitor=true&api-version=2017-06-01" + "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" @@ -1126,7 +1074,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "60a28f9d-0d29-4d90-8c0e-dc3b267dfa2d" + "3b7b0a9d-1bd5-4824-b16a-941616b0c9ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1135,10 +1083,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "9abd1ad3-51f2-4790-811b-ff553285d5c1" + "e5ed9b27-931b-4695-883d-13bf5cbe35d0" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052555Z:9abd1ad3-51f2-4790-811b-ff553285d5c1" + "WESTEUROPE:20180521T075821Z:e5ed9b27-931b-4695-883d-13bf5cbe35d0" ], "X-Content-Type-Options": [ "nosniff" @@ -1147,8 +1095,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/60a28f9d-0d29-4d90-8c0e-dc3b267dfa2d?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNjBhMjhmOWQtMGQyOS00ZDkwLThjMGUtZGMzYjI2N2RmYTJkP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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": { @@ -1157,7 +1105,7 @@ "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-9200/providers/Microsoft.Storage/storageAccounts/sqlvatest9261\",\r\n \"name\": \"sqlvatest9261\",\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-21T05:25:54.58489Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T05:25:54.58489Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T05:25:54.5067844Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest9261.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest9261.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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" @@ -1169,7 +1117,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:26:11 GMT" + "Mon, 21 May 2018 07:58:38 GMT" ], "Pragma": [ "no-cache" @@ -1184,19 +1132,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3f73cf03-b903-485c-a1ac-ae6b39139bdf" + "79c7ec12-0212-416b-990f-076b18a34817" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14961" ], "x-ms-correlation-request-id": [ - "cd613509-e320-4ec5-97ec-4770095717db" + "7219fd2a-76b9-4fc1-b89f-09b921097864" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052612Z:cd613509-e320-4ec5-97ec-4770095717db" + "WESTEUROPE:20180521T075838Z:7219fd2a-76b9-4fc1-b89f-09b921097864" ], "X-Content-Type-Options": [ "nosniff" @@ -1205,13 +1153,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Storage/storageAccounts/sqlvatest9261/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q5MjYxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": [ - "94e85736-c90b-4041-b437-6f772d3628bb" + "d490cb43-04f6-4b4b-877c-4e47e08fcc39" ], "accept-language": [ "en-US" @@ -1221,7 +1169,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"sA+E0GvUHURkMELV5dweN/F/qqbqNlOk+mekmayhdRg3zFSI+aWapM6JadnKPLNt6oy+yEvDfVEnfVPGXE1UNA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"k6Cfdvh870j7VgePDRBEwbBjPkGwlvM6808QgH6oGcVmrRgxpQli7+0hNM+IiNNt5She0Z4jPTH2GBeMuAFDDg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "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" @@ -1233,7 +1181,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:26:12 GMT" + "Mon, 21 May 2018 07:58:38 GMT" ], "Pragma": [ "no-cache" @@ -1248,7 +1196,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ceefc019-ddfc-4b4c-a7b9-6f14033210c5" + "90d036e9-751f-4928-8a2c-33212789ea9f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1257,10 +1205,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "0e3d216f-4158-4a6c-865a-7877486b95ef" + "e15850d7-ef50-43e5-b97c-1a8a0b619632" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052613Z:0e3d216f-4158-4a6c-865a-7877486b95ef" + "WESTEUROPE:20180521T075839Z:e15850d7-ef50-43e5-b97c-1a8a0b619632" ], "X-Content-Type-Options": [ "nosniff" @@ -1269,19 +1217,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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://sqlvatest9261.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=cQqbcSjHeqim1k7AsEyYUpHgy2Qk69wUQLbllEhSsaM%3D&se=2018-05-21T06%3A26%3A14Z&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}", + "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": [ - "457" + "459" ], "x-ms-client-request-id": [ - "d00d9f7c-93e9-4238-8b52-436238682901" + "1e5f48e2-66f5-485e-9f8b-0d2ad3cc3ccd" ], "accept-language": [ "en-US" @@ -1291,7 +1239,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest9261.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-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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" @@ -1303,7 +1251,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:26:20 GMT" + "Mon, 21 May 2018 07:58:39 GMT" ], "Pragma": [ "no-cache" @@ -1318,16 +1266,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8caa6292-1bcd-424e-a3be-936676a24475" + "624b73ab-ecb9-48f0-8727-80673de6f8c1" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1196" ], "x-ms-correlation-request-id": [ - "cc8dc6eb-4342-4207-9e60-634a92039b62" + "73d98c7d-56b8-45e8-83f2-745e565f3013" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052621Z:cc8dc6eb-4342-4207-9e60-634a92039b62" + "WESTEUROPE:20180521T075840Z:73d98c7d-56b8-45e8-83f2-745e565f3013" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1339,13 +1287,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9200/providers/Microsoft.Sql/servers/sqlcrudtest-5134/databases/sqlvulnerabilityassessmentcrudtest-4977/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkyMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MTM0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTQ5NzcvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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": [ - "7136be66-2247-4047-baab-0c8cbfa5a988" + "77091248-0413-450f-8483-00362c860e2c" ], "accept-language": [ "en-US" @@ -1367,7 +1315,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:26:21 GMT" + "Mon, 21 May 2018 07:58:40 GMT" ], "Pragma": [ "no-cache" @@ -1376,16 +1324,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ee4978d8-ab69-462f-80a5-397aa3ec6303" + "63b3b25d-b6be-4d6e-9b53-138165d992f7" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "59e95680-9457-4f3c-bfce-ff8ceaadc756" + "9a48cd4e-2c30-4900-a077-165679476f6a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052622Z:59e95680-9457-4f3c-bfce-ff8ceaadc756" + "WESTEUROPE:20180521T075841Z:9a48cd4e-2c30-4900-a077-165679476f6a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1397,13 +1345,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9200?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkyMDA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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": [ - "7b6b71c3-fb05-4364-85b6-15bc75addac4" + "99f3f2b8-1e2d-4d6b-b047-05e65e7f4493" ], "accept-language": [ "en-US" @@ -1425,13 +1373,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:26:26 GMT" + "Mon, 21 May 2018 07:58:45 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDkyMDAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDUyMzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1440,13 +1388,13 @@ "14999" ], "x-ms-request-id": [ - "ccd68135-dff2-4b44-8446-2767d06c323d" + "ad0609a2-d44d-442c-8413-ed590d178a58" ], "x-ms-correlation-request-id": [ - "ccd68135-dff2-4b44-8446-2767d06c323d" + "ad0609a2-d44d-442c-8413-ed590d178a58" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052626Z:ccd68135-dff2-4b44-8446-2767d06c323d" + "WESTEUROPE:20180521T075845Z:ad0609a2-d44d-442c-8413-ed590d178a58" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1460,20 +1408,20 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-9200" + "sqlcrudtest-5232" ], "CreateServer": [ - "sqlcrudtest-5134" + "sqlcrudtest-1430" ], "TestCreateUpdateGetDatabaseVulnerabilityAssessments": [ - "sqlvulnerabilityassessmentcrudtest-4977" + "sqlvulnerabilityassessmentcrudtest-809" ], "CreateStorageContainer": [ - "sqlvatest9261" + "sqlvatest4561" ] }, "Variables": { - "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c", - "DefaultLocation": "west us 2" + "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 index 43d8331503a28..57f5660c49f48 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-3117?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMxMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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-3117\": \"2018-05-21 05:28:09Z\"\r\n }\r\n}", + "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" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "f4173ae5-be55-46f4-8c53-794793434591" + "8f4d3ed0-e01f-4528-9cf1-a6852b166293" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117\",\r\n \"name\": \"sqlcrudtest-3117\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3117\": \"2018-05-21 05:28:09Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "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" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:28:12 GMT" + "Mon, 21 May 2018 07:52:53 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "2e4ca016-a672-47d6-8955-4e2ef4758d62" + "2f0900fd-c725-4fc2-8970-542a259d6542" ], "x-ms-correlation-request-id": [ - "2e4ca016-a672-47d6-8955-4e2ef4758d62" + "2f0900fd-c725-4fc2-8970-542a259d6542" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052813Z:2e4ca016-a672-47d6-8955-4e2ef4758d62" + "WESTEUROPE:20180521T075254Z:2f0900fd-c725-4fc2-8970-542a259d6542" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "53aeee4c-71d1-4cce-94a5-be7105a741ee" + "e3ed44d1-73c6-4883-b9af-2586bac45fc4" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:53:04.323Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:28:23 GMT" + "Mon, 21 May 2018 07:53:04 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverOperationResults/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview" + "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" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview" + "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": [ - "efcd03d3-404e-44c1-87fb-480cb24b7163" + "778181f1-ce40-470b-a293-8c1dd751ec27" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "c0768ff5-7b92-4f45-9d76-531eea7104ad" + "3c6bfd2b-1ec8-4056-b1fd-809b264ceaae" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052824Z:c0768ff5-7b92-4f45-9d76-531eea7104ad" + "WESTEUROPE:20180521T075304Z:3c6bfd2b-1ec8-4056-b1fd-809b264ceaae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", + "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" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:28:34 GMT" + "Mon, 21 May 2018 07:53:15 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b79b6550-beea-4d8e-936f-6eefa4aeb29f" + "9a4e950f-c652-49f4-9143-fd0e33dfb586" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "e2e240b2-8df8-481b-bf18-d6d32087589c" + "b057340a-44f9-4870-84be-c1555d5461e1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052834Z:e2e240b2-8df8-481b-bf18-d6d32087589c" + "WESTEUROPE:20180521T075315Z:b057340a-44f9-4870-84be-c1555d5461e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", + "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" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:28:54 GMT" + "Mon, 21 May 2018 07:53:35 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "dae017d2-f582-42dc-968f-06ff1a26d73e" + "3dce23ea-ee0b-4739-927a-1b88e7659efd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "d92f9781-44c8-4211-b56c-0cdd2398238f" + "fbb0effc-d210-4dff-9a41-3c0232e1ca11" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052855Z:d92f9781-44c8-4211-b56c-0cdd2398238f" + "WESTEUROPE:20180521T075335Z:fbb0effc-d210-4dff-9a41-3c0232e1ca11" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", + "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" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:29:15 GMT" + "Mon, 21 May 2018 07:53:55 GMT" ], "Pragma": [ "no-cache" @@ -294,7 +294,7 @@ "chunked" ], "Retry-After": [ - "20" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b8f13ffa-3976-4b55-8c36-e2ce74caa721" + "b6058cdf-161b-4bfe-965f-804d23713670" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "e435f70e-827e-4f37-b9cd-58a34bb7dba3" + "9159e29e-f84f-424b-a79d-09338bbc6e25" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052915Z:e435f70e-827e-4f37-b9cd-58a34bb7dba3" + "WESTEUROPE:20180521T075355Z:9159e29e-f84f-424b-a79d-09338bbc6e25" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/efcd03d3-404e-44c1-87fb-480cb24b7163?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmNkMDNkMy00MDRlLTQ0YzEtODdmYi00ODBjYjI0YjcxNjM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -334,7 +334,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"efcd03d3-404e-44c1-87fb-480cb24b7163\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:28:24.153Z\"\r\n}", + "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" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:29:35 GMT" + "Mon, 21 May 2018 07:53:55 GMT" ], "Pragma": [ "no-cache" @@ -354,9 +354,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -364,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "768f5cc7-a0cc-4f0d-9a26-d987215f7e82" + "70df0f4c-e0b5-4191-aced-a1e6b63d497e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "2afee950-8c86-48d8-80b6-d5ed220645b3" + "639fada2-87e7-404a-b4c3-f10b560b77bf" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052935Z:2afee950-8c86-48d8-80b6-d5ed220645b3" + "WESTEUROPE:20180521T075356Z:639fada2-87e7-404a-b4c3-f10b560b77bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -385,18 +382,33 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "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 \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-2674.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674\",\r\n \"name\": \"sqlcrudtest-2674\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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" ], @@ -407,31 +419,34 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:29:35 GMT" + "Mon, 21 May 2018 07:53:57 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "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" ], - "Vary": [ - "Accept-Encoding" + "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": [ - "69240c5a-964d-49e7-a741-6cc8c6a2141d" + "cafd7674-6e30-41f3-b2dc-7b13f278ff20" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" ], "x-ms-correlation-request-id": [ - "8a1f6736-36e8-4166-bb27-0444f457fa37" + "cdfb0de6-8085-4666-8997-3d771aec399a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052936Z:8a1f6736-36e8-4166-bb27-0444f457fa37" + "WESTEUROPE:20180521T075358Z:cdfb0de6-8085-4666-8997-3d771aec399a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -440,36 +455,21 @@ "nosniff" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "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": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "2c6b0f8a-c1da-4b09-ac29-3dd8fef96b28" - ], - "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-21T05:29:38.89Z\"\r\n}", + "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-Length": [ - "75" - ], "Content-Type": [ "application/json; charset=utf-8" ], @@ -480,13 +480,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:29:38 GMT" + "Mon, 21 May 2018 07:54:13 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview" + "Transfer-Encoding": [ + "chunked" ], "Retry-After": [ "15" @@ -494,20 +494,20 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview" + "Vary": [ + "Accept-Encoding" ], "x-ms-request-id": [ - "1b58988d-daae-4f2f-b84c-c67828721b8c" + "f0233369-d5b8-4739-96f8-e70cb7e19084" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" ], "x-ms-correlation-request-id": [ - "10251c63-c946-4573-a2f0-bffc399636f5" + "6a0538c6-5e94-4df0-a417-fc40efb3ace9" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052939Z:10251c63-c946-4573-a2f0-bffc399636f5" + "WESTEUROPE:20180521T075414Z:6a0538c6-5e94-4df0-a417-fc40efb3ace9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -516,11 +516,11 @@ "nosniff" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3MjEyZDM5LTVkNzctNGE4NC05YmQ4LTZiNjY4ZGRmZGI0Mz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -529,7 +529,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"b7212d39-5d77-4a84-9bd8-6b668ddfdb43\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:29:38.89Z\"\r\n}", + "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" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:29:53 GMT" + "Mon, 21 May 2018 07:54:28 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7d68dd34-5055-43e6-b0b4-70594698fc77" + "c8903653-bff4-454a-ad81-ca138fadb6e2" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "759542e3-717e-4121-bb72-f01a98df21b6" + "21c1656b-ee41-4d77-904d-a989621b75a3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T052954Z:759542e3-717e-4121-bb72-f01a98df21b6" + "WESTEUROPE:20180521T075429Z:21c1656b-ee41-4d77-904d-a989621b75a3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +580,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3MjEyZDM5LTVkNzctNGE4NC05YmQ4LTZiNjY4ZGRmZGI0Mz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -590,7 +590,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"b7212d39-5d77-4a84-9bd8-6b668ddfdb43\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:29:38.89Z\"\r\n}", + "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" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:30:09 GMT" + "Mon, 21 May 2018 07:54:44 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4417abb7-c4ed-4a35-8bd2-0d32222e7f7e" + "59818a0a-56fb-44e9-a7fb-c084f52cf144" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "9d8fbd41-0c78-4931-b830-9301b9b766c6" + "58e39c99-e337-4693-92e5-0ea79773eb61" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053009Z:9d8fbd41-0c78-4931-b830-9301b9b766c6" + "WESTEUROPE:20180521T075444Z:58e39c99-e337-4693-92e5-0ea79773eb61" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +641,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b7212d39-5d77-4a84-9bd8-6b668ddfdb43?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3MjEyZDM5LTVkNzctNGE4NC05YmQ4LTZiNjY4ZGRmZGI0Mz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -651,7 +651,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"b7212d39-5d77-4a84-9bd8-6b668ddfdb43\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:29:38.89Z\"\r\n}", + "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" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:30:24 GMT" + "Mon, 21 May 2018 07:54:59 GMT" ], "Pragma": [ "no-cache" @@ -681,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f6a9d39b-48e5-4f51-958c-90244c13ec63" + "583ff303-d768-4901-8d07-5062c418c5d3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "81a48f04-4a41-4059-9509-b0cf2d63ef7d" + "98e83a9d-4998-4758-aeb4-a3a04d37c878" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053024Z:81a48f04-4a41-4059-9509-b0cf2d63ef7d" + "WESTEUROPE:20180521T075500Z:98e83a9d-4998-4758-aeb4-a3a04d37c878" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,8 +702,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -712,7 +712,7 @@ "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\": \"eb8fddb1-c074-4f1e-ae5f-0747d80413ba\",\r\n \"creationDate\": \"2018-05-21T05:29:39.577Z\",\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-21T06:00:15.167Z\",\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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-431\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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" @@ -724,7 +724,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:30:24 GMT" + "Mon, 21 May 2018 07:55:00 GMT" ], "Pragma": [ "no-cache" @@ -739,16 +739,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d74a84f8-be77-4385-b750-9bad109db840" + "ca2f907b-1ddb-4ea3-b3ea-a62d5c5f26d8" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "21608ae2-667b-4e90-a103-6458a26468da" + "822a9c6e-cb3d-4570-ab8c-61d238063ad1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053025Z:21608ae2-667b-4e90-a103-6458a26468da" + "WESTEUROPE:20180521T075500Z:822a9c6e-cb3d-4570-ab8c-61d238063ad1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -760,8 +760,78 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Storage/storageAccounts/sqlvatest196?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxOTY/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "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": { @@ -772,7 +842,7 @@ "152" ], "x-ms-client-request-id": [ - "fd6126b0-bc45-4a55-8cb1-621fedbf0beb" + "187bd620-58a6-47e2-a796-a2833a0f97fd" ], "accept-language": [ "en-US" @@ -797,13 +867,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:30:34 GMT" + "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/4ea60741-4ce1-4752-a5d6-c498c3ff5f94?monitor=true&api-version=2017-06-01" + "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" @@ -812,19 +882,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4ea60741-4ce1-4752-a5d6-c498c3ff5f94" + "8629721f-5e6c-4aba-a5fb-05d43cde9772" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1199" ], "x-ms-correlation-request-id": [ - "fe7503d9-f981-4ae2-8080-69a0977df1a9" + "afa09fec-ac21-445f-9a9c-e4ded3aee144" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053035Z:fe7503d9-f981-4ae2-8080-69a0977df1a9" + "WESTEUROPE:20180521T075513Z:afa09fec-ac21-445f-9a9c-e4ded3aee144" ], "X-Content-Type-Options": [ "nosniff" @@ -833,8 +903,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/4ea60741-4ce1-4752-a5d6-c498c3ff5f94?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNGVhNjA3NDEtNGNlMS00NzUyLWE1ZDYtYzQ5OGMzZmY1Zjk0P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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": { @@ -843,7 +913,7 @@ "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-3117/providers/Microsoft.Storage/storageAccounts/sqlvatest196\",\r\n \"name\": \"sqlvatest196\",\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-21T05:30:35.0393713Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T05:30:35.0393713Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T05:30:34.9768738Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest196.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest196.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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" @@ -855,7 +925,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:30:52 GMT" + "Mon, 21 May 2018 07:55:30 GMT" ], "Pragma": [ "no-cache" @@ -870,19 +940,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ae04c59b-444a-45ca-864c-9371fb3cdf81" + "0be591af-8570-4d38-af03-bf5af1c0a696" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14994" ], "x-ms-correlation-request-id": [ - "47ed4d59-e746-477c-acf9-043fcacee710" + "4b7309c7-fd57-4b3e-a14c-5587f844edab" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053052Z:47ed4d59-e746-477c-acf9-043fcacee710" + "WESTEUROPE:20180521T075530Z:4b7309c7-fd57-4b3e-a14c-5587f844edab" ], "X-Content-Type-Options": [ "nosniff" @@ -891,13 +961,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Storage/storageAccounts/sqlvatest196/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxOTYvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "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": [ - "1be5e00b-3747-42b9-87fb-9225d2ce58c3" + "641e1c15-6ca2-4879-8d7f-87089a37f65b" ], "accept-language": [ "en-US" @@ -907,7 +977,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"O7Dc6Gt3LfaKjQsM0BTxR55gxbfzFHtTrssl7uWRySQ19xRjGEgwdlv6oNgHYmLMleES7ZvJrQ8lgn5B9mod1w==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"Vv851qkt59TwF0ooFkOdlLEtGwOA69eczvxTe/hI30vwDrFnRfFkGz3ibwQpDFZMrRx+ywKDhgdCvfCofzHWAw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "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" @@ -919,7 +989,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:30:52 GMT" + "Mon, 21 May 2018 07:55:30 GMT" ], "Pragma": [ "no-cache" @@ -934,19 +1004,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c0504dfb-4160-4a3f-b13d-0b584b538a07" + "083bc993-2dd5-4186-ba11-ba658fd24abf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1198" ], "x-ms-correlation-request-id": [ - "fdce7dbe-94ad-4b0d-8740-d9656437768a" + "75fac06a-4704-4d35-a94e-af6967fef20e" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053053Z:fdce7dbe-94ad-4b0d-8740-d9656437768a" + "WESTEUROPE:20180521T075531Z:75fac06a-4704-4d35-a94e-af6967fef20e" ], "X-Content-Type-Options": [ "nosniff" @@ -955,19 +1025,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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://sqlvatest196.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=Jh5vvQREC4bb55OgwBhgEMkp1RweJRU70db%2BOR%2FTYXg%3D&se=2018-05-21T06%3A30%3A54Z&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}", + "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": [ - "460" + "457" ], "x-ms-client-request-id": [ - "874c6810-3d23-46ad-acb6-fbedc2a4a0d2" + "757c792c-b011-4000-86cc-fdd1235574d1" ], "accept-language": [ "en-US" @@ -977,7 +1047,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest196.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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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" @@ -989,7 +1059,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:31:00 GMT" + "Mon, 21 May 2018 07:55:39 GMT" ], "Pragma": [ "no-cache" @@ -1004,16 +1074,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "de66c98f-e02c-40ba-87d6-508710c23116" + "5eb0f3b9-72f1-4ceb-9cad-20d678b3d97c" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1196" ], "x-ms-correlation-request-id": [ - "77416203-4039-4634-b24a-7e4a12b66a02" + "04e0ae98-b144-467e-bf48-ef18bc7c442a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053100Z:77416203-4039-4634-b24a-7e4a12b66a02" + "WESTEUROPE:20180521T075540Z:04e0ae98-b144-467e-bf48-ef18bc7c442a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1025,8 +1095,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "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": { @@ -1037,7 +1107,7 @@ "242" ], "x-ms-client-request-id": [ - "871f44cc-7c21-4aa5-bbd8-b30cc59ae93f" + "01c8a31f-bcde-4b84-905b-c0f6fad91819" ], "accept-language": [ "en-US" @@ -1047,7 +1117,7 @@ "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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}", + "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" @@ -1059,7 +1129,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:31:03 GMT" + "Mon, 21 May 2018 07:55:41 GMT" ], "Pragma": [ "no-cache" @@ -1074,16 +1144,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d585c217-301a-4d15-af5c-2cff0f001bcc" + "33fcd9e6-accf-4fda-9e83-558929ae5a3c" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1195" ], "x-ms-correlation-request-id": [ - "bf7bf5df-77a8-4ca9-a407-9f56368ace15" + "609dc77e-5a9b-4983-9b28-ebd3a7f1026c" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053103Z:bf7bf5df-77a8-4ca9-a407-9f56368ace15" + "WESTEUROPE:20180521T075542Z:609dc77e-5a9b-4983-9b28-ebd3a7f1026c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,13 +1165,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "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": [ - "e3ed7508-ad5d-4b83-9b84-64191bf2bb63" + "87d0444f-25d5-4ec2-950c-93e1628956b8" ], "accept-language": [ "en-US" @@ -1111,7 +1181,7 @@ "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-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/Default/rules/VA2031/baselines/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines\"\r\n}", + "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" @@ -1123,7 +1193,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:31:03 GMT" + "Mon, 21 May 2018 07:55:42 GMT" ], "Pragma": [ "no-cache" @@ -1138,16 +1208,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8f2c8234-1d9f-4447-bc8d-ff5d6214b8a0" + "847946af-131d-424c-a32f-ef75e842f0b0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "efbaa135-76a4-47b7-8275-cbbdb2ab6b8f" + "3dfbd665-6142-4b28-a7bf-ce4917eedd5f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053104Z:efbaa135-76a4-47b7-8275-cbbdb2ab6b8f" + "WESTEUROPE:20180521T075543Z:3dfbd665-6142-4b28-a7bf-ce4917eedd5f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1159,13 +1229,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "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": [ - "c3aa8b88-077c-45c8-a7ff-b48d36bd0b26" + "bb9ad899-eb4d-4fe6-9fc6-f31891dbf2d7" ], "accept-language": [ "en-US" @@ -1190,7 +1260,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:31:05 GMT" + "Mon, 21 May 2018 07:55:43 GMT" ], "Pragma": [ "no-cache" @@ -1199,16 +1269,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "33ecb640-d314-4594-b345-901eee276d26" + "de19e769-af8c-44cd-babf-52e2e926fb47" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14989" ], "x-ms-correlation-request-id": [ - "fe270ec3-fa86-45fb-b090-bea072436830" + "2d8b3379-d736-45d8-acd2-4a6df94e40ff" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053105Z:fe270ec3-fa86-45fb-b090-bea072436830" + "WESTEUROPE:20180521T075544Z:2d8b3379-d736-45d8-acd2-4a6df94e40ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1220,13 +1290,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-3117/providers/Microsoft.Sql/servers/sqlcrudtest-2674/databases/sqlvulnerabilityassessmentbaselinetest-431/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMxMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjc0L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC00MzEvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvcnVsZXMvVkEyMDMxL2Jhc2VsaW5lcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "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": [ - "111f0932-6581-4dae-be78-4b23505eb0ef" + "74309e4d-7d91-4dd9-9edd-552c208d2d0f" ], "accept-language": [ "en-US" @@ -1248,7 +1318,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:31:04 GMT" + "Mon, 21 May 2018 07:55:43 GMT" ], "Pragma": [ "no-cache" @@ -1257,16 +1327,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "fb1a93ef-494d-497d-bb34-c87aed0a11a1" + "2ffc6069-c586-4483-87fa-67145561e962" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "ef1906e7-5226-456c-af8b-5309321b7543" + "0739d6f3-1290-49ac-b817-e7513ba8db15" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053105Z:ef1906e7-5226-456c-af8b-5309321b7543" + "WESTEUROPE:20180521T075544Z:0739d6f3-1290-49ac-b817-e7513ba8db15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1278,13 +1348,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-3117?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMxMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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": [ - "a8c6af0c-1870-4d2d-ba96-f1b900a6dedf" + "9bf724bc-c4af-4965-b6c3-e4964718fe75" ], "accept-language": [ "en-US" @@ -1306,13 +1376,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:31:08 GMT" + "Mon, 21 May 2018 07:55:48 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMxMTctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg4NjEtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1321,13 +1391,13 @@ "14999" ], "x-ms-request-id": [ - "5ca10ca9-ffcd-402b-bbeb-626f95059354" + "2dbb7ddd-be5a-43ab-9a4d-ca5348aed890" ], "x-ms-correlation-request-id": [ - "5ca10ca9-ffcd-402b-bbeb-626f95059354" + "2dbb7ddd-be5a-43ab-9a4d-ca5348aed890" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T053109Z:5ca10ca9-ffcd-402b-bbeb-626f95059354" + "WESTEUROPE:20180521T075548Z:2dbb7ddd-be5a-43ab-9a4d-ca5348aed890" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1341,16 +1411,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-3117" + "sqlcrudtest-8861" ], "CreateServer": [ - "sqlcrudtest-2674" + "sqlcrudtest-2520" ], "TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines": [ - "sqlvulnerabilityassessmentbaselinetest-431" + "sqlvulnerabilityassessmentbaselinetest-8606" ], "CreateStorageContainer": [ - "sqlvatest196" + "sqlvatest1371" ] }, "Variables": { 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 index c5f6dc9fa9fc4..9f805978bae82 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5506?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1MDY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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-5506\": \"2018-05-21 05:53:37Z\"\r\n }\r\n}", + "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": [ - "98" + "97" ], "x-ms-client-request-id": [ - "9e1046ac-7317-41d8-b115-02e593fbffb5" + "b05db278-61e1-48b7-810d-6e1f4a896fc4" ], "accept-language": [ "en-US" @@ -23,10 +23,10 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506\",\r\n \"name\": \"sqlcrudtest-5506\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5506\": \"2018-05-21 05:53:37Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "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": [ - "237" + "234" ], "Content-Type": [ "application/json; charset=utf-8" @@ -38,22 +38,22 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:53:40 GMT" + "Mon, 21 May 2018 08:02:05 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-request-id": [ - "d45350e7-3176-4e9d-8ac1-dc335ac184ca" + "b9e634a8-f592-4b98-97ab-0135234ee908" ], "x-ms-correlation-request-id": [ - "d45350e7-3176-4e9d-8ac1-dc335ac184ca" + "b9e634a8-f592-4b98-97ab-0135234ee908" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055341Z:d45350e7-3176-4e9d-8ac1-dc335ac184ca" + "WESTEUROPE:20180521T080205Z:b9e634a8-f592-4b98-97ab-0135234ee908" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "ed8cb44c-d87c-4776-979f-277e3be6ee32" + "d30bfc15-de57-43f6-befd-063b0d744dff" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T08:02:15.947Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:53:50 GMT" + "Mon, 21 May 2018 08:02:15 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverOperationResults/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview" + "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" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview" + "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": [ - "6230cd63-4c2c-45a4-a7a8-4537aca92390" + "00259a5c-0d87-4180-9081-1f3bc9823132" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "161c1813-bbc7-478a-8892-bd72687041ab" + "e2bf52d2-f374-4433-a9ff-1abab0737e99" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055351Z:161c1813-bbc7-478a-8892-bd72687041ab" + "WESTEUROPE:20180521T080216Z:e2bf52d2-f374-4433-a9ff-1abab0737e99" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MjMwY2Q2My00YzJjLTQ1YTQtYTdhOC00NTM3YWNhOTIzOTA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6230cd63-4c2c-45a4-a7a8-4537aca92390\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", + "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" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:54:01 GMT" + "Mon, 21 May 2018 08:02:26 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "533e1d1d-de87-4808-9a92-3025f46d4134" + "88c63623-7d89-4548-be55-6a8f6dc824a1" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "53334f06-4500-4db5-a6ac-bf3bda880076" + "17d36600-0cbc-42ca-aa40-603d953e8cdd" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055401Z:53334f06-4500-4db5-a6ac-bf3bda880076" + "WESTEUROPE:20180521T080226Z:17d36600-0cbc-42ca-aa40-603d953e8cdd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MjMwY2Q2My00YzJjLTQ1YTQtYTdhOC00NTM3YWNhOTIzOTA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6230cd63-4c2c-45a4-a7a8-4537aca92390\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", + "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" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:54:22 GMT" + "Mon, 21 May 2018 08:02:46 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "97646f38-1708-44c5-9f28-7151ed6af47a" + "b4f09933-4298-48a1-b138-fdae2276304c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "aea8879b-29c0-4d3b-91f8-5dcbc89ec26c" + "076348e8-8847-4e21-a1fd-ea7a41259fd2" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055422Z:aea8879b-29c0-4d3b-91f8-5dcbc89ec26c" + "WESTEUROPE:20180521T080247Z:076348e8-8847-4e21-a1fd-ea7a41259fd2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6230cd63-4c2c-45a4-a7a8-4537aca92390?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MjMwY2Q2My00YzJjLTQ1YTQtYTdhOC00NTM3YWNhOTIzOTA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6230cd63-4c2c-45a4-a7a8-4537aca92390\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:53:51.323Z\"\r\n}", + "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" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:54:42 GMT" + "Mon, 21 May 2018 08:03:06 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3bbb0c1f-a191-4ea8-8c68-17ebd45d50a8" + "eeec0d94-7acf-463a-98af-af54ecbb23c7" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "35580aee-2d02-4928-8104-44c8d0bfaf18" + "e7aabd30-f162-4107-973c-2631730a8c54" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055443Z:35580aee-2d02-4928-8104-44c8d0bfaf18" + "WESTEUROPE:20180521T080307Z:e7aabd30-f162-4107-973c-2631730a8c54" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": { @@ -334,7 +334,7 @@ "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-6098.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098\",\r\n \"name\": \"sqlcrudtest-6098\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:54:42 GMT" + "Mon, 21 May 2018 08:03:07 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4a6edc68-9443-4165-9393-951d4ecfc9bd" + "f83b645f-eb28-4c25-ab66-58e2d9380826" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "fb22b876-7719-40a9-a8d8-d44c6c7dc031" + "3b212d4a-f537-4156-8694-dbc3fe136882" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055443Z:fb22b876-7719-40a9-a8d8-d44c6c7dc031" + "WESTEUROPE:20180521T080307Z:3b212d4a-f537-4156-8694-dbc3fe136882" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -394,7 +394,7 @@ "29" ], "x-ms-client-request-id": [ - "d03f3f02-1614-43b4-9f12-b6f74e249d46" + "9135fe26-f5bf-482f-b049-9becd02df95c" ], "accept-language": [ "en-US" @@ -404,10 +404,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T08:03:10.19Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:54:47 GMT" + "Mon, 21 May 2018 08:03:09 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview" + "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" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview" + "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": [ - "182abd5a-d85a-4937-bb60-38705d3be6ab" + "a261551b-cd29-400a-818e-132d226afed3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "8963f76e-eaa5-4f97-8758-6529ab379f93" + "fd00af2d-b420-4d59-9870-948bcb59a902" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055448Z:8963f76e-eaa5-4f97-8758-6529ab379f93" + "WESTEUROPE:20180521T080310Z:fd00af2d-b420-4d59-9870-948bcb59a902" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,8 +458,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -468,7 +468,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", + "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" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:55:03 GMT" + "Mon, 21 May 2018 08:03:25 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c68371d1-34ef-4b80-a19f-bbe4b467dbde" + "5c75aede-970c-4cf3-a43e-cb924fd9d3b3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "306810a0-adef-4e74-9454-c3dcbaf20022" + "ab58a4fa-733e-4327-a8d1-2945fae70762" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055503Z:306810a0-adef-4e74-9454-c3dcbaf20022" + "WESTEUROPE:20180521T080326Z:ab58a4fa-733e-4327-a8d1-2945fae70762" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,8 +519,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -529,7 +529,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", + "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" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:55:17 GMT" + "Mon, 21 May 2018 08:03:40 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "294657be-73c0-454f-b544-1d3b5ef61dc4" + "3c8cc0c2-132f-459c-b82a-937fb639d14d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "951aa116-96b4-4407-a55c-b391c630cad3" + "4005355e-434c-4649-8e30-d26f04512439" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055518Z:951aa116-96b4-4407-a55c-b391c630cad3" + "WESTEUROPE:20180521T080341Z:4005355e-434c-4649-8e30-d26f04512439" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +580,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -590,7 +590,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", + "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" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:55:33 GMT" + "Mon, 21 May 2018 08:03:55 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3ab4a51c-248c-49c2-ba22-04d9be05d686" + "0d5c9d1b-729e-4a7f-983d-4b503fdc7379" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "026752f6-47a2-4b39-b768-41f385b7674b" + "3479d64e-2358-4d18-8d44-bf54176303d8" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055533Z:026752f6-47a2-4b39-b768-41f385b7674b" + "WESTEUROPE:20180521T080356Z:3479d64e-2358-4d18-8d44-bf54176303d8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +641,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/7e670642-e81d-412f-a801-8a66fd6f9bd4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdlNjcwNjQyLWU4MWQtNDEyZi1hODAxLThhNjZmZDZmOWJkND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -651,7 +651,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7e670642-e81d-412f-a801-8a66fd6f9bd4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:54:47.897Z\"\r\n}", + "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" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:55:49 GMT" + "Mon, 21 May 2018 08:03:56 GMT" ], "Pragma": [ "no-cache" @@ -671,9 +671,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -681,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "71c5e92b-6609-49e9-9e06-1d7269ff14e1" + "9679715a-791b-4a26-9dc8-87e5603674a3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "726d3894-6597-4787-a4d4-29d6c9e8ff73" + "9d201adb-edd3-42bd-92a5-93729067c1fe" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055549Z:726d3894-6597-4787-a4d4-29d6c9e8ff73" + "WESTEUROPE:20180521T080357Z:9d201adb-edd3-42bd-92a5-93729067c1fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,32 +699,38 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", + "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 \"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\": \"1b2a9e06-01b5-4e52-9dde-3195b7095a1f\",\r\n \"creationDate\": \"2018-05-21T05:54:48.163Z\",\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-21T06:25:43.49Z\",\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-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763\",\r\n \"name\": \"sqlvulnerabilityassessmentscantest-8763\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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; charset=utf-8" - ], - "Expires": [ - "-1" + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" ], "Cache-Control": [ - "no-cache" + "no-store, no-cache" ], "Date": [ - "Mon, 21 May 2018 05:55:49 GMT" - ], - "Pragma": [ - "no-cache" + "Mon, 21 May 2018 08:04:00 GMT" ], "Transfer-Encoding": [ "chunked" @@ -739,29 +742,35 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e9c3ce15-e255-4e6f-9ad8-e65b42fd3164" + "29ddf8e2-e8de-4b5a-8164-fe354affaaf1" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "c8f8ffb2-3618-47ef-9305-e55a5a3c1f42" + "Preference-Applied": [ + "return-content" ], - "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055549Z:c8f8ffb2-3618-47ef-9305-e55a5a3c1f42" + "DataServiceVersion": [ + "3.0;" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ - "nosniff" + "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-5506/providers/Microsoft.Storage/storageAccounts/sqlvatest2326?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyMzI2P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": { @@ -772,7 +781,7 @@ "152" ], "x-ms-client-request-id": [ - "3851e3cd-be8b-4858-b669-8b107cc8b188" + "83e138a0-b5ed-4fe5-aa3d-e20847cc1c7d" ], "accept-language": [ "en-US" @@ -797,13 +806,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:56:01 GMT" + "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/f8ee4a80-250f-4e29-a6b1-ea5dd04c5940?monitor=true&api-version=2017-06-01" + "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" @@ -812,19 +821,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f8ee4a80-250f-4e29-a6b1-ea5dd04c5940" + "4602d2ae-748b-4bec-bf14-dc2ae8e9b98e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-correlation-request-id": [ - "2f78a663-20f1-4a70-a57c-828ee3373ac1" + "2a67410f-7619-4f42-a8ef-5d29ef272922" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055601Z:2f78a663-20f1-4a70-a57c-828ee3373ac1" + "WESTEUROPE:20180521T080407Z:2a67410f-7619-4f42-a8ef-5d29ef272922" ], "X-Content-Type-Options": [ "nosniff" @@ -833,8 +842,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/f8ee4a80-250f-4e29-a6b1-ea5dd04c5940?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvZjhlZTRhODAtMjUwZi00ZTI5LWE2YjEtZWE1ZGQwNGM1OTQwP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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": { @@ -843,7 +852,7 @@ "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-5506/providers/Microsoft.Storage/storageAccounts/sqlvatest2326\",\r\n \"name\": \"sqlvatest2326\",\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-21T05:56:00.1324988Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T05:56:00.1324988Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T05:56:00.0386974Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest2326.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest2326.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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" @@ -855,7 +864,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:56:18 GMT" + "Mon, 21 May 2018 08:04:25 GMT" ], "Pragma": [ "no-cache" @@ -870,19 +879,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9e1d1183-b578-48fd-9c4f-d7f658049311" + "98ef6439-ab00-4588-8196-8ffb7f33fb04" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14998" ], "x-ms-correlation-request-id": [ - "e9862f86-d66b-4529-a2ba-7a85ad32968b" + "b831508f-bbfa-4bd6-8ec4-576db4c23e0f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055619Z:e9862f86-d66b-4529-a2ba-7a85ad32968b" + "WESTEUROPE:20180521T080425Z:b831508f-bbfa-4bd6-8ec4-576db4c23e0f" ], "X-Content-Type-Options": [ "nosniff" @@ -891,13 +900,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Storage/storageAccounts/sqlvatest2326/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyMzI2L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": [ - "f6acdca2-70cc-45ca-b8c5-05f631ad75d2" + "85a7b692-34fb-4989-8d86-3add3932ff40" ], "accept-language": [ "en-US" @@ -907,7 +916,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"dLGTSq2uFFVkJXIVOYQ1BWa6FufLAZof7VJ7XNmkqFCF0PH05R0AlE1Yc+ewKznOVqIfmtqzc1jkcat71BhoWg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"gtF0sjpcLZiPnaskTGKtCECGRiAXUSeHoT12h28nw4AN/rL2XZxKqmJr5wXDpMGuQvpfVtDOFvWBp10OwLinLQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "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" @@ -919,7 +928,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:56:19 GMT" + "Mon, 21 May 2018 08:04:25 GMT" ], "Pragma": [ "no-cache" @@ -934,19 +943,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7ad464ec-4c05-436a-8f16-457a2e54beff" + "e3958749-f04d-40a9-af0b-2b7b2f39b310" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1198" ], "x-ms-correlation-request-id": [ - "90e8555c-9122-4708-ba31-888f35ac9442" + "f8c79109-b4e3-4c36-8388-2f405ebf8ba7" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055619Z:90e8555c-9122-4708-ba31-888f35ac9442" + "WESTEUROPE:20180521T080425Z:f8c79109-b4e3-4c36-8388-2f405ebf8ba7" ], "X-Content-Type-Options": [ "nosniff" @@ -955,10 +964,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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://sqlvatest2326.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=MukfXij41vAtOm3jz34uYEIzeXXE3fmdr%2FWMc%2BNYsA0%3D&se=2018-05-21T06%3A56%3A20Z&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}", + "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" @@ -967,7 +976,7 @@ "461" ], "x-ms-client-request-id": [ - "8a207135-533c-4094-81f7-6dec4601fce4" + "50fe8006-eb7b-4a60-a002-de2c75bdbf0b" ], "accept-language": [ "en-US" @@ -977,7 +986,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2326.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-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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" @@ -989,7 +998,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:56:28 GMT" + "Mon, 21 May 2018 08:04:33 GMT" ], "Pragma": [ "no-cache" @@ -1004,16 +1013,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "32bf1028-9dc9-48aa-b776-d64701dfdd42" + "f65d7912-07be-44d1-8b0f-7a5101af11ce" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1196" ], "x-ms-correlation-request-id": [ - "c5262a19-223f-42ec-a4b7-90bcdeeb29cc" + "344f968b-ade2-44b2-88e6-25427875dd9a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055628Z:c5262a19-223f-42ec-a4b7-90bcdeeb29cc" + "WESTEUROPE:20180521T080434Z:344f968b-ade2-44b2-88e6-25427875dd9a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1025,13 +1034,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": [ - "d8cf7423-0285-4b6e-88f6-5143429cdc17" + "a41cbf92-130d-4773-a107-accef3459e07" ], "accept-language": [ "en-US" @@ -1041,10 +1050,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T05:56:28.92Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T08:04:34.453Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "96" + "97" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1056,13 +1065,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:56:28 GMT" + "Mon, 21 May 2018 08:04:33 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview" + "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" @@ -1071,19 +1080,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview" + "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": [ - "83fcf815-04e7-4995-a071-3c0417aacd2a" + "8f9027fd-b840-4b72-8ab0-d8b1414eec9b" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1195" ], "x-ms-correlation-request-id": [ - "c018fb3e-52b9-426d-9b7a-15d2484cffba" + "b49a432c-2dcc-4ed6-a3ff-2e6b61fdf925" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055629Z:c018fb3e-52b9-426d-9b7a-15d2484cffba" + "WESTEUROPE:20180521T080434Z:b49a432c-2dcc-4ed6-a3ff-2e6b61fdf925" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,69 +1104,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9hMjJmOTA2Yi00M2Y2LTQ0MjktOTAyZS0yZjlhOWNjZWFjNjY/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\": \"a22f906b-43f6-4429-902e-2f9a9cceac66\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T05:56:28.92Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Mon, 21 May 2018 05:56:43 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "6f4ed7ca-c55b-48f1-ae42-f0b81b72de48" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "8d062431-9549-4eae-a26e-45c4e007aae1" - ], - "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055644Z:8d062431-9549-4eae-a26e-45c4e007aae1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi9hMjJmOTA2Yi00M2Y2LTQ0MjktOTAyZS0yZjlhOWNjZWFjNjY/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -1166,7 +1114,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"a22f906b-43f6-4429-902e-2f9a9cceac66\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:56:28.92Z\"\r\n}", + "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" @@ -1178,7 +1126,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:56:59 GMT" + "Mon, 21 May 2018 08:04:49 GMT" ], "Pragma": [ "no-cache" @@ -1196,16 +1144,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "201558ec-7e3d-4b41-a84c-cdcb85bde040" + "15efc435-968f-4d0f-82d8-71243a938677" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14991" ], "x-ms-correlation-request-id": [ - "8cebbc05-f66f-470e-b7b2-7f048bf1b097" + "8e716470-9880-4539-9e26-0484d267624e" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055659Z:8cebbc05-f66f-470e-b7b2-7f048bf1b097" + "WESTEUROPE:20180521T080449Z:8e716470-9880-4539-9e26-0484d267624e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1217,8 +1165,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/a22f906b-43f6-4429-902e-2f9a9cceac66?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy9hMjJmOTA2Yi00M2Y2LTQ0MjktOTAyZS0yZjlhOWNjZWFjNjY/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -1227,7 +1175,7 @@ "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-21T05:56:28.92Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default/scans/scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "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" @@ -1242,7 +1190,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:56:59 GMT" + "Mon, 21 May 2018 08:04:49 GMT" ], "Pragma": [ "no-cache" @@ -1251,16 +1199,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "60a5407d-48c5-470e-b2bc-4d412c6e7cef" + "8abbc0ee-e8db-4a6d-8f1f-016eb09351bf" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14990" ], "x-ms-correlation-request-id": [ - "a44f34cf-03f8-4be4-a736-fd78ddf2cbc0" + "0c6cd54a-8a57-4cf2-a6d5-8d58d7d38ff6" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055700Z:a44f34cf-03f8-4be4-a736-fd78ddf2cbc0" + "WESTEUROPE:20180521T080450Z:0c6cd54a-8a57-4cf2-a6d5-8d58d7d38ff6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1272,13 +1220,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": [ - "1f3b0a30-099e-41ee-bb1e-ea444910d62b" + "209be125-1167-4637-b281-524e5eb0df4f" ], "accept-language": [ "en-US" @@ -1288,7 +1236,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T05:57:01.07Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T08:04:51.01Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "96" @@ -1303,13 +1251,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:57:00 GMT" + "Mon, 21 May 2018 08:04:50 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview" + "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" @@ -1318,19 +1266,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview" + "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": [ - "93a4972a-1256-4259-b88a-710860d8c350" + "bd6ec619-8346-4de3-b28f-be0f3b9677e4" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1194" ], "x-ms-correlation-request-id": [ - "8321f6d1-0492-4dc7-abc3-c76fa7948da4" + "078117f7-47a1-4619-88ac-84a52426bd18" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055701Z:8321f6d1-0492-4dc7-abc3-c76fa7948da4" + "WESTEUROPE:20180521T080451Z:078117f7-47a1-4619-88ac-84a52426bd18" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1342,8 +1290,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi8zZDU3YmE2OC1jMmJiLTQwYjItYWMyMi1iOTY2ODFmMzljNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -1352,7 +1300,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"3d57ba68-c2bb-40b2-ac22-b96681f39c40\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T05:57:01.07Z\"\r\n}", + "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" @@ -1364,7 +1312,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:57:16 GMT" + "Mon, 21 May 2018 08:05:06 GMT" ], "Pragma": [ "no-cache" @@ -1382,16 +1330,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "60dcdf5e-b656-4102-8622-56c4451fe609" + "b50f6d34-9ff5-42b2-b06d-8182bd154482" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14989" ], "x-ms-correlation-request-id": [ - "4604c33b-ce0d-4566-99d8-7791671ee10c" + "3ed7c16c-4f8e-4090-9669-61a2c7c6a382" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055716Z:4604c33b-ce0d-4566-99d8-7791671ee10c" + "WESTEUROPE:20180521T080506Z:3ed7c16c-4f8e-4090-9669-61a2c7c6a382" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1403,8 +1351,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/3d57ba68-c2bb-40b2-ac22-b96681f39c40?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy8zZDU3YmE2OC1jMmJiLTQwYjItYWMyMi1iOTY2ODFmMzljNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -1413,10 +1361,10 @@ "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-21T05:57:01.07Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default/scans/scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "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": [ - "724" + "723" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1428,7 +1376,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:57:16 GMT" + "Mon, 21 May 2018 08:05:06 GMT" ], "Pragma": [ "no-cache" @@ -1437,16 +1385,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "baefee0c-048b-4de7-bce4-7112e8e2f51f" + "0e45beba-a45b-43d3-979e-9b19c0be33c3" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14988" ], "x-ms-correlation-request-id": [ - "26b66abc-06ba-47f6-b72a-5e1fae682a52" + "fc1c096b-0b30-4958-8f83-4618be2c66aa" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055716Z:26b66abc-06ba-47f6-b72a-5e1fae682a52" + "WESTEUROPE:20180521T080506Z:fc1c096b-0b30-4958-8f83-4618be2c66aa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1458,13 +1406,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ - "f78dd4c0-a5f7-4d91-80d5-b887a12d3d38" + "0ea37ba4-4112-486f-a721-e61f8711b5ac" ], "accept-language": [ "en-US" @@ -1474,7 +1422,7 @@ "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-21T05:56:30.1267299Z\",\r\n \"endTime\": \"2018-05-21T05:56:42.6268001Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default/scans/scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "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" @@ -1486,7 +1434,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:57:16 GMT" + "Mon, 21 May 2018 08:05:06 GMT" ], "Pragma": [ "no-cache" @@ -1501,16 +1449,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "52d45063-9765-465a-b728-d3a35771734f" + "4fb9cb43-6a40-45a4-b054-a227ce809f1e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14987" ], "x-ms-correlation-request-id": [ - "3216da30-08c5-4397-93d0-acf974b3b01f" + "2c86912b-f05c-467b-9723-c8bf66d231b9" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055717Z:3216da30-08c5-4397-93d0-acf974b3b01f" + "WESTEUROPE:20180521T080507Z:2c86912b-f05c-467b-9723-c8bf66d231b9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1522,13 +1470,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": [ - "c2c08e9f-760c-4421-9766-c9de7b6f7ae9" + "93489ff8-c5f6-4cfa-854e-392021e8fa22" ], "accept-language": [ "en-US" @@ -1538,7 +1486,7 @@ "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-21T05:56:30.1267299Z\",\r\n \"endTime\": \"2018-05-21T05:56:42.6268001Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/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-21T05:57:01.2576927Z\",\r\n \"endTime\": \"2018-05-21T05:57:05.1796125Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/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}", + "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" @@ -1550,7 +1498,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:57:17 GMT" + "Mon, 21 May 2018 08:05:07 GMT" ], "Pragma": [ "no-cache" @@ -1565,16 +1513,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "12fda316-01e8-48bb-aa51-d1386da8a33c" + "09dbaa94-baeb-4ad2-b005-b883ac025143" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14986" ], "x-ms-correlation-request-id": [ - "3887a38b-6da8-4408-b132-f287013f9275" + "1d8155e0-523d-4e62-94d3-936eda8d56ca" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055717Z:3887a38b-6da8-4408-b132-f287013f9275" + "WESTEUROPE:20180521T080507Z:1d8155e0-523d-4e62-94d3-936eda8d56ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1586,13 +1534,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1MDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MDk4L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg3NjMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ - "a3bbe5b8-4b0f-483f-bfd1-77029851b40e" + "259a5848-212a-4a0b-af35-8642259b1c9d" ], "accept-language": [ "en-US" @@ -1602,7 +1550,7 @@ "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-21T05:57:01.2576927Z\",\r\n \"endTime\": \"2018-05-21T05:57:05.1796125Z\",\r\n \"storageContainerPath\": \"https://sqlvatest2326.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5506/providers/Microsoft.Sql/servers/sqlcrudtest-6098/databases/sqlvulnerabilityassessmentscantest-8763/vulnerabilityAssessments/Default/scans/scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "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" @@ -1614,7 +1562,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:57:17 GMT" + "Mon, 21 May 2018 08:05:07 GMT" ], "Pragma": [ "no-cache" @@ -1629,16 +1577,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "537cff79-ef16-449f-8407-e92815b94cb2" + "06a5de43-1f52-4b9b-b548-98ee6b58ae76" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14985" ], "x-ms-correlation-request-id": [ - "453e0617-ff63-4865-869e-88baa06651af" + "4b7be88f-5554-44af-a43c-5ede745607ab" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055717Z:453e0617-ff63-4865-869e-88baa06651af" + "WESTEUROPE:20180521T080507Z:4b7be88f-5554-44af-a43c-5ede745607ab" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1650,13 +1598,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5506?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1MDY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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": [ - "bc00b6ae-4443-43f8-9038-1ffb3336ac11" + "42a4b79b-a0de-4a87-9a1e-27d84035ca5c" ], "accept-language": [ "en-US" @@ -1678,13 +1626,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 05:57:21 GMT" + "Mon, 21 May 2018 08:05:10 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU1MDYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDUxMS1XRVNUVVMyIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMyIn0?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1693,13 +1641,13 @@ "14999" ], "x-ms-request-id": [ - "6401aeca-521b-4060-96e0-109b03d8bfc7" + "d87b706a-65ce-4571-b898-b76e2b8d7c3f" ], "x-ms-correlation-request-id": [ - "6401aeca-521b-4060-96e0-109b03d8bfc7" + "d87b706a-65ce-4571-b898-b76e2b8d7c3f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T055721Z:6401aeca-521b-4060-96e0-109b03d8bfc7" + "WESTEUROPE:20180521T080510Z:d87b706a-65ce-4571-b898-b76e2b8d7c3f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1713,20 +1661,20 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-5506" + "sqlcrudtest-511" ], "CreateServer": [ - "sqlcrudtest-6098" + "sqlcrudtest-8577" ], "TestExcetueGetListDatabaseVulnerabilityAssessmentScans": [ - "sqlvulnerabilityassessmentscantest-8763" + "sqlvulnerabilityassessmentscantest-7352" ], "CreateStorageContainer": [ - "sqlvatest2326" + "sqlvatest4909" ] }, "Variables": { - "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c", - "DefaultLocation": "west us 2" + "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 index 8454060c0548e..6926533317bf6 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9496?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk0OTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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-9496\": \"2018-05-21 06:04:56Z\"\r\n }\r\n}", + "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" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "821c153d-569b-4d1d-b1c2-f17a3a9f26b6" + "13fa70f4-24b9-4d0e-85ae-53457b0c6559" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496\",\r\n \"name\": \"sqlcrudtest-9496\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-9496\": \"2018-05-21 06:04:56Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "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" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:04:58 GMT" + "Mon, 21 May 2018 07:58:59 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "ee70c06e-3e83-4675-bd75-bdd392b478d6" + "0559db4b-f848-4b25-8c83-9b3dc04bd8ad" ], "x-ms-correlation-request-id": [ - "ee70c06e-3e83-4675-bd75-bdd392b478d6" + "0559db4b-f848-4b25-8c83-9b3dc04bd8ad" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060459Z:ee70c06e-3e83-4675-bd75-bdd392b478d6" + "WESTEUROPE:20180521T075900Z:0559db4b-f848-4b25-8c83-9b3dc04bd8ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": { @@ -77,7 +77,7 @@ "183" ], "x-ms-client-request-id": [ - "cb623a52-c2f7-473c-89fd-9bab5096bab0" + "493832c2-d2e2-4386-9e42-e6b11de05174" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:59:10.073Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:05:11 GMT" + "Mon, 21 May 2018 07:59:09 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverOperationResults/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview" + "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" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview" + "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": [ - "88658119-ff3a-4dcc-b2c7-9bb15b2cbe38" + "dfd15016-8a0e-4761-8a92-fa9fdc4148ba" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "f47a04bd-a538-4e2c-bf55-c485776d6683" + "8286d145-bad2-49cb-a459-8b2e60412e5e" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060512Z:f47a04bd-a538-4e2c-bf55-c485776d6683" + "WESTEUROPE:20180521T075910Z:8286d145-bad2-49cb-a459-8b2e60412e5e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,8 +141,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ODY1ODExOS1mZjNhLTRkY2MtYjJjNy05YmIxNWIyY2JlMzg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -151,7 +151,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"88658119-ff3a-4dcc-b2c7-9bb15b2cbe38\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", + "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" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:05:21 GMT" + "Mon, 21 May 2018 07:59:20 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0add1628-ba51-4dce-9cbe-1bf3dfebd958" + "cdff2d5b-aeb9-4079-b640-0dd8365dc6ac" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14931" ], "x-ms-correlation-request-id": [ - "af696646-86d4-444c-bd02-a8c880396c1b" + "d3b8874b-6621-4854-9ed4-970aa5856a9a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060522Z:af696646-86d4-444c-bd02-a8c880396c1b" + "WESTEUROPE:20180521T075920Z:d3b8874b-6621-4854-9ed4-970aa5856a9a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,8 +202,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ODY1ODExOS1mZjNhLTRkY2MtYjJjNy05YmIxNWIyY2JlMzg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -212,7 +212,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"88658119-ff3a-4dcc-b2c7-9bb15b2cbe38\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", + "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" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:05:42 GMT" + "Mon, 21 May 2018 07:59:40 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7bf1a3a7-0b82-4143-9844-9bf6d0bdfb73" + "50c3f8a0-adc8-493b-8ac1-2dc63054077e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14929" ], "x-ms-correlation-request-id": [ - "4ef66c20-f29a-4b64-9f25-d850c1cbb773" + "82f0a3fc-88b0-4b57-8231-2b8ab23df7b1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060542Z:4ef66c20-f29a-4b64-9f25-d850c1cbb773" + "WESTEUROPE:20180521T075940Z:82f0a3fc-88b0-4b57-8231-2b8ab23df7b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,8 +263,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/88658119-ff3a-4dcc-b2c7-9bb15b2cbe38?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ODY1ODExOS1mZjNhLTRkY2MtYjJjNy05YmIxNWIyY2JlMzg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "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": { @@ -273,7 +273,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"88658119-ff3a-4dcc-b2c7-9bb15b2cbe38\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T06:05:12.067Z\"\r\n}", + "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" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:06:02 GMT" + "Mon, 21 May 2018 08:00:00 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "85f360e9-9d94-469d-8725-0def1b08493b" + "d7b6a5e3-1e9e-45d8-97af-958f62913b81" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14926" ], "x-ms-correlation-request-id": [ - "7379e83f-c623-4a2c-a53c-14e1eef1990e" + "f65b6745-9f6f-4e1e-9280-3a72516adcaa" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060603Z:7379e83f-c623-4a2c-a53c-14e1eef1990e" + "WESTEUROPE:20180521T080001Z:f65b6745-9f6f-4e1e-9280-3a72516adcaa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,8 +324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": { @@ -334,7 +334,7 @@ "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-5576.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576\",\r\n \"name\": \"sqlcrudtest-5576\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:06:03 GMT" + "Mon, 21 May 2018 08:00:00 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "30285d80-b746-4c29-adfc-84fd232010b4" + "ce142439-bb78-4e8e-9643-28b3327ae105" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14925" ], "x-ms-correlation-request-id": [ - "5088a19d-7ff7-4fb9-ad5b-5eb7a5d20c14" + "97969e85-2d0b-4689-a8c3-e48e8bce3391" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060603Z:5088a19d-7ff7-4fb9-ad5b-5eb7a5d20c14" + "WESTEUROPE:20180521T080001Z:97969e85-2d0b-4689-a8c3-e48e8bce3391" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -394,7 +394,7 @@ "29" ], "x-ms-client-request-id": [ - "baf84aa9-7303-4f63-a3fa-82ec8b4050fb" + "d46939dc-86e8-4aec-a7e9-f8ada03a821d" ], "accept-language": [ "en-US" @@ -404,10 +404,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T08:00:03.977Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:06:05 GMT" + "Mon, 21 May 2018 08:00:03 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview" + "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" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview" + "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": [ - "4156d6dd-2753-4fd3-825e-7aef9f923222" + "004f6bb5-3075-46b1-b714-49968889abd5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "3ccd4775-1e7d-401d-b4f7-48a806c672f3" + "f77065a0-6bff-44c2-88d0-5d6c25937074" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060606Z:3ccd4775-1e7d-401d-b4f7-48a806c672f3" + "WESTEUROPE:20180521T080004Z:f77065a0-6bff-44c2-88d0-5d6c25937074" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,8 +458,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -468,7 +468,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", + "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" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:06:21 GMT" + "Mon, 21 May 2018 08:00:19 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1c24090a-3774-4100-8b42-87fc4f0761d2" + "4f3676b5-9602-4e6e-85b3-e9e10c286251" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14924" ], "x-ms-correlation-request-id": [ - "642660c8-4d18-4cd9-9fda-d9011f00661d" + "1314e653-1d0e-4053-a3db-4870161d00ed" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060622Z:642660c8-4d18-4cd9-9fda-d9011f00661d" + "WESTEUROPE:20180521T080019Z:1314e653-1d0e-4053-a3db-4870161d00ed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,8 +519,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -529,7 +529,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", + "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" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:06:37 GMT" + "Mon, 21 May 2018 08:00:34 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c1b0d400-52bd-4e2e-a8a5-85f0cf66f67e" + "3cfeb70e-1334-4667-a990-c1ea83ca9fe5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14923" ], "x-ms-correlation-request-id": [ - "3d4a2da6-15f3-44c4-bd1f-0fecc7dcf820" + "1e52d421-4bf8-4a45-aa74-edadbbb1b3f0" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060638Z:3d4a2da6-15f3-44c4-bd1f-0fecc7dcf820" + "WESTEUROPE:20180521T080034Z:1e52d421-4bf8-4a45-aa74-edadbbb1b3f0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,8 +580,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -590,7 +590,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", + "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" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:06:52 GMT" + "Mon, 21 May 2018 08:00:49 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8e2e4599-902c-4a71-98ad-2bc17b43a527" + "22be3719-481d-451a-bc21-a66c400b5949" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14921" ], "x-ms-correlation-request-id": [ - "cb76a3b2-6035-4661-8267-ede99d42bb77" + "ffe96e77-b7ac-4235-bc7f-93e344be868f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060653Z:cb76a3b2-6035-4661-8267-ede99d42bb77" + "WESTEUROPE:20180521T080050Z:ffe96e77-b7ac-4235-bc7f-93e344be868f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,8 +641,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c7da9328-6cfb-43f1-80aa-60dc2d126a65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2M3ZGE5MzI4LTZjZmItNDNmMS04MGFhLTYwZGMyZDEyNmE2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "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": { @@ -651,7 +651,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"c7da9328-6cfb-43f1-80aa-60dc2d126a65\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T06:06:06.04Z\"\r\n}", + "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" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:08 GMT" + "Mon, 21 May 2018 08:00:49 GMT" ], "Pragma": [ "no-cache" @@ -671,9 +671,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -681,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9ca65955-b04e-4a00-8521-d4bdf4ab98a1" + "7927374d-3350-4ac4-9b93-73fd60350a62" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14920" ], "x-ms-correlation-request-id": [ - "ee65765c-0128-41b3-b9d1-cd103057ba6b" + "f4c7a74e-2e82-4057-99b5-b64424a624d4" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060708Z:ee65765c-0128-41b3-b9d1-cd103057ba6b" + "WESTEUROPE:20180521T080050Z:f4c7a74e-2e82-4057-99b5-b64424a624d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,32 +699,38 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", + "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 \"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\": \"e6f9bb75-24a9-47dc-b839-23dac044af99\",\r\n \"creationDate\": \"2018-05-21T06:06:06.29Z\",\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-21T06:37:04.087Z\",\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-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943\",\r\n \"name\": \"sqlvulnerabilityassessmentexportscantest-7943\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "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; charset=utf-8" - ], - "Expires": [ - "-1" + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" ], "Cache-Control": [ - "no-cache" + "no-store, no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:08 GMT" - ], - "Pragma": [ - "no-cache" + "Mon, 21 May 2018 08:00:53 GMT" ], "Transfer-Encoding": [ "chunked" @@ -739,29 +742,35 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ca337dcc-84a1-495d-94e6-75dbb4a12693" + "28132062-5cba-4597-8132-7d6f27e7df20" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "954614cb-dcd6-41cf-b025-8a8391a76def" + "Preference-Applied": [ + "return-content" ], - "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060708Z:954614cb-dcd6-41cf-b025-8a8391a76def" + "DataServiceVersion": [ + "3.0;" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ - "nosniff" + "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-9496/providers/Microsoft.Storage/storageAccounts/sqlvatest7952?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q3OTUyP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": { @@ -772,7 +781,7 @@ "152" ], "x-ms-client-request-id": [ - "f9f842a8-3077-4028-9c26-8b3218dba518" + "6d125ab3-31ae-4cf1-b8c0-7723d5524a88" ], "accept-language": [ "en-US" @@ -797,13 +806,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:18 GMT" + "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/6b58ff5d-c8d2-4278-872c-0d8b7b862c6f?monitor=true&api-version=2017-06-01" + "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" @@ -812,7 +821,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6b58ff5d-c8d2-4278-872c-0d8b7b862c6f" + "28ecbffa-8b57-4494-85d3-8ed93c67bfd7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -821,10 +830,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "69743e9e-2603-4c32-ae69-fb7dc07a9ef4" + "4ce2aafa-07f7-4f9b-bc58-e11063fe6b07" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060718Z:69743e9e-2603-4c32-ae69-fb7dc07a9ef4" + "WESTEUROPE:20180521T080105Z:4ce2aafa-07f7-4f9b-bc58-e11063fe6b07" ], "X-Content-Type-Options": [ "nosniff" @@ -833,8 +842,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/providers/Microsoft.Storage/locations/westus2/asyncoperations/6b58ff5d-c8d2-4278-872c-0d8b7b862c6f?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzMi9hc3luY29wZXJhdGlvbnMvNmI1OGZmNWQtYzhkMi00Mjc4LTg3MmMtMGQ4YjdiODYyYzZmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "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": { @@ -843,7 +852,7 @@ "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-9496/providers/Microsoft.Storage/storageAccounts/sqlvatest7952\",\r\n \"name\": \"sqlvatest7952\",\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-21T06:07:18.4053827Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-21T06:07:18.4053827Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-21T06:07:18.3428824Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest7952.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest7952.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus2\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "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" @@ -855,7 +864,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:36 GMT" + "Mon, 21 May 2018 08:01:21 GMT" ], "Pragma": [ "no-cache" @@ -870,7 +879,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "161be2af-721e-442c-96fd-96e234d02963" + "93e7ebb9-3156-436b-857a-874dafbd080e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -879,10 +888,10 @@ "14999" ], "x-ms-correlation-request-id": [ - "1bb6eb9a-7a4c-4a37-ae23-56c49efa0b3d" + "37af603e-0f92-4d1e-9fb2-23ad818c1ba1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060736Z:1bb6eb9a-7a4c-4a37-ae23-56c49efa0b3d" + "WESTEUROPE:20180521T080122Z:37af603e-0f92-4d1e-9fb2-23ad818c1ba1" ], "X-Content-Type-Options": [ "nosniff" @@ -891,13 +900,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Storage/storageAccounts/sqlvatest7952/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q3OTUyL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "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": [ - "6d079372-c366-4c68-b73d-586c7214740d" + "1197aa7e-a1ed-4b0e-af83-fd2ef76a97d1" ], "accept-language": [ "en-US" @@ -907,7 +916,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"bygu6Ac6sG+ud5/EAAFqWrGwGudVhc/g4wyTQZ3ZSjbIe+XB2bPIzTU9dFL8uc4ag5gGnQ4evQ2nvIctA/lutA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"MkEdbdVTG+AKOH+jJFtTp7nnho5nd5Hj814LuHlYp6IWzj1rcNkMM7rXpSlXusxb8Y8xg2VJQwmNZRMw1Tzqkg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "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" @@ -919,7 +928,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:36 GMT" + "Mon, 21 May 2018 08:01:23 GMT" ], "Pragma": [ "no-cache" @@ -934,7 +943,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0a3a33e7-e5a3-4b71-abd1-e90a659f5a56" + "953a3b56-c8bb-4b34-940b-218ece16c88d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -943,10 +952,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "c71f277a-b2c9-470a-b471-b297a93908b3" + "8bf9f24b-00b3-46d7-94b1-8ed57d7bdb5e" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060736Z:c71f277a-b2c9-470a-b471-b297a93908b3" + "WESTEUROPE:20180521T080123Z:8bf9f24b-00b3-46d7-94b1-8ed57d7bdb5e" ], "X-Content-Type-Options": [ "nosniff" @@ -955,19 +964,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/default?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "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://sqlvatest7952.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=UdoxBuH5O4A2kIqnIp9Tg%2BD6vWiSL52qCNEcpCH4mVs%3D&se=2018-05-21T07%3A07%3A37Z&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}", + "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": [ - "459" + "463" ], "x-ms-client-request-id": [ - "94e37351-3667-46c1-a974-b9842f3fd475" + "862e98d5-5fcc-4108-bf23-1c267d01fc2e" ], "accept-language": [ "en-US" @@ -977,7 +986,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest7952.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-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", + "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" @@ -989,7 +998,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:42 GMT" + "Mon, 21 May 2018 08:01:28 GMT" ], "Pragma": [ "no-cache" @@ -1004,16 +1013,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "93f631ea-aa4d-4323-ada4-3ba489793023" + "131d0a04-b83e-4e10-b5f2-3ae483d9a263" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1196" ], "x-ms-correlation-request-id": [ - "54e6d21b-8ede-4e33-b6c5-7b9c78b3459a" + "0f398339-b05c-4c00-8fda-86f841b0d2b1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060743Z:54e6d21b-8ede-4e33-b6c5-7b9c78b3459a" + "WESTEUROPE:20180521T080129Z:0f398339-b05c-4c00-8fda-86f841b0d2b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1025,13 +1034,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/initiateScan?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRleHBvcnRzY2FudGVzdC0vaW5pdGlhdGVTY2FuP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ - "6cf5fbfd-546e-4cb0-b684-a36ee880c45d" + "2d9b368d-019b-4f0a-bae6-02756b5148f3" ], "accept-language": [ "en-US" @@ -1041,10 +1050,10 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T06:07:43.933Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T08:01:29.39Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "97" + "96" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1056,13 +1065,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:43 GMT" + "Mon, 21 May 2018 08:01:28 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview" + "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" @@ -1071,19 +1080,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview" + "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": [ - "089bbf6d-2301-42f6-a8db-33ce9ef294fd" + "39b59006-35b9-4881-beda-8349c4928fca" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1195" ], "x-ms-correlation-request-id": [ - "c2bb8430-581f-4a7d-a2ec-e3cfca497e67" + "b32ca17f-118a-4e85-ab0b-8dc9ea4b5f70" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060744Z:c2bb8430-581f-4a7d-a2ec-e3cfca497e67" + "WESTEUROPE:20180521T080129Z:b32ca17f-118a-4e85-ab0b-8dc9ea4b5f70" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,8 +1104,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanAzureAsyncOperation/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuQXp1cmVBc3luY09wZXJhdGlvbi84OWRkNzRmOS1jNzFiLTQ2ZDktYmRjMi00OTI2YjM5NGZkNzg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -1105,7 +1114,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"89dd74f9-c71b-46d9-bdc2-4926b394fd78\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-21T06:07:43.933Z\"\r\n}", + "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" @@ -1117,7 +1126,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:59 GMT" + "Mon, 21 May 2018 08:01:45 GMT" ], "Pragma": [ "no-cache" @@ -1135,16 +1144,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ec0db7d2-5eb6-46f4-8292-3b69627ab0e3" + "300f4027-20b5-48a7-b72a-759959d878be" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14918" ], "x-ms-correlation-request-id": [ - "0eee6e9b-d7f5-4297-8762-c140fa6b9fa3" + "c5f5e78b-8808-4f9a-80b7-39e6352befa6" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060800Z:0eee6e9b-d7f5-4297-8762-c140fa6b9fa3" + "WESTEUROPE:20180521T080145Z:c5f5e78b-8808-4f9a-80b7-39e6352befa6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1156,8 +1165,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/locations/westus2/vulnerabilityAssessmentScanOperationResults/89dd74f9-c71b-46d9-bdc2-4926b394fd78?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRTY2FuT3BlcmF0aW9uUmVzdWx0cy84OWRkNzRmOS1jNzFiLTQ2ZDktYmRjMi00OTI2YjM5NGZkNzg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "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": { @@ -1166,10 +1175,10 @@ "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-21T06:07:43.933Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest7952.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/Default/scans/scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"name\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "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": [ - "737" + "736" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1181,7 +1190,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:07:59 GMT" + "Mon, 21 May 2018 08:01:45 GMT" ], "Pragma": [ "no-cache" @@ -1190,16 +1199,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f887653f-919a-46d4-a31e-482994bd705b" + "8c349c23-395a-47df-af98-777b2fa908f6" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14917" ], "x-ms-correlation-request-id": [ - "b2a28d8f-b5cb-44f3-9caf-eaba9f70d4e7" + "3fda240f-c01a-4602-b6c8-ac003330245a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060800Z:b2a28d8f-b5cb-44f3-9caf-eaba9f70d4e7" + "WESTEUROPE:20180521T080145Z:3fda240f-c01a-4602-b6c8-ac003330245a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1211,13 +1220,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/export?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk0OTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NTc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LTc5NDMvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbjFfc3FsdnVsbmVyYWJpbGl0eWFzc2Vzc21lbnRleHBvcnRzY2FudGVzdC0vZXhwb3J0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ - "298d4357-bfa1-4762-ad55-414f50ccde65" + "7e17eda1-65da-4e79-bf6e-ba752dc28bd6" ], "accept-language": [ "en-US" @@ -1227,7 +1236,7 @@ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"exportedReportLocation\": \"https://sqlvatest7952.blob.core.windows.net/vulnerability-assessment/scans/sqlcrudtest-5576/sqlvulnerabilityassessmentexportscantest-7943/scan_scan1_sqlvulnerabilityassessmentexportscantest-.xlsx\"\r\n },\r\n \"id\": \"/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-9496/providers/Microsoft.Sql/servers/sqlcrudtest-5576/databases/sqlvulnerabilityassessmentexportscantest-7943/vulnerabilityAssessments/Default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/export\",\r\n \"name\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export\"\r\n}", + "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" @@ -1242,7 +1251,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:08:02 GMT" + "Mon, 21 May 2018 08:01:47 GMT" ], "Pragma": [ "no-cache" @@ -1251,16 +1260,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0cbdd5c7-0b09-4d7a-acdb-ef1ed3447c94" + "48ad4d63-ed18-436a-ab8b-a1e98f749162" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1194" ], "x-ms-correlation-request-id": [ - "62c3880d-cd4e-417f-9eb7-2152a4655b01" + "5fa20766-69f8-4c40-8fe6-ff2b9657c3c2" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060802Z:62c3880d-cd4e-417f-9eb7-2152a4655b01" + "WESTEUROPE:20180521T080148Z:5fa20766-69f8-4c40-8fe6-ff2b9657c3c2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1272,13 +1281,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-9496?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk0OTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "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": [ - "a6221d1c-4cd9-4208-8705-bcb854501924" + "59f390f0-f805-44f2-9ad8-52fad3a53e4e" ], "accept-language": [ "en-US" @@ -1300,28 +1309,28 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 06:08:06 GMT" + "Mon, 21 May 2018 08:01:50 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDk0OTYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "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": [ - "14999" + "14998" ], "x-ms-request-id": [ - "53bdf835-2c77-445c-b1c6-5da986f82cf7" + "f088dff8-a2cb-4daa-adcd-c4238cbe7ab7" ], "x-ms-correlation-request-id": [ - "53bdf835-2c77-445c-b1c6-5da986f82cf7" + "f088dff8-a2cb-4daa-adcd-c4238cbe7ab7" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T060806Z:53bdf835-2c77-445c-b1c6-5da986f82cf7" + "WESTEUROPE:20180521T080151Z:f088dff8-a2cb-4daa-adcd-c4238cbe7ab7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1335,20 +1344,20 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-9496" + "sqlcrudtest-8985" ], "CreateServer": [ - "sqlcrudtest-5576" + "sqlcrudtest-3795" ], "TestExportDatabaseVulnerabilityAssessmentScans": [ - "sqlvulnerabilityassessmentexportscantest-7943" + "sqlvulnerabilityassessmentexportscantest-2744" ], "CreateStorageContainer": [ - "sqlvatest7952" + "sqlvatest2956" ] }, "Variables": { - "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c", - "DefaultLocation": "west us 2" + "DefaultLocation": "west us 2", + "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c" } } \ No newline at end of file From 77ab892b9a72c617284bbcebb3c9c389685af579 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Mon, 21 May 2018 15:09:54 -0700 Subject: [PATCH 18/26] Regenerated from latest swagger readme.md from azure master as well as ran msbuild build.proj /t:build /p:Scope=SDs\SqlManagement --- ...bilityAssessmentRuleBaselinesOperations.cs | 711 +++++++++++ ...ssmentRuleBaselinesOperationsExtensions.cs | 196 +++ ...eVulnerabilityAssessmentScansOperations.cs | 1109 +++++++++++++++++ ...lityAssessmentScansOperationsExtensions.cs | 319 +++++ ...abaseVulnerabilityAssessmentsOperations.cs | 686 ++++++++++ ...rabilityAssessmentsOperationsExtensions.cs | 172 +++ ...bilityAssessmentRuleBaselinesOperations.cs | 130 ++ ...eVulnerabilityAssessmentScansOperations.cs | 206 +++ ...abaseVulnerabilityAssessmentsOperations.cs | 120 ++ .../IShortTermRetentionPoliciesOperations.cs | 189 +++ .../Generated/ISqlManagementClient.cs | 20 + .../Models/DatabaseVulnerabilityAssessment.cs | 83 ++ ...baseVulnerabilityAssessmentRuleBaseline.cs | 85 ++ ...VulnerabilityAssessmentRuleBaselineItem.cs | 70 ++ ...abaseVulnerabilityAssessmentScansExport.cs | 63 + .../Models/ShortTermRetentionPolicy.cs | 61 + ...ilityAssessmentRecurringScansProperties.cs | 76 ++ .../VulnerabilityAssessmentScanError.cs | 61 + .../VulnerabilityAssessmentScanRecord.cs | 124 ++ .../VulnerabilityAssessmentScanState.cs | 24 + .../VulnerabilityAssessmentScanTriggerType.cs | 22 + .../Generated/SdkInfo_SqlManagementClient.cs | 4 + .../ShortTermRetentionPoliciesOperations.cs | 761 +++++++++++ ...rmRetentionPoliciesOperationsExtensions.cs | 289 +++++ .../Generated/SqlManagementClient.cs | 24 + src/SDKs/_metadata/sql_resource-manager.txt | 8 +- 26 files changed, 5609 insertions(+), 4 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs 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 0000000000000..24c1350e069b5 --- /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 0000000000000..2056fb20b9603 --- /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 0000000000000..9661d7a0c3980 --- /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 ExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExecuteWithHttpMessagesAsync(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 BeginExecuteWithHttpMessagesAsync(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, "BeginExecute", 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 0000000000000..fc09dc8ec8383 --- /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 Execute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + operations.ExecuteAsync(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 ExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ExecuteWithHttpMessagesAsync(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 BeginExecute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + operations.BeginExecuteAsync(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 BeginExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginExecuteWithHttpMessagesAsync(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 0000000000000..ac7738e453037 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs @@ -0,0 +1,686 @@ +// +// 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 (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 0000000000000..264fd66ee33cc --- /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 0000000000000..a91d62d5fb85d --- /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 0000000000000..1556a97386f9b --- /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 ExecuteWithHttpMessagesAsync(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 BeginExecuteWithHttpMessagesAsync(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 0000000000000..1e4aa09b2be5b --- /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/IShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs new file mode 100644 index 0000000000000..a3ec91ba4f89a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs @@ -0,0 +1,189 @@ +// +// 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; + + /// + /// ShortTermRetentionPoliciesOperations operations. + /// + public partial interface IShortTermRetentionPoliciesOperations + { + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, 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 3467f110e7683..1dcc752ace6e8 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 IJobAgentsOperations. /// @@ -331,10 +341,20 @@ public partial interface ISqlManagementClient : System.IDisposable /// ICapabilitiesOperations Capabilities { get; } + /// + /// Gets the IDatabaseVulnerabilityAssessmentScansOperations. + /// + IDatabaseVulnerabilityAssessmentScansOperations DatabaseVulnerabilityAssessmentScans { get; } + /// /// Gets the IInstanceFailoverGroupsOperations. /// IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } + /// + /// Gets the IShortTermRetentionPoliciesOperations. + /// + IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; } + } } 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 0000000000000..7c06d83df98df --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs @@ -0,0 +1,83 @@ +// +// 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. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// 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. + /// The recurring scans settings + public DatabaseVulnerabilityAssessment(string id = default(string), string name = default(string), string type = default(string), string storageContainerPath = default(string), string storageContainerSasKey = 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; } + + } +} 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 0000000000000..c986ecdc847f5 --- /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 0000000000000..0b771e41c74bd --- /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 0000000000000..3079732cb63cd --- /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/ShortTermRetentionPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs new file mode 100644 index 0000000000000..608ac03e2765c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A short term retention policy resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ShortTermRetentionPolicy : ProxyResource + { + /// + /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// + public ShortTermRetentionPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The backup retention period in days. + /// This is how many days Point-in-Time Restore will be + /// supported. + public ShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + : base(id, name, type) + { + RetentionDays = retentionDays; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the backup retention period in days. This is how many + /// days Point-in-Time Restore will be supported. + /// + [JsonProperty(PropertyName = "properties.retentionDays")] + public int? RetentionDays { get; 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 0000000000000..94b0e00b39ab4 --- /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 0000000000000..d381ce53ff141 --- /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 0000000000000..298f1c24a1f83 --- /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 0000000000000..503c61895227f --- /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 0000000000000..252a76bff40a2 --- /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 60816295aed73..f99851fd90a82 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -28,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"), @@ -69,6 +72,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "Servers", "2015-05-01-preview"), new Tuple("Sql", "ServiceObjectives", "2014-04-01"), new Tuple("Sql", "ServiceTierAdvisors", "2014-04-01"), + new Tuple("Sql", "ShortTermRetentionPolicies", "2017-10-01-preview"), new Tuple("Sql", "SubscriptionUsages", "2015-05-01-preview"), new Tuple("Sql", "SyncAgents", "2015-05-01-preview"), new Tuple("Sql", "SyncGroups", "2015-05-01-preview"), diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs new file mode 100644 index 0000000000000..ee8c84b7e6dd3 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs @@ -0,0 +1,761 @@ +// +// 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; + + /// + /// ShortTermRetentionPoliciesOperations operations. + /// + internal partial class ShortTermRetentionPoliciesOperations : IServiceOperations, IShortTermRetentionPoliciesOperations + { + /// + /// Initializes a new instance of the ShortTermRetentionPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ShortTermRetentionPoliciesOperations(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 short term retention policy. + /// + /// + /// 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> 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 policyName = "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("policyName", policyName); + 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}/backupShortTermRetentionPolicies/{policyName}").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("{policyName}", System.Uri.EscapeDataString(policyName)); + _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; + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy 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 (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string policyName = "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("policyName", policyName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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}/backupShortTermRetentionPolicies/{policyName}").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("{policyName}", System.Uri.EscapeDataString(policyName)); + _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 != 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(); + } + // 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; + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy 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 (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string policyName = "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("policyName", policyName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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}/backupShortTermRetentionPolicies/{policyName}").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("{policyName}", System.Uri.EscapeDataString(policyName)); + _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("PATCH"); + _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 != 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(); + } + // 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/ShortTermRetentionPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs new file mode 100644 index 0000000000000..f67551b3a49df --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs @@ -0,0 +1,289 @@ +// +// 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 ShortTermRetentionPoliciesOperations. + /// + public static partial class ShortTermRetentionPoliciesOperationsExtensions + { + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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 ShortTermRetentionPolicy Get(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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 GetAsync(this IShortTermRetentionPoliciesOperations 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; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy CreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy Update(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.UpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy BeginCreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + public static ShortTermRetentionPolicy BeginUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index 56f37bfed6917..9e5ff66ba2aca 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 IJobAgentsOperations. /// @@ -336,11 +346,21 @@ 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. /// public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } + /// + /// Gets the IShortTermRetentionPoliciesOperations. + /// + public virtual IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// @@ -577,6 +597,8 @@ private void Initialize() SyncMembers = new SyncMembersOperations(this); SubscriptionUsages = new SubscriptionUsagesOperations(this); VirtualNetworkRules = new VirtualNetworkRulesOperations(this); + DatabaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesOperations(this); + DatabaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsOperations(this); JobAgents = new JobAgentsOperations(this); JobCredentials = new JobCredentialsOperations(this); JobExecutions = new JobExecutionsOperations(this); @@ -595,7 +617,9 @@ private void Initialize() DatabaseOperations = new DatabaseOperations(this); ElasticPoolOperations = new ElasticPoolOperations(this); Capabilities = new CapabilitiesOperations(this); + DatabaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansOperations(this); InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); + ShortTermRetentionPolicies = new ShortTermRetentionPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index eb30787ba0c23..aae4168d9c80d 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,12 +1,12 @@ Type dsc to start/install the DS Consolidated Console -2018-05-17 21:57:39 UTC +2018-05-21 20:53:08 UTC 1) azure-rest-api-specs repository information -GitHub user: johnpaulkee -Branch: jobsSdk -Commit: 992e3dd8dfe722697d045458f827e9d554ef6ebb +GitHub user: Azure +Branch: master +Commit: c6fea13a449c7e60d515759d687f18c9079c8522 2) AutoRest information Requested version: latest From dbb8d1181941ba3f424e5d24257267208c33d3bc Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Mon, 21 May 2018 17:47:00 -0700 Subject: [PATCH 19/26] Renaming to Elastic job agent with re-recorded tests --- ...sts.cs => ElasticJobAgentScenarioTests.cs} | 7 +- .../TestCreateUpdateDropAgent.json | 2037 ++++++++++++++ .../TestCreateUpdateDropJob.json | 1781 ++++++++++++ .../TestCreateUpdateDropJobCredential.json | 1598 +++++++++++ .../TestCreateUpdateDropJobStep.json | 1982 +++++++++++++ .../TestCreateUpdateDropTargetGroup.json | 1787 ++++++++++++ .../TestStartStopGetJobExecution.json | 2494 +++++++++++++++++ 7 files changed, 11680 insertions(+), 6 deletions(-) rename src/SDKs/SqlManagement/Sql.Tests/{SqlDatabaseAgentScenarioTests.cs => ElasticJobAgentScenarioTests.cs} (99%) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/ElasticJobAgentScenarioTests.cs similarity index 99% rename from src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs rename to src/SDKs/SqlManagement/Sql.Tests/ElasticJobAgentScenarioTests.cs index 449a320027598..af3f10024336c 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/ElasticJobAgentScenarioTests.cs @@ -2,20 +2,15 @@ using Microsoft.Azure.Management.ResourceManager.Models; using Microsoft.Azure.Management.Sql; using Microsoft.Azure.Management.Sql.Models; -using Microsoft.Azure.Test.HttpRecorder; using Microsoft.Rest.Azure; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using System; using System.Collections.Generic; using System.Linq; -using System.Net; -using System.Threading; -using System.Threading.Tasks; using Xunit; namespace Sql.Tests { - public class SqlDatabaseAgentScenarioTests + public class ElasticJobAgentScenarioTests { /// /// Test end to end agent diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json new file mode 100644 index 0000000000000..08edc7acc215b --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json @@ -0,0 +1,2037 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-5716?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU3MTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5716\": \"2018-05-22 00:28:32Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "40bcacf0-9180-4432-8ddc-c9e03df7df7d" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716\",\r\n \"name\": \"sqlcrudtest-5716\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5716\": \"2018-05-22 00:28:32Z\"\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": [ + "Tue, 22 May 2018 00:28:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b4b000d5-1457-4744-980d-10d4edc1d893" + ], + "x-ms-correlation-request-id": [ + "b4b000d5-1457-4744-980d-10d4edc1d893" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002833Z:b4b000d5-1457-4744-980d-10d4edc1d893" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "e997444d-2ef2-4499-914d-f9438c99c0e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverOperationResults/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "b3ff17c0-951e-4866-87e8-eefc07303e49" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "3520c820-0fc7-48df-bef2-a74155fd2fe5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002835Z:3520c820-0fc7-48df-bef2-a74155fd2fe5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iM2ZmMTdjMC05NTFlLTQ4NjYtODdlOC1lZWZjMDczMDNlNDk/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b3ff17c0-951e-4866-87e8-eefc07303e49\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5e3125b1-0e67-4baf-925f-4b4452143a75" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "25cca5c8-9b25-4c89-b61d-5657a50c033b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002846Z:25cca5c8-9b25-4c89-b61d-5657a50c033b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iM2ZmMTdjMC05NTFlLTQ4NjYtODdlOC1lZWZjMDczMDNlNDk/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b3ff17c0-951e-4866-87e8-eefc07303e49\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4437d365-3447-4a48-b42e-61e5df9324fc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "ec26e30d-fbfc-4c3d-8430-2418c0c373b0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002906Z:ec26e30d-fbfc-4c3d-8430-2418c0c373b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iM2ZmMTdjMC05NTFlLTQ4NjYtODdlOC1lZWZjMDczMDNlNDk/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b3ff17c0-951e-4866-87e8-eefc07303e49\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "63556947-b229-4317-a8cd-21b4433fec38" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "0ca46909-645b-47ab-b8fa-c14293aa3748" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002926Z:0ca46909-645b-47ab-b8fa-c14293aa3748" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-1134.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134\",\r\n \"name\": \"sqlcrudtest-1134\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "54fea576-5887-4fef-96ca-324d236c2e8d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "28ea8919-473c-4d34-9039-a9106e258a57" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002926Z:28ea8919-473c-4d34-9039-a9106e258a57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02ODIzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "c70d1e0b-f9da-48e0-9926-6fa5f9caeb89" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "7deb8403-cfda-46ff-a893-c62e631436e0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "3748a24b-f4d6-4832-8131-ae7c8bac5ec7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002927Z:3748a24b-f4d6-4832-8131-ae7c8bac5ec7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a36119df-1c40-4405-9a96-c4d217e71f1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "d20460f1-ffec-4013-adfe-f8e250a46e01" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002942Z:d20460f1-ffec-4013-adfe-f8e250a46e01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ac507365-d76f-468e-84d9-d5cdb1f9a391" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "b27e5c12-b4b8-4434-971b-301aa9cf6884" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002957Z:b27e5c12-b4b8-4434-971b-301aa9cf6884" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e320e760-8124-48d6-8918-cd21923b4f17" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "32d9b1af-e6bb-4235-98fb-dde54f43590d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003012Z:32d9b1af-e6bb-4235-98fb-dde54f43590d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9b215542-6083-40db-a0c3-1ced35d91202" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "8e39c5da-9fdb-405b-9f44-f612e687eac2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003027Z:8e39c5da-9fdb-405b-9f44-f612e687eac2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8cbf0aa6-847c-446b-8928-22dec1f9c1f0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "0a89f078-28cf-4598-8698-34c1a0441be4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003042Z:0a89f078-28cf-4598-8698-34c1a0441be4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "358ce7d0-cb82-4109-8058-c2d84e221030" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "c4a6d75f-75b3-4362-9a7d-f3095f8f1892" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003057Z:c4a6d75f-75b3-4362-9a7d-f3095f8f1892" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02ODIzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"72550b5e-d610-4a4b-b5af-f96fee3af393\",\r\n \"creationDate\": \"2018-05-22T00:29:27.777Z\",\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-22T01:00:56.347Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"name\": \"sqlcrudtest-6823\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "78bd0662-56be-427b-8cc7-61f27ad6c3c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "bd712024-e08a-4dd4-bdf6-b16b0c76ecd2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003058Z:bd712024-e08a-4dd4-bdf6-b16b0c76ecd2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "af7291ee-7ec3-46a2-9e3d-00954e4445e8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "47a137ae-0a7e-4ecd-865d-d79593b68341" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "5da0f5b3-26c1-48a8-9589-cb05b904f09e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003058Z:5da0f5b3-26c1-48a8-9589-cb05b904f09e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "282" + ], + "x-ms-client-request-id": [ + "3ef1ffb3-73b3-41b6-a6a2-9232c973de41" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:32:44.887Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/4d518887-ea3d-480e-b6f9-0450830f3f45?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/4d518887-ea3d-480e-b6f9-0450830f3f45?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "a3dd3988-134a-4dbd-b919-6b05ada9b2c1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "e6c4c75c-b199-4352-9485-b600ded08c25" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003246Z:e6c4c75c-b199-4352-9485-b600ded08c25" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f05bc805-85e0-4e3b-8e0f-f7f54facc5d0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "f5e6a54b-cd89-462b-8e5f-324b575833b4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003113Z:f5e6a54b-cd89-462b-8e5f-324b575833b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4ccc3607-cb2d-4677-ac9b-c9278bc2c48c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "db3ce9ee-f2c6-4ac9-98ca-8a05d8ab3656" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003128Z:db3ce9ee-f2c6-4ac9-98ca-8a05d8ab3656" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3ae4461a-5c26-4f0f-954e-848dc6983364" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "3469b6c7-a589-40ca-bc85-35faa6287c6d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003143Z:3469b6c7-a589-40ca-bc85-35faa6287c6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f719dfd9-c322-4569-9017-bfbfbcf77717" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "fd9b0e42-f12f-4501-8368-b0bbfc79c6a1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003158Z:fd9b0e42-f12f-4501-8368-b0bbfc79c6a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de1f1769-b642-4b42-a014-2dc38da66079" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "1c21a2e0-3829-4a54-bfd4-e2ff6cb018fd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003213Z:1c21a2e0-3829-4a54-bfd4-e2ff6cb018fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c4df0cfd-50dc-48a4-aa3e-5f0edca8d982" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "c9c5cde9-a1e9-4575-8878-ab47d53b2fc7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003228Z:c9c5cde9-a1e9-4575-8878-ab47d53b2fc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e01c9ab0-cf3e-441e-84bc-e54ba387a2ce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "c4189aac-ee67-4a21-b582-00a0302dc5e5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003244Z:c4189aac-ee67-4a21-b582-00a0302dc5e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d87a04b1-9623-4c90-9123-f704a45dc270" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "967c244a-dda6-4276-a132-e14bc3031009" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003244Z:967c244a-dda6-4276-a132-e14bc3031009" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "604f049d-67e8-426d-95e4-7c99fc7907cf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "1e722edf-248e-4d81-a9bf-0d2e158e3eda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003301Z:1e722edf-248e-4d81-a9bf-0d2e158e3eda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d991fe2d-4629-4b18-aa6d-8656f9a5d16c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2e680bd9-d53b-4998-90d1-fd2e511b8a3b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "26f0f2a4-14e2-41cd-84b5-8b33995a9d6e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003301Z:26f0f2a4-14e2-41cd-84b5-8b33995a9d6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/4d518887-ea3d-480e-b6f9-0450830f3f45?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzRkNTE4ODg3LWVhM2QtNDgwZS1iNmY5LTA0NTA4MzBmM2Y0NT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d518887-ea3d-480e-b6f9-0450830f3f45\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:32:44.887Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8cf075c1-198d-4276-ad43-dc29a4de92cf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "0c977c30-32ae-4165-ba95-a551fdb726a7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003301Z:0c977c30-32ae-4165-ba95-a551fdb726a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58a4710d-7df9-40ff-9c0d-faa0304d9d48" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7ef272ce-40d8-4fa7-9aab-1d4d42890b72" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "73501c39-71cf-41a5-9b79-590e9d38bee4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003302Z:73501c39-71cf-41a5-9b79-590e9d38bee4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "95621446-0031-4b3c-ab30-61d8774405ca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-22T00:33:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/6bbe858e-511f-4a6e-9f04-7a5c60e0acf4?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/6bbe858e-511f-4a6e-9f04-7a5c60e0acf4?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "7a9bed35-1605-426f-98cd-71fe16cc488f" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "2144f7c0-cac4-477c-b6e6-96a6729811ff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003302Z:2144f7c0-cac4-477c-b6e6-96a6729811ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/6bbe858e-511f-4a6e-9f04-7a5c60e0acf4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzZiYmU4NThlLTUxMWYtNGE2ZS05ZjA0LTdhNWM2MGUwYWNmND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6bbe858e-511f-4a6e-9f04-7a5c60e0acf4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:33:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e2d25125-8e28-46a5-8dd9-9e7aaade38f5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "5163e7dc-322f-41f8-a1e6-054f903bb88f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003317Z:5163e7dc-322f-41f8-a1e6-054f903bb88f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-5716?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU3MTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "42534271-004a-47b9-9c95-82d83bd68036" + ], + "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": [ + "Tue, 22 May 2018 00:33:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU3MTYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "eb4b561e-dba7-48f4-b493-ea3c302d149e" + ], + "x-ms-correlation-request-id": [ + "eb4b561e-dba7-48f4-b493-ea3c302d149e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003318Z:eb4b561e-dba7-48f4-b493-ea3c302d149e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-5716?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU3MTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f6ddc0f4-0ac7-458c-bf38-88d296220bb6" + ], + "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": [ + "Tue, 22 May 2018 00:33:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU3MTYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "3f9c32b3-83f6-452a-99d0-62e701ab4081" + ], + "x-ms-correlation-request-id": [ + "3f9c32b3-83f6-452a-99d0-62e701ab4081" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003318Z:3f9c32b3-83f6-452a-99d0-62e701ab4081" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-5716" + ], + "CreateServer": [ + "sqlcrudtest-1134" + ], + "TestCreateUpdateDropAgent": [ + "sqlcrudtest-6823" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json new file mode 100644 index 0000000000000..530199a637c19 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json @@ -0,0 +1,1781 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-2102?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIxMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-2102\": \"2018-05-22 00:24:33Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "f9f03c72-2604-4974-8cd5-79b97f8543f7" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102\",\r\n \"name\": \"sqlcrudtest-2102\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-2102\": \"2018-05-22 00:24:33Z\"\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": [ + "Tue, 22 May 2018 00:24:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "8ccc47b9-9a73-4ce7-9c83-da3daf5cd2c8" + ], + "x-ms-correlation-request-id": [ + "8ccc47b9-9a73-4ce7-9c83-da3daf5cd2c8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002434Z:8ccc47b9-9a73-4ce7-9c83-da3daf5cd2c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "754c0670-1d06-4234-9d10-d576011d1e51" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverOperationResults/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "cf1b85ae-3522-493c-8d0c-bea63d318cc7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "7ffeda8a-56d5-47cb-b80b-3ad0da4799d3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002436Z:7ffeda8a-56d5-47cb-b80b-3ad0da4799d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZjFiODVhZS0zNTIyLTQ5M2MtOGQwYy1iZWE2M2QzMThjYzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cf1b85ae-3522-493c-8d0c-bea63d318cc7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e25b086f-d29e-4ae8-a41f-c0f88c33d2e3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "3e67d898-4cac-45c6-ad77-d04e3dcc7a74" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002446Z:3e67d898-4cac-45c6-ad77-d04e3dcc7a74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZjFiODVhZS0zNTIyLTQ5M2MtOGQwYy1iZWE2M2QzMThjYzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cf1b85ae-3522-493c-8d0c-bea63d318cc7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f2786c70-e248-46b4-9f09-2dfb28165438" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "5229c370-050f-4ede-a8ea-3049e8efa62d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002506Z:5229c370-050f-4ede-a8ea-3049e8efa62d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZjFiODVhZS0zNTIyLTQ5M2MtOGQwYy1iZWE2M2QzMThjYzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cf1b85ae-3522-493c-8d0c-bea63d318cc7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "601861f4-adec-4582-b3f3-7c8d7d91a223" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "5ff6ab98-7ba2-42e4-90f7-39aa7d45191c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002526Z:5ff6ab98-7ba2-42e4-90f7-39aa7d45191c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-9529.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529\",\r\n \"name\": \"sqlcrudtest-9529\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c30a0365-8cae-482d-92e8-1c3c5a97af77" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "3d353333-ba75-4f8b-9223-7c8393be25f8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002526Z:3d353333-ba75-4f8b-9223-7c8393be25f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MTQwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "4fd8657b-a63b-4d6b-b9ff-b774d9c45e54" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "2d8e2ccd-294a-4bdb-9682-da606049a651" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "86e41691-318a-4f7d-9448-766f5918aecc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002527Z:86e41691-318a-4f7d-9448-766f5918aecc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f926db38-df30-49d2-b031-8d3f51e364bf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "7c83f9cd-89c9-4ece-b050-12887f073654" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002542Z:7c83f9cd-89c9-4ece-b050-12887f073654" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b1bf4369-445f-416b-9833-d54cbf0871a7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "5b758c66-245d-474a-9b89-d92a7748faf3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002557Z:5b758c66-245d-474a-9b89-d92a7748faf3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f1bab47c-4447-4012-976a-5c8574c5000d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "49e11731-3295-4f84-b1e5-66247673330d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002612Z:49e11731-3295-4f84-b1e5-66247673330d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f799c8b2-9370-4639-ba10-e95ac6d77ec8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "dbfefdc3-7269-48f8-b6dd-c43b2469709e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002627Z:dbfefdc3-7269-48f8-b6dd-c43b2469709e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MTQwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"b53561df-4f9b-448e-82d6-f8d2ae89f8c8\",\r\n \"creationDate\": \"2018-05-22T00:25:27.137Z\",\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-22T00:56:13.407Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140\",\r\n \"name\": \"sqlcrudtest-5140\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b887ae74-fbe5-430e-8d03-210ad75c157d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "97e16793-e25b-4bf6-8ab0-341fa59f3957" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002627Z:97e16793-e25b-4bf6-8ab0-341fa59f3957" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "f183ba61-aa18-40f6-8a9f-7bb1d78c648f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "fbdd51e8-3af9-40dc-bf3b-b75a00b2e87e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "3e9a5be2-ac9c-4057-b5bd-85f818ab840f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002627Z:3e9a5be2-ac9c-4057-b5bd-85f818ab840f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ed5802a7-90bc-4e4b-8fb1-da79d85db589" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "03ab405b-a44e-4f71-b6f7-61e51ac9549b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002642Z:03ab405b-a44e-4f71-b6f7-61e51ac9549b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "36c3370b-cc49-4f9e-bc47-8586ee7e83cd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "6c841054-0708-4357-80da-cd37cd1c30c1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002657Z:6c841054-0708-4357-80da-cd37cd1c30c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f41d8b8e-0ca6-4531-9607-d06dca337276" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "11b94759-82b3-4df5-a41e-e299dc33ff64" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002713Z:11b94759-82b3-4df5-a41e-e299dc33ff64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c0ebedf0-5021-4781-b990-52e2a57864b4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "6a42cb74-4b3c-4f2d-94f1-c3db5dc7e387" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002728Z:6a42cb74-4b3c-4f2d-94f1-c3db5dc7e387" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3d2ef129-1230-4794-9d5d-7ffeab769bce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "08a254fc-c826-418f-b161-446ec8188526" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002743Z:08a254fc-c826-418f-b161-446ec8188526" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8404ea5-3110-409a-82c9-87acc0fb7794" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "8d79c953-ded2-434b-8a3e-58a0e9d1ef8b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002758Z:8d79c953-ded2-434b-8a3e-58a0e9d1ef8b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "72656cf1-3ad0-460d-8a7a-43207d80bffd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "5184d810-d737-4ef9-a29a-11b0ccbefd30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002813Z:5184d810-d737-4ef9-a29a-11b0ccbefd30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "394b5847-96e9-440d-92bf-76b0c4eed5de" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "f22260f1-bbe6-45d9-8ee1-8ef76153c083" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002828Z:f22260f1-bbe6-45d9-8ee1-8ef76153c083" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e09117c5-e03f-4044-b57c-d6265615d5a8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "4aec277d-1737-4b6c-9790-2e70fd088129" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002828Z:4aec277d-1737-4b6c-9790-2e70fd088129" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "259" + ], + "x-ms-client-request-id": [ + "628cb031-baae-4be5-89fc-1133d9965579" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "565728e7-05f7-415b-a7b4-c036cec6d834" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "2fc1ae50-e2fc-4254-81bd-237a62cdb5f2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:2fc1ae50-e2fc-4254-81bd-237a62cdb5f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "6b0124c4-a424-4892-8bc3-5a5a4e6738b2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "13da78e3-35fc-4701-989e-ae2ece729411" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-correlation-request-id": [ + "4cc4844e-406f-442e-a37e-57d84256080b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:4cc4844e-406f-442e-a37e-57d84256080b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bdc64149-d1fd-47c6-af91-e62d408d73e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9c6e1b32-464c-44a6-b4a5-fac2fc0388a6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "19558aad-d2b6-4c5d-8b4e-69164d43559c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:19558aad-d2b6-4c5d-8b4e-69164d43559c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eba4dcc9-57de-4364-b50d-ef685c6bb2d0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7b9aa7f0-dc81-4a40-aa10-b057acdb1517" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "1a244aee-34d6-479c-ab6b-098c16f2671a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:1a244aee-34d6-479c-ab6b-098c16f2671a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-2102?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIxMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8bd604e-0edb-4997-8430-9b9efd93f7ea" + ], + "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": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDIxMDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "6a2c4865-d6f9-4196-9e1e-10b75ebd88d2" + ], + "x-ms-correlation-request-id": [ + "6a2c4865-d6f9-4196-9e1e-10b75ebd88d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002830Z:6a2c4865-d6f9-4196-9e1e-10b75ebd88d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-2102?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIxMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a144975b-1d3e-4ee0-bae5-9ae4258c086c" + ], + "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": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDIxMDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "ccd971ab-33a9-45ab-b547-c3bc24a70ab1" + ], + "x-ms-correlation-request-id": [ + "ccd971ab-33a9-45ab-b547-c3bc24a70ab1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002830Z:ccd971ab-33a9-45ab-b547-c3bc24a70ab1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-2102" + ], + "CreateServer": [ + "sqlcrudtest-9529" + ], + "TestCreateUpdateDropJob": [ + "sqlcrudtest-5140" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json new file mode 100644 index 0000000000000..407b6881596e7 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json @@ -0,0 +1,1598 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6025?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6025\": \"2018-05-22 00:17:08Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "08a9141f-3a47-46a3-babe-0c44147e302b" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025\",\r\n \"name\": \"sqlcrudtest-6025\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6025\": \"2018-05-22 00:17:08Z\"\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": [ + "Tue, 22 May 2018 00:17:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b674f32e-6c62-4c22-81ef-6d6ee9bae05b" + ], + "x-ms-correlation-request-id": [ + "b674f32e-6c62-4c22-81ef-6d6ee9bae05b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001709Z:b674f32e-6c62-4c22-81ef-6d6ee9bae05b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "78f7d031-bb4f-449c-9b6a-fa106b7081d8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverOperationResults/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "8eca8525-7a73-41c7-ad6d-6bdcf575b4d7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5d85cfb7-1bfe-4e34-a67c-305c5fb50166" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001713Z:5d85cfb7-1bfe-4e34-a67c-305c5fb50166" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZWNhODUyNS03YTczLTQxYzctYWQ2ZC02YmRjZjU3NWI0ZDc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8eca8525-7a73-41c7-ad6d-6bdcf575b4d7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "97d724ad-debd-4b4c-aad0-835ceae9c5b5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "d86f26c1-ed15-4010-9719-55b25d9d263c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001723Z:d86f26c1-ed15-4010-9719-55b25d9d263c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZWNhODUyNS03YTczLTQxYzctYWQ2ZC02YmRjZjU3NWI0ZDc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8eca8525-7a73-41c7-ad6d-6bdcf575b4d7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d230dcc6-99c1-4463-851c-b73aa091bb8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "eb002520-895f-4999-ad99-0d8f47ed71e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001743Z:eb002520-895f-4999-ad99-0d8f47ed71e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZWNhODUyNS03YTczLTQxYzctYWQ2ZC02YmRjZjU3NWI0ZDc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8eca8525-7a73-41c7-ad6d-6bdcf575b4d7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9e5cd9d-67d3-4b10-a358-3bac33f03634" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "c425f829-43bf-4414-a2bf-bda1b8e59224" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001803Z:c425f829-43bf-4414-a2bf-bda1b8e59224" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-7874.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874\",\r\n \"name\": \"sqlcrudtest-7874\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b0fe88ce-5d91-405c-9878-ecbe04acb72e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "283cc934-c9ba-4efa-9c4e-dd0887862565" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001803Z:283cc934-c9ba-4efa-9c4e-dd0887862565" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzQ0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "8f342489-e09e-427f-ad46-458686acd371" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "0b1e9dca-d03b-4883-bc55-b7562cabd2fc" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "4c28ba4a-a23f-42b1-8c6d-fa82026576e1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001804Z:4c28ba4a-a23f-42b1-8c6d-fa82026576e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5080232d-340f-4a14-948c-cf3713323e5d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "dfa9790c-542a-4312-88b7-65f1c0daae62" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001819Z:dfa9790c-542a-4312-88b7-65f1c0daae62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fcc7a572-a58e-436f-84ca-4ebf3ed592a3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "76dfac2e-59a6-4a63-97dd-9928afbaf797" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001835Z:76dfac2e-59a6-4a63-97dd-9928afbaf797" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9ffc16e-fc23-4cce-836d-dbcdf32866f0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "062c39ca-ab24-43bd-a000-e50be7d71640" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001850Z:062c39ca-ab24-43bd-a000-e50be7d71640" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "651bee55-4b6b-4d0b-900b-f151d2d5cbe7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "ce085ad9-4ccd-4f0e-8db7-cf2aed4dfbbf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001905Z:ce085ad9-4ccd-4f0e-8db7-cf2aed4dfbbf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzQ0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"7a1cd104-c8a4-4a14-aa9f-cf4824790c9c\",\r\n \"creationDate\": \"2018-05-22T00:18:04.503Z\",\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-22T00:49:03.257Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344\",\r\n \"name\": \"sqlcrudtest-7344\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7f304579-31a5-4b50-8e2c-f23c06b0fea5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "60b2c5fb-4f21-406d-9655-21b6e50a0aad" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001905Z:60b2c5fb-4f21-406d-9655-21b6e50a0aad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "69fd5d1c-2225-442d-91ff-bab2df367b0b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "8f3def10-c119-4c77-af5c-0cee6786cb72" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "e171a1cb-9506-406e-9bde-90f11bcf2f61" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001905Z:e171a1cb-9506-406e-9bde-90f11bcf2f61" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "49e2f364-e50e-4a65-b718-f85ce71b7fa8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "b7f68565-211f-4a58-aa6f-a5bc14021c60" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001920Z:b7f68565-211f-4a58-aa6f-a5bc14021c60" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6199ebf2-3236-4435-84ae-1bb59cb3ac68" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "03c7d8f6-82d3-45b5-9a3f-4b0be68e4814" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001935Z:03c7d8f6-82d3-45b5-9a3f-4b0be68e4814" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ff85ad62-4587-427b-9dff-b3f30f325692" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "19f77071-35cf-440e-a03c-047ae13a6fab" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001950Z:19f77071-35cf-440e-a03c-047ae13a6fab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0275cfb8-b58b-412a-9f0e-bd56f1c6d244" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "007aafa9-8ff2-478d-b9c9-dc6c70cfad14" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002005Z:007aafa9-8ff2-478d-b9c9-dc6c70cfad14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ebd85c8c-13aa-4d5e-b3a9-ae99b89668c1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "2cfef623-3aea-4e50-929b-2eff96ba5239" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002020Z:2cfef623-3aea-4e50-929b-2eff96ba5239" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "29c6cbe6-b9c9-4501-9761-26ac4ce2b3ee" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "18d449d4-07d8-48ea-9fef-907590ddc5e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002021Z:18d449d4-07d8-48ea-9fef-907590ddc5e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"a\",\r\n \"password\": \"b!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "72" + ], + "x-ms-client-request-id": [ + "d75bcb8a-2a92-4c5c-b851-c1c9e893ee1b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"a\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "283" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2dfe6fde-354b-4662-8c41-30c0a86ca9ce" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "31d2e6a8-039e-4b5b-9337-801df8d3fdf5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:31d2e6a8-039e-4b5b-9337-801df8d3fdf5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "4835e98d-e1f0-4400-a0bd-df97b9230a13" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7c4a342a-eeaf-45f1-b442-47746190e895" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "3e463f49-9d94-451d-9b0d-7f502e349ffe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:3e463f49-9d94-451d-9b0d-7f502e349ffe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "10b87d67-59a9-4730-8e09-3a09fad91578" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4c6f25ea-035e-4cc5-a7be-acc5b0bd29a9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "3e79fa27-ed7e-4000-acdb-0c227ba4c953" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:3e79fa27-ed7e-4000-acdb-0c227ba4c953" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b7a9a6b4-c34e-40a5-b561-9aaa28f6e9e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "29a600e5-c40c-4549-904a-e7baa94031f7" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "8d4dcd4d-1536-4737-b2ce-5b6535fbce1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:8d4dcd4d-1536-4737-b2ce-5b6535fbce1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6025?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "318ae6f9-13fe-4d28-aec7-43e025ba570e" + ], + "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": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYwMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "e9b4ee93-cf4b-42a0-86db-c90d78a1b157" + ], + "x-ms-correlation-request-id": [ + "e9b4ee93-cf4b-42a0-86db-c90d78a1b157" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002023Z:e9b4ee93-cf4b-42a0-86db-c90d78a1b157" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6025?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "01d1c4fc-eb5a-4ef6-89ee-7fb9bf57d3ba" + ], + "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": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYwMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "22c09fd0-82a0-491a-afe5-56ab2cb48764" + ], + "x-ms-correlation-request-id": [ + "22c09fd0-82a0-491a-afe5-56ab2cb48764" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002023Z:22c09fd0-82a0-491a-afe5-56ab2cb48764" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-6025" + ], + "CreateServer": [ + "sqlcrudtest-7874" + ], + "TestCreateUpdateDropJobCredential": [ + "sqlcrudtest-7344" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json new file mode 100644 index 0000000000000..943391b8c2ed8 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json @@ -0,0 +1,1982 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8393?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgzOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8393\": \"2018-05-22 00:20:27Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "e055dd05-7c33-4156-84f1-2ce6fc3f5278" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393\",\r\n \"name\": \"sqlcrudtest-8393\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8393\": \"2018-05-22 00:20:27Z\"\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": [ + "Tue, 22 May 2018 00:20:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "f717c481-e70d-4916-bf76-51ad1a6c7622" + ], + "x-ms-correlation-request-id": [ + "f717c481-e70d-4916-bf76-51ad1a6c7622" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002029Z:f717c481-e70d-4916-bf76-51ad1a6c7622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "d3b0e857-0f44-423d-93c9-2cd52d4e9805" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverOperationResults/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "69ab1edb-65e0-4e58-82f0-dd0d803329c0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5f4797bf-fb92-4a40-9b03-e43b6c8be44a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002035Z:5f4797bf-fb92-4a40-9b03-e43b6c8be44a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82OWFiMWVkYi02NWUwLTRlNTgtODJmMC1kZDBkODAzMzI5YzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"69ab1edb-65e0-4e58-82f0-dd0d803329c0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1edfac4d-49fb-48b5-9f4c-b9d0b5022b73" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "bf14ab55-783a-4f28-b061-ecdda0b56ffd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002045Z:bf14ab55-783a-4f28-b061-ecdda0b56ffd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82OWFiMWVkYi02NWUwLTRlNTgtODJmMC1kZDBkODAzMzI5YzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"69ab1edb-65e0-4e58-82f0-dd0d803329c0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "be0b285c-f5ed-449c-bf08-36efc49cc3bc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "fc191042-bc41-4496-bbcf-4ed3ef150b10" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002105Z:fc191042-bc41-4496-bbcf-4ed3ef150b10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82OWFiMWVkYi02NWUwLTRlNTgtODJmMC1kZDBkODAzMzI5YzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"69ab1edb-65e0-4e58-82f0-dd0d803329c0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cc1f716e-5f69-4f3b-bebc-a970b86290ce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "b585aec5-f001-4e8f-b4a4-c36c3ff09827" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002125Z:b585aec5-f001-4e8f-b4a4-c36c3ff09827" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-6361.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361\",\r\n \"name\": \"sqlcrudtest-6361\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0ead810f-e94b-46a5-8e77-8260faa9dfcc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "2456bc78-e56b-4a53-9e2f-367259ed0a77" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002125Z:2456bc78-e56b-4a53-9e2f-367259ed0a77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODE5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "a30fbb9c-646e-4bfd-9fc1-28b897174e4f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "b1ddcb1f-9a77-4168-bd2b-cbfcbe029b6d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "7d25d202-f1b2-469b-b04b-aaaa1380565b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002125Z:7d25d202-f1b2-469b-b04b-aaaa1380565b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e095c939-6617-4d60-bced-eb5c2ad36e93" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "419a042e-535c-4cda-af7c-289c7ec60192" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002140Z:419a042e-535c-4cda-af7c-289c7ec60192" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6b0f7623-ee19-48ff-a9d2-f5911f2370bc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "b1f06725-8fba-4c47-97cf-ef510b6cdb82" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002156Z:b1f06725-8fba-4c47-97cf-ef510b6cdb82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4b867f85-ebea-4ae7-8aaa-325d9d223af7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "48ce4526-1f0a-4caa-8b75-f22ee3501029" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002211Z:48ce4526-1f0a-4caa-8b75-f22ee3501029" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ee933283-61ee-4421-bcd2-9fe5f3f3b6c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "06702ff5-d342-4d91-a5c9-ee3263cc9199" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002226Z:06702ff5-d342-4d91-a5c9-ee3263cc9199" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODE5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"debdfeef-5702-464e-ab4e-74730f473185\",\r\n \"creationDate\": \"2018-05-22T00:21:26.1Z\",\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-22T00:52:16.917Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819\",\r\n \"name\": \"sqlcrudtest-8819\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "81703154-6dd1-47e7-8514-678047a82b52" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "a6b0b45e-c190-4ee7-a8f9-bb0677f0dac3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002226Z:a6b0b45e-c190-4ee7-a8f9-bb0677f0dac3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "b344830b-7e81-4c9e-851f-0c5185660416" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "d7c71cdb-6020-44d4-9d20-9ca37af47b7a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "ddf4d3a4-c02a-4139-bb36-a79e61cfcc20" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002226Z:ddf4d3a4-c02a-4139-bb36-a79e61cfcc20" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69f498cf-656f-4361-95c2-d118de10d8e5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "3e56eff3-4d65-481b-a176-887a6696e5b8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002241Z:3e56eff3-4d65-481b-a176-887a6696e5b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e28b9ae5-803b-4da8-b011-0fc739845dbf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "28f961b1-d95e-4a1f-b18e-05ac5d16d89d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002256Z:28f961b1-d95e-4a1f-b18e-05ac5d16d89d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e88453e-ce93-4ce5-ae8b-e9d02c9f07a3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "94db6f31-8d0a-42a8-9341-6c324c930d7e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002312Z:94db6f31-8d0a-42a8-9341-6c324c930d7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "802ce37f-5091-4e23-9b32-1cf3ea82fbb8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "767aed58-cd59-4abf-8bf2-bbf38b42cfbe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002327Z:767aed58-cd59-4abf-8bf2-bbf38b42cfbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "34244548-f7ce-4d20-af3f-45e66c4717ad" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "0d3d4c5b-9bb1-4362-b14a-a4247716d048" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002342Z:0d3d4c5b-9bb1-4362-b14a-a4247716d048" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "282f4915-08ff-4d55-9516-1ad4fc5b6f86" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "024d1fb5-1adf-4ee9-a4d0-3b624b08d983" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002357Z:024d1fb5-1adf-4ee9-a4d0-3b624b08d983" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0645762f-739c-42e1-b652-61c8926fad38" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "3306f0f8-3202-4a0f-8f5f-2806e2d3cdda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002412Z:3306f0f8-3202-4a0f-8f5f-2806e2d3cdda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fc2342d-8ca0-4657-9ac1-ee171ea8edb7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "7abef27f-b5c3-4ac1-86da-45b2b6192fbb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002427Z:7abef27f-b5c3-4ac1-86da-45b2b6192fbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "34eae5a9-e72f-4246-aa45-794d6b51d027" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "dcff21a9-5aaa-42b9-bdf2-f2a725def8d3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002427Z:dcff21a9-5aaa-42b9-bdf2-f2a725def8d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "e73519a2-a7f6-4c6c-84f8-00d92735237d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "98169511-2426-48a9-bf13-42ef47e6d1bf" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "6f8f2805-d24d-4d3f-9415-37abfd2a3800" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002428Z:6f8f2805-d24d-4d3f-9415-37abfd2a3800" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-6361\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "386" + ], + "x-ms-client-request-id": [ + "2169f669-b7fa-418b-8c61-4250c31260c4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-6361\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "542" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "47516e5b-3963-4573-965e-0ae5c29c57d7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "cf2803fc-33b7-4af3-b5c2-344db6fccf30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002428Z:cf2803fc-33b7-4af3-b5c2-344db6fccf30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "f2dd7431-bfed-45ec-a930-56d073d42b60" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "397" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a305b46d-808b-4037-a483-68b5efe5496b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "443375e7-f69a-4afd-b5fb-0c8450319a13" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002429Z:443375e7-f69a-4afd-b5fb-0c8450319a13" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "462" + ], + "x-ms-client-request-id": [ + "8792b0ba-f045-42c6-acad-ec5cfedda235" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "869" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e05f73d0-a4ae-4ba0-a42c-65086ea55b8a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "05bb73d9-f46d-4320-8338-f2facf1032a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002430Z:05bb73d9-f46d-4320-8338-f2facf1032a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1203" + ], + "x-ms-client-request-id": [ + "0733b534-3cb9-4f5d-84dc-3f6cf6810900" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "abfbd03a-7b30-4987-939e-63193c8de329" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "5aeabe19-867a-46bb-9c13-5031f4f1cca0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002430Z:5aeabe19-867a-46bb-9c13-5031f4f1cca0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c76fe375-bafb-40ac-b24c-7be79be7cf36" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d06ce36c-68d7-46de-9921-86a8a8eaf096" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "b6e576e4-599f-4203-8bef-2e16ffba3cd0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002430Z:b6e576e4-599f-4203-8bef-2e16ffba3cd0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5e5be27a-4962-47e0-a221-e58b18466568" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "1442f03c-999f-45fd-ab86-be6a37cea786" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "48e6ddd2-2945-43b2-ad46-507208da2955" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002431Z:48e6ddd2-2945-43b2-ad46-507208da2955" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8393?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgzOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ab4e154b-15a6-4d05-bf65-518ba9a76840" + ], + "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": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgzOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "5d6903a3-ba65-4b7f-8111-7feb647d1448" + ], + "x-ms-correlation-request-id": [ + "5d6903a3-ba65-4b7f-8111-7feb647d1448" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002431Z:5d6903a3-ba65-4b7f-8111-7feb647d1448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8393?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgzOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2a4c557d-9ccf-413b-99b1-885ac4ca2955" + ], + "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": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgzOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "cc318ef8-8781-40da-8e97-7fd6dc8443bf" + ], + "x-ms-correlation-request-id": [ + "cc318ef8-8781-40da-8e97-7fd6dc8443bf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002431Z:cc318ef8-8781-40da-8e97-7fd6dc8443bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8393" + ], + "CreateServer": [ + "sqlcrudtest-6361" + ], + "TestCreateUpdateDropJobStep": [ + "sqlcrudtest-8819" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json new file mode 100644 index 0000000000000..8e324017ba72a --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json @@ -0,0 +1,1787 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6442\": \"2018-05-22 00:13:21Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "1256d1dd-73f7-47ca-8b14-e96dac67b5b2" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442\",\r\n \"name\": \"sqlcrudtest-6442\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6442\": \"2018-05-22 00:13:21Z\"\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": [ + "Tue, 22 May 2018 00:13:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a53dd609-88cd-42ad-935b-4f0538800584" + ], + "x-ms-correlation-request-id": [ + "a53dd609-88cd-42ad-935b-4f0538800584" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001322Z:a53dd609-88cd-42ad-935b-4f0538800584" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "8a313bba-d117-4c43-942f-99738f1702b8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:13:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "e8514573-8323-477c-9aa4-ef2d9e6bca72" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "26635795-8776-45ab-be5a-155d48311223" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001325Z:26635795-8776-45ab-be5a-155d48311223" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lODUxNDU3My04MzIzLTQ3N2MtOWFhNC1lZjJkOWU2YmNhNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e8514573-8323-477c-9aa4-ef2d9e6bca72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:13:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "91315d33-8637-44c4-ae6c-8b34c17f253c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "eac8b714-5e32-40f0-b7d9-a6255fea2ac6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001335Z:eac8b714-5e32-40f0-b7d9-a6255fea2ac6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lODUxNDU3My04MzIzLTQ3N2MtOWFhNC1lZjJkOWU2YmNhNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e8514573-8323-477c-9aa4-ef2d9e6bca72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:13:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e9d8600a-080b-4043-bf1f-a4589649c006" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "8fbd79de-84a2-4d12-b45d-d1c55dca85e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001355Z:8fbd79de-84a2-4d12-b45d-d1c55dca85e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lODUxNDU3My04MzIzLTQ3N2MtOWFhNC1lZjJkOWU2YmNhNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e8514573-8323-477c-9aa4-ef2d9e6bca72\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cf183ab7-46ba-4944-a3fc-eaf5678a7d28" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "26b669a7-5d82-4977-993c-52a056162a40" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001415Z:26b669a7-5d82-4977-993c-52a056162a40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-9242.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242\",\r\n \"name\": \"sqlcrudtest-9242\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c0fe1ac-d5a8-4278-90cf-39810fa7c3c1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "d0b552e7-6da9-4bae-b40c-6eb46bad5b17" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001415Z:d0b552e7-6da9-4bae-b40c-6eb46bad5b17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNjAwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "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": [ + "15d9a9ce-7792-4ab5-98b1-6b03acc44a49" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "12ec5a66-aacd-4507-b6b8-945aab77634f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "07a06384-3e17-4fb2-9264-9fb779ab2ac6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001416Z:07a06384-3e17-4fb2-9264-9fb779ab2ac6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "312405da-aea4-4dac-97b9-d89d2f285ef5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "3328c0a2-2add-4f00-95e6-fef979eeea05" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001431Z:3328c0a2-2add-4f00-95e6-fef979eeea05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7cc8bfa6-3125-4894-a14a-55c3b4c08ad5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "255097e7-eeab-48ea-bf15-96e035114458" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001446Z:255097e7-eeab-48ea-bf15-96e035114458" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "24e4579a-61c3-4875-9f4d-08b420a9b552" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "cc92bbd8-d49e-4151-a14b-ad6e86851f9d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001501Z:cc92bbd8-d49e-4151-a14b-ad6e86851f9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a1acc335-8119-429c-8bd4-41bcf182f6e6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "06516de7-60ab-4476-8f11-2648a45770ec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001516Z:06516de7-60ab-4476-8f11-2648a45770ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNjAwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"6cc18958-3dff-4778-93c0-1493fadc4dbd\",\r\n \"creationDate\": \"2018-05-22T00:14:16.44Z\",\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-22T00:45:09.913Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600\",\r\n \"name\": \"sqlcrudtest-1600\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "911a66d7-9d0c-43be-b978-0cc3ffb36e8e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "d89bed44-139b-4e9f-b6f0-44192fa4fc70" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001516Z:d89bed44-139b-4e9f-b6f0-44192fa4fc70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "c997089f-93de-4405-a443-2424c5deff7d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "af9caf06-da66-4dc0-89cf-67306fea7c6e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "5d65660f-080e-4262-975a-65c4647382c9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001517Z:5d65660f-080e-4262-975a-65c4647382c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0eaaff6d-ba9b-4642-a0c6-e5a1bb8b84ab" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "4df30f1d-d06e-44fd-89be-da2aab6c54e7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001532Z:4df30f1d-d06e-44fd-89be-da2aab6c54e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cf2539f3-3fab-42a5-ad11-f4c4affda0d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "78bdcecb-af97-42ad-ac3e-eb84e33a3bb6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001547Z:78bdcecb-af97-42ad-ac3e-eb84e33a3bb6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b415778d-8202-4913-9d7c-9c0895eb8101" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "37a522f6-3c23-4075-a6d4-4a1df6a19c0a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001603Z:37a522f6-3c23-4075-a6d4-4a1df6a19c0a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0bd5dc09-a22c-4f32-bbc3-3e42768333f8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "4286667e-2b14-42e5-89ba-2089c98af9fa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001618Z:4286667e-2b14-42e5-89ba-2089c98af9fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fd2710fe-d746-45af-8680-45f3a610449e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "8d7d76e0-3589-4697-a98f-2ad0f1cfca7a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001633Z:8d7d76e0-3589-4697-a98f-2ad0f1cfca7a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e9664edb-724c-43e7-9087-43f917c86714" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "4deb2892-309f-44f2-9947-5b09bb2d93ba" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001648Z:4deb2892-309f-44f2-9947-5b09bb2d93ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "427bf128-b4d0-45e2-b407-930bc2537493" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "5db1c516-bdd2-4eb3-ac4d-7621fb0adfb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001703Z:5db1c516-bdd2-4eb3-ac4d-7621fb0adfb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ac80dbb8-571c-4fd5-87f2-181239f3ae95" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "f5df8609-1293-422b-bf7a-8d5eb057c6d6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001703Z:f5df8609-1293-422b-bf7a-8d5eb057c6d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "41d66447-b2e3-4557-b512-04174b3a4dae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9075f28c-d571-49be-b6c6-fce04d831d98" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "b81d7158-d1e3-40d6-880a-a2b058c0b19a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001704Z:b81d7158-d1e3-40d6-880a-a2b058c0b19a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "372" + ], + "x-ms-client-request-id": [ + "ef2f2000-80f7-41f4-a439-dd085f46c2f3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "528" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "54caba2c-00cc-4b62-8db1-b3c9afd29f06" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "96f61769-cd20-446b-b273-c18e3a196e37" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:96f61769-cd20-446b-b273-c18e3a196e37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1267" + ], + "x-ms-client-request-id": [ + "b27dc7d5-6a73-4745-8298-df9ea54276c7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dfa8832e-00c8-4f07-bfb2-11cfb58cb9fd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "eeb0bc57-2f2f-4156-b157-68cc3486700e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:eeb0bc57-2f2f-4156-b157-68cc3486700e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4c0f37bf-c182-45e0-875a-58cf553d4dd3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9a4d2443-ede5-4e9c-af61-97f2178bd467" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "76e8b7fd-7a17-4a86-a902-d761672469f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:76e8b7fd-7a17-4a86-a902-d761672469f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "08734c9e-0222-4c86-a44d-b58c43c308b1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "008937e5-7b15-4860-9b32-6b1e9223c076" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "361d1c76-8d23-4192-9a46-69a4ec1e7599" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:361d1c76-8d23-4192-9a46-69a4ec1e7599" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "73d9f911-4de0-4c5d-860f-b4a1c8a0d382" + ], + "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": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY0NDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "673ae7bd-d2cd-4a39-a352-58bf311e3e36" + ], + "x-ms-correlation-request-id": [ + "673ae7bd-d2cd-4a39-a352-58bf311e3e36" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001706Z:673ae7bd-d2cd-4a39-a352-58bf311e3e36" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21c58d8d-ffe6-4306-a52f-337931f98608" + ], + "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": [ + "Tue, 22 May 2018 00:17:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY0NDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "8063163b-8d2f-4507-9900-ac1ad4ad0c49" + ], + "x-ms-correlation-request-id": [ + "8063163b-8d2f-4507-9900-ac1ad4ad0c49" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001706Z:8063163b-8d2f-4507-9900-ac1ad4ad0c49" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-6442" + ], + "CreateServer": [ + "sqlcrudtest-9242" + ], + "TestCreateUpdateDropTargetGroup": [ + "sqlcrudtest-1600" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json new file mode 100644 index 0000000000000..1c120e8d5ffbf --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json @@ -0,0 +1,2494 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7377?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczNzc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7377\": \"2018-05-22 00:33:21Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "7c8bf852-097c-434a-b673-036e968d4953" + ], + "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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377\",\r\n \"name\": \"sqlcrudtest-7377\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7377\": \"2018-05-22 00:33:21Z\"\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": [ + "Tue, 22 May 2018 00:33:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "16a8f6b0-4364-4186-8607-bd6d7fdf2a26" + ], + "x-ms-correlation-request-id": [ + "16a8f6b0-4364-4186-8607-bd6d7fdf2a26" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003321Z:16a8f6b0-4364-4186-8607-bd6d7fdf2a26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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": [ + "1ed59394-7dcd-4ba6-8107-ce36b2ee2a9c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "72" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverOperationResults/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "8bbc1442-3ae8-46b4-9dae-c11131a11527" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "a44b56db-da0d-4417-be70-f0a1254a6e55" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003323Z:a44b56db-da0d-4417-be70-f0a1254a6e55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84YmJjMTQ0Mi0zYWU4LTQ2YjQtOWRhZS1jMTExMzFhMTE1Mjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8bbc1442-3ae8-46b4-9dae-c11131a11527\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "967c93e1-96d5-44be-8569-7af00ba4609b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "22de71ac-a091-4749-89fd-cfb580aaa417" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003333Z:22de71ac-a091-4749-89fd-cfb580aaa417" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84YmJjMTQ0Mi0zYWU4LTQ2YjQtOWRhZS1jMTExMzFhMTE1Mjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8bbc1442-3ae8-46b4-9dae-c11131a11527\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6db805b5-d335-4623-8c1d-0a9a28f088b0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "1043744c-5016-46f5-ac31-70de54a07a58" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003353Z:1043744c-5016-46f5-ac31-70de54a07a58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84YmJjMTQ0Mi0zYWU4LTQ2YjQtOWRhZS1jMTExMzFhMTE1Mjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8bbc1442-3ae8-46b4-9dae-c11131a11527\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a9d526c8-f589-4172-aaa8-2c13e28093f5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "a105b1dc-60d4-4778-b25a-26a8234bcfaf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003413Z:a105b1dc-60d4-4778-b25a-26a8234bcfaf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-5662.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662\",\r\n \"name\": \"sqlcrudtest-5662\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69b50457-1e3d-44bf-baca-060f57f3d2c1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "52460474-11a7-4154-864b-b268f74d93b5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003414Z:52460474-11a7-4154-864b-b268f74d93b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/firewallRules/allowAll?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ], + "x-ms-client-request-id": [ + "fe650a91-c2c3-4218-b8b0-7d9d6476049b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "340" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:15 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bf005538-12ae-4f00-9bc1-2d077641aeea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "b6b99950-fe38-4581-8a65-2f34aed90a30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003415Z:b6b99950-fe38-4581-8a65-2f34aed90a30" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03Mjk/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": [ + "75ae504e-5dce-4ebe-b0bd-72d9f7493243" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "2efa3ba5-9356-437d-bc4e-cb6b486163cd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "818ee8f2-e58b-48eb-9cca-f4691a586455" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003415Z:818ee8f2-e58b-48eb-9cca-f4691a586455" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjNjY0ZGYzLTUwYjMtNDE2ZC04ZGI5LTAxOTMwMDcwZDA1Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc664df3-50b3-416d-8db9-01930070d05c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9cabb080-330b-4158-82f1-436fa1a8e16c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "bd70e80f-a16a-4902-9e97-93dc94e900a6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003430Z:bd70e80f-a16a-4902-9e97-93dc94e900a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjNjY0ZGYzLTUwYjMtNDE2ZC04ZGI5LTAxOTMwMDcwZDA1Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc664df3-50b3-416d-8db9-01930070d05c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e892acb1-359d-4573-9f97-591d227e72e3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "2fbda759-1ca9-4471-85bc-1c87521dfcdd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003445Z:2fbda759-1ca9-4471-85bc-1c87521dfcdd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjNjY0ZGYzLTUwYjMtNDE2ZC04ZGI5LTAxOTMwMDcwZDA1Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc664df3-50b3-416d-8db9-01930070d05c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "aad871f7-6ee8-40fb-9285-3a7222186ab1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "97e483b1-65bc-4f66-8a9b-ec627018b9d1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003501Z:97e483b1-65bc-4f66-8a9b-ec627018b9d1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03Mjk/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"94515d9c-1689-49ff-af72-488495afb2f6\",\r\n \"creationDate\": \"2018-05-22T00:34:15.87Z\",\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-22T01:04:56.73Z\",\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/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729\",\r\n \"name\": \"sqlcrudtest-729\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9ed3effa-e586-4d09-883b-0aaf74a9fd1d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "2b2a2ced-cc91-4237-99c7-44860233f8e9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003501Z:2b2a2ced-cc91-4237-99c7-44860233f8e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "234" + ], + "x-ms-client-request-id": [ + "defb189d-da07-4b90-b086-eba6ae405aca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "3a090485-be0f-4cc3-a2d3-0a227156ae05" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "524266eb-e3c9-4276-a684-796b29deb3db" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003502Z:524266eb-e3c9-4276-a684-796b29deb3db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dff3e84f-80c4-4225-9ea6-ebadd9ec660e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "9046d73d-6cf2-429c-b828-ea9373f06a31" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003517Z:9046d73d-6cf2-429c-b828-ea9373f06a31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ead36652-1878-401a-91fc-4870f22536a9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "42304577-300d-40f2-a57d-cfa062fa6242" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003532Z:42304577-300d-40f2-a57d-cfa062fa6242" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fb6610f2-800a-4783-89c3-3e33a3a14196" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "04ff2b90-34cf-49d8-830c-a69f7609b8e4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003547Z:04ff2b90-34cf-49d8-830c-a69f7609b8e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d7506840-d118-41a4-85f0-25ac20ecd566" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "dfba90ec-807b-43d8-bcf5-ddc2f1e2de10" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003602Z:dfba90ec-807b-43d8-bcf5-ddc2f1e2de10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "83ae62a0-8957-4ac0-a0ed-18953de749f4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "6dbba3c6-9458-4802-b367-5077d1ab6580" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003617Z:6dbba3c6-9458-4802-b367-5077d1ab6580" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fcf9ba7b-d8f7-49bc-bb9e-e684908c1da2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "94ffd1de-d273-4a2d-aab7-c70757c7107f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003632Z:94ffd1de-d273-4a2d-aab7-c70757c7107f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9d0c9cc-e0a0-48c0-98d1-680bc14320d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "267cf64e-5f2d-4222-af61-84d5eda6ae8c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003647Z:267cf64e-5f2d-4222-af61-84d5eda6ae8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c89fe905-d4ef-481e-9bda-ed6df4f2734d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "b0818d51-49de-448a-baa5-a16e07de40e9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003702Z:b0818d51-49de-448a-baa5-a16e07de40e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f92d5d44-703a-42e7-884c-b2ea3b035113" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "7280fa62-74a6-4a01-b70d-c200eddb19f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003702Z:7280fa62-74a6-4a01-b70d-c200eddb19f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "7f210512-2af2-4c03-9c7c-d44b553cf79a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "14412671-b59d-465c-8f4f-5c3c8fe9c083" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "c6605456-db41-4c55-87ac-9ba4256601e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003703Z:c6605456-db41-4c55-87ac-9ba4256601e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "227" + ], + "x-ms-client-request-id": [ + "d9b837e3-f576-4ef9-8d13-e21fefddf782" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "383" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "11082cf7-8188-47a0-afa7-24fb4bfc3b87" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "51acb1a1-e423-4082-800d-a89bd4e5f4dd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003703Z:51acb1a1-e423-4082-800d-a89bd4e5f4dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "3c11fc28-704d-4472-963b-7bf3494e1940" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "397" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b355c421-711a-4253-b0e2-ac0e159158af" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "9f89d164-e4c2-4479-92a5-c26f3c11e86a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003704Z:9f89d164-e4c2-4479-92a5-c26f3c11e86a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "462" + ], + "x-ms-client-request-id": [ + "ee01b7f2-03b5-4d0c-9c27-c9dcd26ca4c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "869" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ded1c1a1-f056-4052-9b43-5bacec451707" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "13969d54-9c57-4440-ae63-1d182e870437" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003705Z:13969d54-9c57-4440-ae63-1d182e870437" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0fc81433-2c4a-4b2d-ba92-9dd37613d576" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d8e50032-eea8-4b1a-a049-a34b051d6968" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "f11a7da3-0162-4b8d-9b4f-cf460a8fcbe2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003705Z:f11a7da3-0162-4b8d-9b4f-cf460a8fcbe2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "76ea196f-c766-4caf-b585-9e52a7bfd9fe" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "a2228e9d-526d-4d1d-859c-8a1a58da6ce3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003735Z:a2228e9d-526d-4d1d-859c-8a1a58da6ce3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "17490c54-99ca-4a2f-963b-81efffa2bd47" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e0ea31da-bb87-4097-9795-704ef70570d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "65d9456d-16bf-41b0-95b5-e50e10294362" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:65d9456d-16bf-41b0-95b5-e50e10294362" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae889430-870e-4c47-a34e-037dca9905cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-22T00:37:08.575142Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.1065763Z\",\r\n \"endTime\": \"2018-05-22T00:37:24.6210857Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"name\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "86fe44d7-140f-4a1c-8a41-580e5acf36e7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "a39cc03f-13f9-4c5a-aff9-f9c394cc5a05" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:a39cc03f-13f9-4c5a-aff9-f9c394cc5a05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e46d0ece-42eb-469a-9984-ba10b351070e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-22T00:37:08.575142Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.1065763Z\",\r\n \"endTime\": \"2018-05-22T00:37:24.6210857Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"name\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "38c73067-f73f-423b-8da4-ad9cbc867518" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "0470d0e6-b1dd-4fe4-a21b-64570ad0ef02" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:0470d0e6-b1dd-4fe4-a21b-64570ad0ef02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "374b35bf-5e38-4864-95e9-750d87ed677a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.0909488Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.5497743Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:19.418905Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3ad96342-38c0-4a48-989d-842402131495" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "b56d1cab-7963-40fc-89ad-5ef41e9f8bb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:b56d1cab-7963-40fc-89ad-5ef41e9f8bb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "62fadd18-d61a-441b-8d58-2011857a2952" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.0909488Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.5497743Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:19.418905Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2f56244b-d271-4b6d-be2d-c57667d6eaad" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "805361b9-bae7-4d3c-9378-541dc7240968" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:805361b9-bae7-4d3c-9378-541dc7240968" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "28224b59-8f36-4ae2-9a95-4b19606470fc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:20.4666667Z\",\r\n \"startTime\": \"2018-05-22T00:37:21.7157639Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.254897Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:21.747049Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-5662', database 'sqlcrudtest-729').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"name\": \"d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4052c751-172b-4063-a287-55b0f920608a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "a3fa9755-e90c-48ba-8755-c5b00687cbae" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003737Z:a3fa9755-e90c-48ba-8755-c5b00687cbae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7073068b-abf1-4b63-923a-aa94d5f134d2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:20.4666667Z\",\r\n \"startTime\": \"2018-05-22T00:37:21.7157639Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.254897Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:21.747049Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-5662', database 'sqlcrudtest-729').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"name\": \"d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "70b68dcb-3b89-47e9-97d6-51cc375cfe39" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "76c8bb6e-6dcb-406c-b70c-11380694b92f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003737Z:76c8bb6e-6dcb-406c-b70c-11380694b92f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHMvc3RlcDEvdGFyZ2V0cy9kMjE0ZjdhZS02MzUzLTQ0ZjEtOTJjZS1hNTBiMTE0ZjZlZWQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b002124d-5b50-4f19-a3a1-1e6471db9b1e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:20.4666667Z\",\r\n \"startTime\": \"2018-05-22T00:37:21.7157639Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.254897Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:21.747049Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-5662', database 'sqlcrudtest-729').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"name\": \"d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f67df1d5-0ddd-4259-b3cf-51f71d979065" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "7525fa81-6d03-4263-ae5c-e38aae575ea1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003737Z:7525fa81-6d03-4263-ae5c-e38aae575ea1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/cancel?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d21c8b7-c72e-43cb-bcd2-84ed1557aa28" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2c06f114-7be3-4694-be73-facdecf33419" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "ba9c0c90-e44d-42ba-8ec6-47562440cbc3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003738Z:ba9c0c90-e44d-42ba-8ec6-47562440cbc3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7377?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczNzc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dbe89ac1-6665-4350-a7f2-1729ad6b3990" + ], + "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": [ + "Tue, 22 May 2018 00:37:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczNzctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "520ec097-a6a1-46f3-a0bb-bd5760e0746e" + ], + "x-ms-correlation-request-id": [ + "520ec097-a6a1-46f3-a0bb-bd5760e0746e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003738Z:520ec097-a6a1-46f3-a0bb-bd5760e0746e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7377?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczNzc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e3ee19a7-7373-4dae-ba2b-b2b0ef6a9307" + ], + "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": [ + "Tue, 22 May 2018 00:37:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczNzctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "b392bc4b-de0b-4be0-9ca5-4183579ab29a" + ], + "x-ms-correlation-request-id": [ + "b392bc4b-de0b-4be0-9ca5-4183579ab29a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003738Z:b392bc4b-de0b-4be0-9ca5-4183579ab29a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-7377" + ], + "CreateServer": [ + "sqlcrudtest-5662" + ], + "TestStartStopGetJobExecution": [ + "sqlcrudtest-729" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file From 69a5077e91b1cb204838e61a9caf7c58facd074d Mon Sep 17 00:00:00 2001 From: yaakoviyun Date: Tue, 22 May 2018 09:38:53 +0300 Subject: [PATCH 20/26] Bumping to verion 1.16.0.0 --- .../SqlManagement/Management.Sql/Properties/AssemblyInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs index fe4eb9a8d972b..4ca51c764872a 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")] From a9ce0a0d1b74ddf94e2c8ffeb9fddd0ddbdeab6a Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Tue, 22 May 2018 10:11:27 -0700 Subject: [PATCH 21/26] Fix and rerecord STR tests --- .../Sql.Tests/DatabaseRestoreScenarioTests.cs | 18 +- .../TestShortTermRetentionPolicyOnBasic.json | 498 ++++++++------- ...TestShortTermRetentionPolicyOnPremium.json | 578 +++++++++++------- 3 files changed, 655 insertions(+), 439 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs index e737641ed902c..3583477ed2405 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs @@ -231,7 +231,13 @@ public void TestShortTermRetentionPolicyOnPremium() ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); SqlManagementClient sqlClient = context.GetClient(); - Database database = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), new Database { Location = server.Location, Edition = DatabaseEdition.Premium }); + Database database = sqlClient.Databases.CreateOrUpdate( + resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), + new Database + { + Location = server.Location, + Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.P1) + }); // Decrease retention period to 8 days and verfiy that it was updated. ShortTermRetentionPolicy parameters = new ShortTermRetentionPolicy(retentionDays: 8); @@ -260,7 +266,13 @@ public void TestShortTermRetentionPolicyOnBasic() ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); SqlManagementClient sqlClient = context.GetClient(); - Database database = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), new Database { Location = server.Location, Edition = DatabaseEdition.Basic }); + Database database = sqlClient.Databases.CreateOrUpdate( + resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), + new Database + { + Location = server.Location, + Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.Basic) + }); // Attempt to increase retention period to 8 days and verfiy that the operation fails. ShortTermRetentionPolicy parameters = new ShortTermRetentionPolicy(retentionDays: 8); @@ -378,7 +390,7 @@ public void TestDatabaseGeoRecovery() SqlManagementClient sqlClient = context.GetClient(); // List geo recoverable database backups - IEnumerable recoverableDatabases = + IEnumerable recoverableDatabases = sqlClient.RecoverableDatabases.ListByServer(resourceGroupName, serverName); Assert.True(recoverableDatabases.Any(), "No recoverable databases found."); diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json index 7884f397d3ef7..246a9636ebb94 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnBasic.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-617?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYxNz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-2354?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-617\": \"2018-04-25 19:18:11Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"north central us\",\r\n \"tags\": {\r\n \"sqlcrudtest-2354\": \"2018-05-22 17:08:17Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "103" + "105" ], "x-ms-client-request-id": [ - "ca2e6a18-4693-4e0b-90db-95a0d0f54cf8" + "fe733bb5-9d73-4da3-8615-85e2822662b5" ], "accept-language": [ "en-US" @@ -23,10 +23,10 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617\",\r\n \"name\": \"sqlcrudtest-617\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-617\": \"2018-04-25 19:18:11Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354\",\r\n \"name\": \"sqlcrudtest-2354\",\r\n \"location\": \"northcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-2354\": \"2018-05-22 17:08:17Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "240" + "244" ], "Content-Type": [ "application/json; charset=utf-8" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:18:12 GMT" + "Tue, 22 May 2018 17:08:19 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "72ea2dad-2e38-40f4-9242-1851f1516554" + "60f0ab85-744f-4877-acc6-20e061936bde" ], "x-ms-correlation-request-id": [ - "72ea2dad-2e38-40f4-9242-1851f1516554" + "60f0ab85-744f-4877-acc6-20e061936bde" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191812Z:72ea2dad-2e38-40f4-9242-1851f1516554" + "WESTUS2:20180522T170819Z:60f0ab85-744f-4877-acc6-20e061936bde" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,32 +65,32 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NDAxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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 Central US\"\r\n}", + "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\": \"north central us\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "189" + "190" ], "x-ms-client-request-id": [ - "7e7783d2-1fbb-4f18-a84a-bea3ef0a22c6" + "94c22b90-4eb5-465c-9979-77843e58a303" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T17:08:21.21Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:18:15 GMT" + "Tue, 22 May 2018 17:08:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/serverOperationResults/187368d7-9c01-42f7-8634-7a80cc67e44b?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/187368d7-9c01-42f7-8634-7a80cc67e44b?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0" + "187368d7-9c01-42f7-8634-7a80cc67e44b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "d4c301ff-69ae-4323-adad-f89626fcc638" + "d61116ce-c4e6-45da-9462-212dcc623e50" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191815Z:d4c301ff-69ae-4323-adad-f89626fcc638" + "WESTUS2:20180522T170821Z:d61116ce-c4e6-45da-9462-212dcc623e50" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/187368d7-9c01-42f7-8634-7a80cc67e44b?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vMTg3MzY4ZDctOWMwMS00MmY3LTg2MzQtN2E4MGNjNjdlNDRiP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"187368d7-9c01-42f7-8634-7a80cc67e44b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:08:21.21Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:18:25 GMT" + "Tue, 22 May 2018 17:08:30 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "74097c7c-5b1b-4a7e-b78a-8487ab5144ac" + "41d8cba5-19e2-495d-8a55-71fed69825a5" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "06b79594-c3f2-4c9d-9d6d-369e0cda4a4f" + "ef5f5e86-b20c-42cf-931f-2d12db936f40" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191825Z:06b79594-c3f2-4c9d-9d6d-369e0cda4a4f" + "WESTUS2:20180522T170831Z:ef5f5e86-b20c-42cf-931f-2d12db936f40" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/187368d7-9c01-42f7-8634-7a80cc67e44b?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vMTg3MzY4ZDctOWMwMS00MmY3LTg2MzQtN2E4MGNjNjdlNDRiP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"187368d7-9c01-42f7-8634-7a80cc67e44b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:08:21.21Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:18:44 GMT" + "Tue, 22 May 2018 17:08:51 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "53a26c79-7d46-4a85-92b6-42f16b3e64ae" + "e491f2ca-b920-45f4-936a-dd501f7380c6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "ca773b4f-c034-46dd-8a14-5c8f36ae9d48" + "c6815f0e-d412-4536-a574-c29bf6901c70" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191845Z:ca773b4f-c034-46dd-8a14-5c8f36ae9d48" + "WESTUS2:20180522T170851Z:c6815f0e-d412-4536-a574-c29bf6901c70" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/187368d7-9c01-42f7-8634-7a80cc67e44b?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vMTg3MzY4ZDctOWMwMS00MmY3LTg2MzQtN2E4MGNjNjdlNDRiP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"187368d7-9c01-42f7-8634-7a80cc67e44b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T17:08:21.21Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:19:05 GMT" + "Tue, 22 May 2018 17:09:11 GMT" ], "Pragma": [ "no-cache" @@ -294,7 +294,7 @@ "chunked" ], "Retry-After": [ - "20" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d6cc448d-6e5d-45a9-823e-522ca59b26e7" + "c18abb3f-d8a6-4218-bdd9-1894dd2250c3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "867a8993-0cd4-4865-ac4e-577f38bf6caa" + "7a3b46da-a5b6-4052-a23a-bd38daf2a28b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191905Z:867a8993-0cd4-4865-ac4e-577f38bf6caa" + "WESTUS2:20180522T170911Z:7a3b46da-a5b6-4052-a23a-bd38daf2a28b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzgyZDhkNGEyLTM4ZmQtNGI2Yy04NGYzLTdkNTg4M2RkMTlmMD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NDAxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"82d8d4a2-38fd-4b6c-84f3-7d5883dd19f0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-25T19:18:15.463Z\"\r\n}", + "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-9401.database.windows.net\"\r\n },\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401\",\r\n \"name\": \"sqlcrudtest-9401\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:19:25 GMT" + "Tue, 22 May 2018 17:09:11 GMT" ], "Pragma": [ "no-cache" @@ -354,9 +354,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -364,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0c7026e6-dd3a-49a2-b466-fcd7d9e170e6" + "4d34b323-f473-4c97-858a-2a94a4fa20aa" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "f15b96b6-b869-47ef-9581-45d4c6f5e242" + "233dd418-0917-44ff-8657-a84bdeefde59" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191925Z:f15b96b6-b869-47ef-9581-45d4c6f5e242" + "WESTUS2:20180522T170912Z:233dd418-0917-44ff-8657-a84bdeefde59" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -385,17 +382,93 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401/databases/sqlcrudtest-1410?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NDAxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDEwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"location\": \"northcentralus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "75" + ], + "x-ms-client-request-id": [ + "288d6acb-7793-49a1-a42e-0131e81be134" + ], + "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-22T17:09:13.073Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 17:09:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/databaseOperationResults/682e0d0d-a771-42cf-aef3-a7b667d33153?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/682e0d0d-a771-42cf-aef3-a7b667d33153?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "ec91c564-f608-4877-ae33-2247f96c4382" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "52b51965-cacd-49ef-9045-03045243b28e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T170913Z:52b51965-cacd-49ef-9045-03045243b28e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/682e0d0d-a771-42cf-aef3-a7b667d33153?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82ODJlMGQwZC1hNzcxLTQyY2YtYWVmMy1hN2I2NjdkMzMxNTM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "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-1017.database.windows.net\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017\",\r\n \"name\": \"sqlcrudtest-1017\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"682e0d0d-a771-42cf-aef3-a7b667d33153\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:09:13.073Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -407,7 +480,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:19:25 GMT" + "Tue, 22 May 2018 17:09:27 GMT" ], "Pragma": [ "no-cache" @@ -415,6 +488,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -422,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d6fb6acc-f909-4090-b9cb-596e10e90ff2" + "2957c5a9-b48b-44af-bbb3-876da128f218" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "408e9af1-140e-45ed-bf90-d4d300015dc5" + "543429ad-724e-4529-a908-498ccc6113f4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191926Z:408e9af1-140e-45ed-bf90-d4d300015dc5" + "WESTUS2:20180522T170928Z:543429ad-724e-4529-a908-498ccc6113f4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -443,106 +519,100 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzU/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"edition\": \"Basic\"\r\n },\r\n \"location\": \"westcentralus\"\r\n}", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/682e0d0d-a771-42cf-aef3-a7b667d33153?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82ODJlMGQwZC1hNzcxLTQyY2YtYWVmMy1hN2I2NjdkMzMxNTM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "84" - ], - "x-ms-client-request-id": [ - "50f6aa05-6714-4081-8a55-949bfd208b89" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T12:19:26.813-07:00\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"682e0d0d-a771-42cf-aef3-a7b667d33153\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:09:13.073Z\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "80" - ], "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:19:26 GMT" + "Tue, 22 May 2018 17:09:43 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/operationResults/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], + "Vary": [ + "Accept-Encoding" + ], "x-ms-request-id": [ - "4ec63782-f5ea-44c6-9b42-499ad6f97efc" + "47ec8120-af23-4fc7-9c32-4edb0ffebd71" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" ], - "Preference-Applied": [ - "return-content" + "x-ms-correlation-request-id": [ + "c8a6d316-b644-46b0-bf16-e6ea43796f25" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-routing-request-id": [ + "WESTUS2:20180522T170943Z:c8a6d316-b644-46b0-bf16-e6ea43796f25" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "985c4d05-9b4e-472c-bc35-d97377bd27cf" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180425T191926Z:985c4d05-9b4e-472c-bc35-d97377bd27cf" + "X-Content-Type-Options": [ + "nosniff" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYXp1cmVBc3luY09wZXJhdGlvbi80ZWM2Mzc4Mi1mNWVhLTQ0YzYtOWI0Mi00OTlhZDZmOTdlZmM/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/682e0d0d-a771-42cf-aef3-a7b667d33153?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82ODJlMGQwZC1hNzcxLTQyY2YtYWVmMy1hN2I2NjdkMzMxNTM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operationId\": \"4ec63782-f5ea-44c6-9b42-499ad6f97efc\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseBody": "{\r\n \"name\": \"682e0d0d-a771-42cf-aef3-a7b667d33153\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:09:13.073Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:19:56 GMT" + "Tue, 22 May 2018 17:09:58 GMT" + ], + "Pragma": [ + "no-cache" ], "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -550,57 +620,60 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "40ee2f07-69ac-4b37-8734-c0258c34ae9d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" + "57e58d78-08e5-4536-aa4b-1302278e3af6" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14993" ], "x-ms-correlation-request-id": [ - "0a80925e-57af-40c0-9088-84b824ad8ebd" + "f77b1c1e-1146-47f7-a858-c970551d54e2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191956Z:0a80925e-57af-40c0-9088-84b824ad8ebd" + "WESTUS2:20180522T170958Z:f77b1c1e-1146-47f7-a858-c970551d54e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYXp1cmVBc3luY09wZXJhdGlvbi80ZWM2Mzc4Mi1mNWVhLTQ0YzYtOWI0Mi00OTlhZDZmOTdlZmM/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1QcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/682e0d0d-a771-42cf-aef3-a7b667d33153?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82ODJlMGQwZC1hNzcxLTQyY2YtYWVmMy1hN2I2NjdkMzMxNTM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operationId\": \"4ec63782-f5ea-44c6-9b42-499ad6f97efc\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseBody": "{\r\n \"name\": \"682e0d0d-a771-42cf-aef3-a7b667d33153\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T17:09:13.073Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:20:26 GMT" + "Tue, 22 May 2018 17:10:13 GMT" + ], + "Pragma": [ + "no-cache" ], "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -608,53 +681,53 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "dff3d9e2-c5ff-4361-b3c8-929d8b6427da" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/azureAsyncOperation/4ec63782-f5ea-44c6-9b42-499ad6f97efc?api-version=2014-04-01-Preview" + "553d2462-59e4-41d5-ac74-94fe0517a909" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14992" ], "x-ms-correlation-request-id": [ - "042284da-60b7-4f20-9d3d-ca2ed0fb5133" + "b60cf8cb-c30a-44eb-a103-781aea9dee8f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T192027Z:042284da-60b7-4f20-9d3d-ca2ed0fb5133" + "WESTUS2:20180522T171013Z:b60cf8cb-c30a-44eb-a103-781aea9dee8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzU/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401/databases/sqlcrudtest-1410?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NDAxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDEwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175\",\r\n \"name\": \"sqlcrudtest-7175\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0,user\",\r\n \"managedBy\": null,\r\n \"properties\": {\r\n \"databaseId\": \"48b69277-55f4-4149-b6a9-a41dce354962\",\r\n \"edition\": \"Basic\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"Basic\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"creationDate\": \"2018-04-25T19:19:27.017Z\",\r\n \"currentServiceObjectiveId\": \"dd6d99bb-f193-4ec1-86f2-43d3bccbc49c\",\r\n \"requestedServiceObjectiveId\": \"dd6d99bb-f193-4ec1-86f2-43d3bccbc49c\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"West US 2\",\r\n \"earliestRestoreDate\": \"2018-04-25T19:50:02.533Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null,\r\n \"zoneRedundant\": false,\r\n \"isUpgradeRequested\": false\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"93938abb-a514-4532-b9d1-d3d4c774617a\",\r\n \"creationDate\": \"2018-05-22T17:09:13.383Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"South Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T17:39:59.013Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n }\r\n },\r\n \"location\": \"northcentralus\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401/databases/sqlcrudtest-1410\",\r\n \"name\": \"sqlcrudtest-1410\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:20:26 GMT" + "Tue, 22 May 2018 17:10:13 GMT" + ], + "Pragma": [ + "no-cache" ], "Transfer-Encoding": [ "chunked" @@ -666,47 +739,44 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4e38ec7d-5a93-4394-aaae-a3dcf17711bd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "781ad651-8924-4444-bafe-5247b4f7b9dc" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14991" ], "x-ms-correlation-request-id": [ - "1ae7df13-e636-45c0-9132-f3c4214a0876" + "ba6bff32-a246-4ace-b117-ec74cbff6baa" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T192027Z:1ae7df13-e636-45c0-9132-f3c4214a0876" + "WESTUS2:20180522T171014Z:ba6bff32-a246-4ace-b117-ec74cbff6baa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401/databases/sqlcrudtest-1410/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NDAxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDEwL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ca4dae1c-c31d-4d89-8642-59ce36980290" + "8a68d59d-c440-47e3-84ce-6458fa8fb110" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401/databases/sqlcrudtest-1410/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -718,7 +788,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:20:29 GMT" + "Tue, 22 May 2018 17:10:17 GMT" ], "Pragma": [ "no-cache" @@ -733,16 +803,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a275bec8-fb5a-4ff9-8c08-0ff055c5b26a" + "19992745-9d5a-4a34-beb9-8940d27ef18e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "8a047945-fe3d-43b7-b709-7b143d45cfb9" + "08add996-a9ff-4343-9da0-3c9401afc701" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T192030Z:8a047945-fe3d-43b7-b709-7b143d45cfb9" + "WESTUS2:20180522T171017Z:08add996-a9ff-4343-9da0-3c9401afc701" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -754,23 +824,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYxNy9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTEwMTcvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTcxNzUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401/databases/sqlcrudtest-1410/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NDAxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDEwL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "642b8f18-d180-4964-92b5-7b388b558b98" + "e5e3bcde-fa89-43e5-8878-331dab59d67b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-617/providers/Microsoft.Sql/servers/sqlcrudtest-1017/databases/sqlcrudtest-7175/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2354/providers/Microsoft.Sql/servers/sqlcrudtest-9401/databases/sqlcrudtest-1410/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -782,7 +852,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:20:33 GMT" + "Tue, 22 May 2018 17:10:20 GMT" ], "Pragma": [ "no-cache" @@ -797,16 +867,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "20d528ff-ee7c-4014-9aae-cbea1008aa9f" + "4cf18ac2-46eb-4861-85ef-b3a2080404d4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "2dbf0a63-8345-41a5-80b1-c824a2288835" + "10319c55-1811-4953-b3b9-e9fcb1e99019" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T192033Z:2dbf0a63-8345-41a5-80b1-c824a2288835" + "WESTUS2:20180522T171021Z:10319c55-1811-4953-b3b9-e9fcb1e99019" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -818,13 +888,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-617?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYxNz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-2354?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIzNTQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6d3b21eb-c676-4f7f-b812-fff5826cf35f" + "949d987c-9db8-4f25-93f1-c16ea7897c89" ], "accept-language": [ "en-US" @@ -846,28 +916,28 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:20:34 GMT" + "Tue, 22 May 2018 17:10:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYxNy1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDIzNTQtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" ], "x-ms-request-id": [ - "b1d8fd0c-81d1-470f-93ea-34b7810e79ad" + "d3bc0d73-b200-4b3d-8431-d7a7d75cb1da" ], "x-ms-correlation-request-id": [ - "b1d8fd0c-81d1-470f-93ea-34b7810e79ad" + "d3bc0d73-b200-4b3d-8431-d7a7d75cb1da" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T192034Z:b1d8fd0c-81d1-470f-93ea-34b7810e79ad" + "WESTUS2:20180522T171023Z:d3bc0d73-b200-4b3d-8431-d7a7d75cb1da" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -881,17 +951,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-617" + "sqlcrudtest-2354" ], "CreateServer": [ - "sqlcrudtest-1017" + "sqlcrudtest-9401" ], "TestShortTermRetentionPolicyOnBasic": [ - "sqlcrudtest-7175" + "sqlcrudtest-1410" ] }, "Variables": { - "SubscriptionId": "a8f5abd6-ccbc-4801-89e3-cfc7219946ba", - "DefaultLocation": "West Central US" + "DefaultLocation": "north central us", + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" } } \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json index 4db616b259d8f..5a2ddc4935425 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseRestoreScenarioTests/TestShortTermRetentionPolicyOnPremium.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-8792?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3OTI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-2568?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTI1Njg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-8792\": \"2018-04-25 19:11:28Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"north central us\",\r\n \"tags\": {\r\n \"sqlcrudtest-2568\": \"2018-05-22 17:05:56Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "104" + "105" ], "x-ms-client-request-id": [ - "fd9114bb-ce6c-48e2-8f55-26f9cd45f337" + "d90e2b75-bec3-486b-a7a1-5809aeb33018" ], "accept-language": [ "en-US" @@ -23,10 +23,10 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792\",\r\n \"name\": \"sqlcrudtest-8792\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8792\": \"2018-04-25 19:11:28Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568\",\r\n \"name\": \"sqlcrudtest-2568\",\r\n \"location\": \"northcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-2568\": \"2018-05-22 17:05:56Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "243" + "244" ], "Content-Type": [ "application/json; charset=utf-8" @@ -38,22 +38,22 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:11:29 GMT" + "Tue, 22 May 2018 17:05:58 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1199" ], "x-ms-request-id": [ - "593b7259-6001-4ea8-96d1-05f07366a5fc" + "edea87b8-7d43-4cea-bd26-e96b92036819" ], "x-ms-correlation-request-id": [ - "593b7259-6001-4ea8-96d1-05f07366a5fc" + "edea87b8-7d43-4cea-bd26-e96b92036819" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191129Z:593b7259-6001-4ea8-96d1-05f07366a5fc" + "WESTUS2:20180522T170558Z:edea87b8-7d43-4cea-bd26-e96b92036819" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,29 +65,29 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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 Central US\"\r\n}", + "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\": \"north central us\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "189" + "190" ], "x-ms-client-request-id": [ - "51185210-4fac-48c5-9528-329dee45eaab" + "cc0de792-2c1d-41c2-889c-540051ded4dc" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T17:06:00.217Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:11:32 GMT" + "Tue, 22 May 2018 17:05:59 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/serverOperationResults/b11643b4-7170-4d1a-bf9c-a05343400a1f?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/b11643b4-7170-4d1a-bf9c-a05343400a1f?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "fb8427d6-3d67-4ea2-826d-788941b7df1a" + "b11643b4-7170-4d1a-bf9c-a05343400a1f" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "4c398139-5c32-43f2-bc93-6d6b5c040ad6" + "026b4490-13e5-4a9c-bb1a-17d0159f1eae" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191132Z:4c398139-5c32-43f2-bc93-6d6b5c040ad6" + "WESTUS2:20180522T170600Z:026b4490-13e5-4a9c-bb1a-17d0159f1eae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYjg0MjdkNi0zZDY3LTRlYTItODI2ZC03ODg5NDFiN2RmMWE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/b11643b4-7170-4d1a-bf9c-a05343400a1f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjExNjQzYjQtNzE3MC00ZDFhLWJmOWMtYTA1MzQzNDAwYTFmP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fb8427d6-3d67-4ea2-826d-788941b7df1a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b11643b4-7170-4d1a-bf9c-a05343400a1f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:06:00.217Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:11:42 GMT" + "Tue, 22 May 2018 17:06:09 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "dd621e5d-8461-41b5-bc2f-2f322b0fd679" + "b055b7eb-4ebd-44fc-9ee1-065aef6b1325" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "746725c4-0202-4729-a2e6-db3e099f73d2" + "ce6a2762-6654-41c9-a27e-c841b6fdf7fd" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191142Z:746725c4-0202-4729-a2e6-db3e099f73d2" + "WESTUS2:20180522T170610Z:ce6a2762-6654-41c9-a27e-c841b6fdf7fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYjg0MjdkNi0zZDY3LTRlYTItODI2ZC03ODg5NDFiN2RmMWE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/b11643b4-7170-4d1a-bf9c-a05343400a1f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjExNjQzYjQtNzE3MC00ZDFhLWJmOWMtYTA1MzQzNDAwYTFmP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fb8427d6-3d67-4ea2-826d-788941b7df1a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b11643b4-7170-4d1a-bf9c-a05343400a1f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:06:00.217Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:12:02 GMT" + "Tue, 22 May 2018 17:06:30 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9fe0e36c-c609-442d-ab5e-2c735d7ce0fc" + "58af4375-3196-4b93-83b4-eec8545827bf" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "a4616e6c-c706-4869-b07c-5159f87f7bf7" + "2daff725-ac99-4179-86f8-854fb1fb3b07" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191202Z:a4616e6c-c706-4869-b07c-5159f87f7bf7" + "WESTUS2:20180522T170630Z:2daff725-ac99-4179-86f8-854fb1fb3b07" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/fb8427d6-3d67-4ea2-826d-788941b7df1a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYjg0MjdkNi0zZDY3LTRlYTItODI2ZC03ODg5NDFiN2RmMWE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/b11643b4-7170-4d1a-bf9c-a05343400a1f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjExNjQzYjQtNzE3MC00ZDFhLWJmOWMtYTA1MzQzNDAwYTFmP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fb8427d6-3d67-4ea2-826d-788941b7df1a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-25T19:11:32.383Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b11643b4-7170-4d1a-bf9c-a05343400a1f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T17:06:00.217Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:12:21 GMT" + "Tue, 22 May 2018 17:06:49 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7e03c146-01f9-4e6d-8a56-8ae66c7b76cf" + "5ae312a3-f43c-4cc3-a077-f894064affaa" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "0ab28889-6144-49a3-a0c2-fe388189b0e2" + "fb20bb46-ba59-4766-bdec-bbc885411fb4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191222Z:0ab28889-6144-49a3-a0c2-fe388189b0e2" + "WESTUS2:20180522T170650Z:fb20bb46-ba59-4766-bdec-bbc885411fb4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "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-7389.database.windows.net\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389\",\r\n \"name\": \"sqlcrudtest-7389\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "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-4090.database.windows.net\"\r\n },\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090\",\r\n \"name\": \"sqlcrudtest-4090\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:12:22 GMT" + "Tue, 22 May 2018 17:06:51 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "72e630bb-f092-4fd4-b079-afe4072095d4" + "4b0affec-f97b-46a4-bd5b-20642aef9dc1" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "0ed37874-99fb-4ce1-8106-e52d5f063b86" + "86e2db8a-e4bf-4af4-ba57-4dd00c836612" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191222Z:0ed37874-99fb-4ce1-8106-e52d5f063b86" + "WESTUS2:20180522T170651Z:86e2db8a-e4bf-4af4-ba57-4dd00c836612" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,106 +382,115 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"edition\": \"Premium\"\r\n },\r\n \"location\": \"westcentralus\"\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"northcentralus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "86" + "72" ], "x-ms-client-request-id": [ - "1a7e53da-eeee-4571-b11f-a34e97a937e1" + "30a13f3f-4628-4131-a246-6fc7bc9cc17c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T12:12:24.255-07:00\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T17:06:52.05Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "80" + "75" ], "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:12:23 GMT" + "Tue, 22 May 2018 17:06:52 GMT" + ], + "Pragma": [ + "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/operationResults/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/databaseOperationResults/6f756b77-8e97-4131-a881-2af4a59a8bf2?api-version=2017-10-01-preview" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-request-id": [ - "da05379b-577c-48ed-b9c5-f3c4ba94912c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Preference-Applied": [ - "return-content" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/6f756b77-8e97-4131-a881-2af4a59a8bf2?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "d2da7011-a15a-4e2b-b302-a8fd527d9b8c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "7209e45b-9b3f-4a03-9a3e-cb2aca173646" + "1fb68d3d-af47-46e7-93e8-5c9782cb2873" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191224Z:7209e45b-9b3f-4a03-9a3e-cb2aca173646" + "WESTUS2:20180522T170652Z:1fb68d3d-af47-46e7-93e8-5c9782cb2873" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 202 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2F6dXJlQXN5bmNPcGVyYXRpb24vZGEwNTM3OWItNTc3Yy00OGVkLWI5YzUtZjNjNGJhOTQ5MTJjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/6f756b77-8e97-4131-a881-2af4a59a8bf2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82Zjc1NmI3Ny04ZTk3LTQxMzEtYTg4MS0yYWY0YTU5YThiZjI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operationId\": \"da05379b-577c-48ed-b9c5-f3c4ba94912c\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseBody": "{\r\n \"name\": \"6f756b77-8e97-4131-a881-2af4a59a8bf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:06:52.05Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:12:54 GMT" + "Tue, 22 May 2018 17:07:06 GMT" + ], + "Pragma": [ + "no-cache" ], "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -489,57 +498,60 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e7c90609-e13c-4584-b2b0-49e53b8d2863" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + "03a76a44-5e74-4f08-b397-2a160f46d4ca" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "ead3989f-d938-4465-b6cb-52f582992492" + "ac2cfdfe-9afb-4535-8f94-7e2bcc1d38a1" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191254Z:ead3989f-d938-4465-b6cb-52f582992492" + "WESTUS2:20180522T170707Z:ac2cfdfe-9afb-4535-8f94-7e2bcc1d38a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2F6dXJlQXN5bmNPcGVyYXRpb24vZGEwNTM3OWItNTc3Yy00OGVkLWI5YzUtZjNjNGJhOTQ5MTJjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/6f756b77-8e97-4131-a881-2af4a59a8bf2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82Zjc1NmI3Ny04ZTk3LTQxMzEtYTg4MS0yYWY0YTU5YThiZjI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operationId\": \"da05379b-577c-48ed-b9c5-f3c4ba94912c\",\r\n \"status\": \"InProgress\",\r\n \"error\": null\r\n}", + "ResponseBody": "{\r\n \"name\": \"6f756b77-8e97-4131-a881-2af4a59a8bf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:06:52.05Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:13:24 GMT" + "Tue, 22 May 2018 17:07:21 GMT" + ], + "Pragma": [ + "no-cache" ], "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -547,57 +559,60 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4fada2d6-bb3b-4b48-82b4-88134434008c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + "6809c340-f568-4a9a-a2bb-c3ca07126210" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "3313553a-d0be-49fd-917b-5bb05b3a6238" + "2a0051ad-be2e-49c7-9f4c-9812682675d9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191324Z:3313553a-d0be-49fd-917b-5bb05b3a6238" + "WESTUS2:20180522T170722Z:2a0051ad-be2e-49c7-9f4c-9812682675d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2F6dXJlQXN5bmNPcGVyYXRpb24vZGEwNTM3OWItNTc3Yy00OGVkLWI5YzUtZjNjNGJhOTQ5MTJjP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/6f756b77-8e97-4131-a881-2af4a59a8bf2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82Zjc1NmI3Ny04ZTk3LTQxMzEtYTg4MS0yYWY0YTU5YThiZjI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operationId\": \"da05379b-577c-48ed-b9c5-f3c4ba94912c\",\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "ResponseBody": "{\r\n \"name\": \"6f756b77-8e97-4131-a881-2af4a59a8bf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:06:52.05Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:13:54 GMT" + "Tue, 22 May 2018 17:07:37 GMT" + ], + "Pragma": [ + "no-cache" ], "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -605,57 +620,121 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "756f0c92-ab85-484d-b4a1-341acc419017" + "0307daca-bcf0-43b9-85a4-f4cdf54e7367" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "b7db0c01-bbfa-4e95-8abb-18aab1fd1933" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T170737Z:b7db0c01-bbfa-4e95-8abb-18aab1fd1933" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/azureAsyncOperation/da05379b-577c-48ed-b9c5-f3c4ba94912c?api-version=2014-04-01-Preview" + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/6f756b77-8e97-4131-a881-2af4a59a8bf2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82Zjc1NmI3Ny04ZTk3LTQxMzEtYTg4MS0yYWY0YTU5YThiZjI/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\": \"6f756b77-8e97-4131-a881-2af4a59a8bf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T17:06:52.05Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 17:07:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5953ed56-dc52-4085-baf8-3866feb88aa0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14992" ], "x-ms-correlation-request-id": [ - "39d0ee3e-18b0-484a-b681-7b93b6a158cd" + "71593817-886c-42a9-9af9-e3afe237e4c6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191354Z:39d0ee3e-18b0-484a-b681-7b93b6a158cd" + "WESTUS2:20180522T170752Z:71593817-886c-42a9-9af9-e3afe237e4c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/6f756b77-8e97-4131-a881-2af4a59a8bf2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi82Zjc1NmI3Ny04ZTk3LTQxMzEtYTg4MS0yYWY0YTU5YThiZjI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013\",\r\n \"name\": \"sqlcrudtest-3013\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0,user\",\r\n \"managedBy\": null,\r\n \"properties\": {\r\n \"databaseId\": \"3dd60ea6-b1aa-4dda-8248-37110b15007f\",\r\n \"edition\": \"Premium\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"P1\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"536870912000\",\r\n \"creationDate\": \"2018-04-25T19:12:24.46Z\",\r\n \"currentServiceObjectiveId\": \"7203483a-c4fb-4304-9e9f-17c71c904f5d\",\r\n \"requestedServiceObjectiveId\": \"7203483a-c4fb-4304-9e9f-17c71c904f5d\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"sampleName\": null,\r\n \"defaultSecondaryLocation\": \"West US 2\",\r\n \"earliestRestoreDate\": \"2018-04-25T19:43:27.01Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2,\r\n \"readScale\": \"Disabled\",\r\n \"failoverGroupId\": null,\r\n \"zoneRedundant\": false,\r\n \"isUpgradeRequested\": false\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"6f756b77-8e97-4131-a881-2af4a59a8bf2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T17:06:52.05Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:13:54 GMT" + "Tue, 22 May 2018 17:08:07 GMT" + ], + "Pragma": [ + "no-cache" ], "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -663,32 +742,87 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fc4eb34f-1a5c-43a2-b95d-1f53ff667195" + "31646228-8499-43c6-b4f3-10200919538e" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "13155223-2c1c-4608-9af1-38160f3dbb00" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T170808Z:13155223-2c1c-4608-9af1-38160f3dbb00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzI/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\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"50846838-39b4-4b59-ad1c-54f04a8e092e\",\r\n \"creationDate\": \"2018-05-22T17:06:52.347Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"South Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T17:38:04.727Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n }\r\n },\r\n \"location\": \"northcentralus\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272\",\r\n \"name\": \"sqlcrudtest-272\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 17:08:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fc5246a4-80a1-4d1c-b1a6-61ab4cc63741" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14990" ], "x-ms-correlation-request-id": [ - "77ffc7b1-d0da-4aad-9594-b72043411f82" + "61d6d803-60ea-40db-94d3-01d14d77d1ed" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191354Z:77ffc7b1-d0da-4aad-9594-b72043411f82" + "WESTUS2:20180522T170808Z:61d6d803-60ea-40db-94d3-01d14d77d1ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzIvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8\r\n }\r\n}", "RequestHeaders": { @@ -699,20 +833,20 @@ "52" ], "x-ms-client-request-id": [ - "a054e613-c1dd-48fb-b3f0-de316432ff4a" + "244021c2-ed22-45d0-9a9f-d7e23260a46e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T19:13:55.397Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T17:08:08.9Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -724,13 +858,13 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:13:55 GMT" + "Tue, 22 May 2018 17:08:08 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyOperationResults/387d916b-28c7-4d90-b44a-350c0193247f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/shortTermRetentionPolicyOperationResults/d7ee162d-8b6e-4536-8b0f-9f41ab0e5d22?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -739,19 +873,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyAzureAsyncOperation/387d916b-28c7-4d90-b44a-350c0193247f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/shortTermRetentionPolicyAzureAsyncOperation/d7ee162d-8b6e-4536-8b0f-9f41ab0e5d22?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "452941ba-ce69-4a8c-9e41-66686cde663e" + "1a64ccec-4e50-4ffa-80e4-567513c192ee" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "a8805eba-9115-4f93-add8-f1e00c4a7f46" + "7ca00455-4eda-4015-97be-ce990c2e1329" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191355Z:a8805eba-9115-4f93-add8-f1e00c4a7f46" + "WESTUS2:20180522T170808Z:7ca00455-4eda-4015-97be-ce990c2e1329" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -763,8 +897,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzIvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n }\r\n}", "RequestHeaders": { @@ -775,17 +909,17 @@ "53" ], "x-ms-client-request-id": [ - "6fd03722-510a-425e-97be-4272e5336bde" + "ab581fb5-9cc7-441b-b1fa-dc2cced4e7e6" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2018-04-25T19:13:58.04Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T17:08:11.45Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "75" @@ -800,13 +934,13 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:13:57 GMT" + "Tue, 22 May 2018 17:08:11 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyOperationResults/bac7ef0d-0bb7-46dc-b33d-1dda3de36f2f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/shortTermRetentionPolicyOperationResults/fdaf939e-146d-47f0-aebd-1778d8f7aa0c?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -815,19 +949,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/locations/westcentralus/shortTermRetentionPolicyAzureAsyncOperation/bac7ef0d-0bb7-46dc-b33d-1dda3de36f2f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/locations/northcentralus/shortTermRetentionPolicyAzureAsyncOperation/fdaf939e-146d-47f0-aebd-1778d8f7aa0c?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "08cde6de-bd31-4ae9-9250-a53ed248db08" + "1a1a792a-e332-416a-81f2-e0ccbe8abe9a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "6acf8234-5237-4412-ad43-26c4c6c005c9" + "063664fb-255c-4fd8-ba39-6278e717bf46" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191358Z:6acf8234-5237-4412-ad43-26c4c6c005c9" + "WESTUS2:20180522T170811Z:063664fb-255c-4fd8-ba39-6278e717bf46" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -839,23 +973,23 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzIvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0059fe33-e67d-4158-88c6-f0f7283d0a56" + "7df3b580-bd73-4349-951d-76789bf1b95f" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -867,7 +1001,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:13:57 GMT" + "Tue, 22 May 2018 17:08:11 GMT" ], "Pragma": [ "no-cache" @@ -882,16 +1016,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "82b5c338-16bc-4cb1-9e41-60daf753987e" + "376379a6-6b0e-4a87-8989-77976aeeb810" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14989" ], "x-ms-correlation-request-id": [ - "bc3aa0a4-3622-4580-99c5-0ad4dd9aff6d" + "a5a1eda9-de30-4fd0-a858-29cca2e29fe3" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191357Z:bc3aa0a4-3622-4580-99c5-0ad4dd9aff6d" + "WESTUS2:20180522T170811Z:a5a1eda9-de30-4fd0-a858-29cca2e29fe3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -903,23 +1037,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3OTIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzg5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMDEzL2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTI1NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MDkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzIvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "00ff5386-9d88-4269-b6cc-57563bb9eacb" + "1c8d9928-937f-49ac-966d-96db00f8a17f" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n },\r\n \"id\": \"/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourceGroups/sqlcrudtest-8792/providers/Microsoft.Sql/servers/sqlcrudtest-7389/databases/sqlcrudtest-3013/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-2568/providers/Microsoft.Sql/servers/sqlcrudtest-4090/databases/sqlcrudtest-272/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -931,7 +1065,7 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:14:00 GMT" + "Tue, 22 May 2018 17:08:14 GMT" ], "Pragma": [ "no-cache" @@ -946,16 +1080,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "42fa0925-e186-424d-9f88-4a2914947f15" + "d42a9505-3cd3-4d27-bbe2-a20ca1cb4ba5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14988" ], "x-ms-correlation-request-id": [ - "d2cf1c72-4424-41e8-8806-da100b0e929a" + "22b5ea35-7583-469a-9604-45f722fc3b0c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191400Z:d2cf1c72-4424-41e8-8806-da100b0e929a" + "WESTUS2:20180522T170814Z:22b5ea35-7583-469a-9604-45f722fc3b0c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -967,13 +1101,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/resourcegroups/sqlcrudtest-8792?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYThmNWFiZDYtY2NiYy00ODAxLTg5ZTMtY2ZjNzIxOTk0NmJhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3OTI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-2568?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTI1Njg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "52963db3-cf66-433b-b1b1-821b5a7c2710" + "7d473ddb-d46c-4ad6-afaa-f3c73aaba920" ], "accept-language": [ "en-US" @@ -995,28 +1129,28 @@ "no-cache" ], "Date": [ - "Wed, 25 Apr 2018 19:14:01 GMT" + "Tue, 22 May 2018 17:08:15 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/a8f5abd6-ccbc-4801-89e3-cfc7219946ba/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg3OTItV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDI1NjgtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" ], "x-ms-request-id": [ - "332a8329-71c5-47fc-a0a7-fe1c21b9fcf1" + "89dcf169-1c49-42c5-9ef2-f364a5887707" ], "x-ms-correlation-request-id": [ - "332a8329-71c5-47fc-a0a7-fe1c21b9fcf1" + "89dcf169-1c49-42c5-9ef2-f364a5887707" ], "x-ms-routing-request-id": [ - "WESTUS2:20180425T191401Z:332a8329-71c5-47fc-a0a7-fe1c21b9fcf1" + "WESTUS2:20180522T170816Z:89dcf169-1c49-42c5-9ef2-f364a5887707" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1030,17 +1164,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8792" + "sqlcrudtest-2568" ], "CreateServer": [ - "sqlcrudtest-7389" + "sqlcrudtest-4090" ], "TestShortTermRetentionPolicyOnPremium": [ - "sqlcrudtest-3013" + "sqlcrudtest-272" ] }, "Variables": { - "SubscriptionId": "a8f5abd6-ccbc-4801-89e3-cfc7219946ba", - "DefaultLocation": "West Central US" + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c", + "DefaultLocation": "north central us" } } \ No newline at end of file From bbe33e99a9677e346e4557dd698968e435a4fe0b Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Tue, 22 May 2018 10:12:28 -0700 Subject: [PATCH 22/26] Version bump --- .../Microsoft.Azure.Management.Sql.csproj | 10 +--------- .../Management.Sql/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj index 65e61ee9dac82..5d4c4ee3dd30d 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,11 @@ 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 48601d73d7ba6..9b50f2c426b8a 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")] From 15c7499f8359a45aadf62c64a166a96d1e58e99e Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Tue, 22 May 2018 11:04:32 -0700 Subject: [PATCH 23/26] Regen from swagger f943cdccabceca5467712cf1788cbeb52cbfb25b --- .../Generated/ISqlManagementClient.cs | 1 + .../Generated/SdkInfo_SqlManagementClient.cs | 35 ++++++++++++------- src/SDKs/_metadata/sql_resource-manager.txt | 16 ++++----- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs index b4046a2b0ddeb..6894c0c7a7981 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -295,5 +295,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// Gets the IShortTermRetentionPoliciesOperations. /// IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index 2c934b0bc95b1..050759d5cd5d8 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"), @@ -60,7 +68,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/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index 7a663c44b3cba..319646beaf64a 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,11 +1,9 @@ -2018-04-18 23:35:28 UTC - +Executing AutoRest command +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/f943cdccabceca5467712cf1788cbeb52cbfb25b/specification/sql/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\git\azure-sdk-for-net\tools\..\src\SDKs\ +2018-05-22 17:57:01 UTC 1) azure-rest-api-specs repository information -GitHub user: jugeorge -Branch: master -Commit: d08c7f54a125819caaa8c5f553206d1adbae60f9 +GitHub fork: Azure +Branch: f943cdccabceca5467712cf1788cbeb52cbfb25b + +Metadata generation for https://github.com/Azure/azure-rest-api-specs/blob/f943cdccabceca5467712cf1788cbeb52cbfb25b/specification/sql/resource-manager/readme.md failed. Please try again -2) AutoRest information -Requested version: latest -Bootstrapper version: C:\Users\jugeorge\AppData\Roaming\npm `-- autorest@2.0.4262 -Latest installed version: From 35bbd21e8acf8fc2075bf12b6d73e16a668e5c85 Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Wed, 23 May 2018 10:04:05 -0700 Subject: [PATCH 24/26] Regen from latest Swagger. ShortTermRetentionPolicy -> BackupShortTermRetentionPolicy --- ...upShortTermRetentionPoliciesOperations.cs} | 34 +++++++++---------- ...mRetentionPoliciesOperationsExtensions.cs} | 24 ++++++------- ...upShortTermRetentionPoliciesOperations.cs} | 14 ++++---- .../Generated/ISqlManagementClient.cs | 4 +-- ...y.cs => BackupShortTermRetentionPolicy.cs} | 14 ++++---- .../Generated/SdkInfo_SqlManagementClient.cs | 2 +- .../Generated/SqlManagementClient.cs | 6 ++-- .../Sql.Tests/DatabaseRestoreScenarioTests.cs | 24 ++++++------- src/SDKs/_metadata/sql_resource-manager.txt | 21 +++++++----- 9 files changed, 74 insertions(+), 69 deletions(-) rename src/SDKs/SqlManagement/Management.Sql/Generated/{ShortTermRetentionPoliciesOperations.cs => BackupShortTermRetentionPoliciesOperations.cs} (91%) rename src/SDKs/SqlManagement/Management.Sql/Generated/{ShortTermRetentionPoliciesOperationsExtensions.cs => BackupShortTermRetentionPoliciesOperationsExtensions.cs} (80%) rename src/SDKs/SqlManagement/Management.Sql/Generated/{IShortTermRetentionPoliciesOperations.cs => IBackupShortTermRetentionPoliciesOperations.cs} (80%) rename src/SDKs/SqlManagement/Management.Sql/Generated/Models/{ShortTermRetentionPolicy.cs => BackupShortTermRetentionPolicy.cs} (76%) diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupShortTermRetentionPoliciesOperations.cs similarity index 91% rename from src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs rename to src/SDKs/SqlManagement/Management.Sql/Generated/BackupShortTermRetentionPoliciesOperations.cs index ee8c84b7e6dd3..d7cc0c2b4d329 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupShortTermRetentionPoliciesOperations.cs @@ -23,12 +23,12 @@ namespace Microsoft.Azure.Management.Sql using System.Threading.Tasks; /// - /// ShortTermRetentionPoliciesOperations operations. + /// BackupShortTermRetentionPoliciesOperations operations. /// - internal partial class ShortTermRetentionPoliciesOperations : IServiceOperations, IShortTermRetentionPoliciesOperations + internal partial class BackupShortTermRetentionPoliciesOperations : IServiceOperations, IBackupShortTermRetentionPoliciesOperations { /// - /// Initializes a new instance of the ShortTermRetentionPoliciesOperations class. + /// Initializes a new instance of the BackupShortTermRetentionPoliciesOperations class. /// /// /// Reference to the service client. @@ -36,7 +36,7 @@ internal partial class ShortTermRetentionPoliciesOperations : IServiceOperations /// /// Thrown when a required parameter is null /// - internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) + internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) { if (client == null) { @@ -84,7 +84,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) /// /// 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)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -225,7 +225,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -238,7 +238,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -279,10 +279,10 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -308,10 +308,10 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -352,7 +352,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -504,7 +504,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -517,7 +517,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -573,7 +573,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -725,7 +725,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -738,7 +738,7 @@ internal ShortTermRetentionPoliciesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupShortTermRetentionPoliciesOperationsExtensions.cs similarity index 80% rename from src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs rename to src/SDKs/SqlManagement/Management.Sql/Generated/BackupShortTermRetentionPoliciesOperationsExtensions.cs index f67551b3a49df..332dd5baa09ff 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupShortTermRetentionPoliciesOperationsExtensions.cs @@ -17,9 +17,9 @@ namespace Microsoft.Azure.Management.Sql using System.Threading.Tasks; /// - /// Extension methods for ShortTermRetentionPoliciesOperations. + /// Extension methods for BackupShortTermRetentionPoliciesOperations. /// - public static partial class ShortTermRetentionPoliciesOperationsExtensions + public static partial class BackupShortTermRetentionPoliciesOperationsExtensions { /// /// Gets a database's short term retention policy. @@ -37,7 +37,7 @@ public static partial class ShortTermRetentionPoliciesOperationsExtensions /// /// The name of the database. /// - public static ShortTermRetentionPolicy Get(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + public static BackupShortTermRetentionPolicy Get(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) { return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); } @@ -61,7 +61,7 @@ public static ShortTermRetentionPolicy Get(this IShortTermRetentionPoliciesOpera /// /// The cancellation token. /// - public static async Task GetAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) { @@ -88,7 +88,7 @@ public static ShortTermRetentionPolicy Get(this IShortTermRetentionPoliciesOpera /// /// The short term retention policy info. /// - public static ShortTermRetentionPolicy CreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + public static BackupShortTermRetentionPolicy CreateOrUpdate(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters) { return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } @@ -115,7 +115,7 @@ public static ShortTermRetentionPolicy CreateOrUpdate(this IShortTermRetentionPo /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -142,7 +142,7 @@ public static ShortTermRetentionPolicy CreateOrUpdate(this IShortTermRetentionPo /// /// The short term retention policy info. /// - public static ShortTermRetentionPolicy Update(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + public static BackupShortTermRetentionPolicy Update(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters) { return operations.UpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } @@ -169,7 +169,7 @@ public static ShortTermRetentionPolicy Update(this IShortTermRetentionPoliciesOp /// /// The cancellation token. /// - public static async Task UpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -196,7 +196,7 @@ public static ShortTermRetentionPolicy Update(this IShortTermRetentionPoliciesOp /// /// The short term retention policy info. /// - public static ShortTermRetentionPolicy BeginCreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + public static BackupShortTermRetentionPolicy BeginCreateOrUpdate(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters) { return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } @@ -223,7 +223,7 @@ public static ShortTermRetentionPolicy BeginCreateOrUpdate(this IShortTermRetent /// /// The cancellation token. /// - public static async Task BeginCreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateOrUpdateAsync(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -250,7 +250,7 @@ public static ShortTermRetentionPolicy BeginCreateOrUpdate(this IShortTermRetent /// /// The short term retention policy info. /// - public static ShortTermRetentionPolicy BeginUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + public static BackupShortTermRetentionPolicy BeginUpdate(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters) { return operations.BeginUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } @@ -277,7 +277,7 @@ public static ShortTermRetentionPolicy BeginUpdate(this IShortTermRetentionPolic /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateAsync(this IBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupShortTermRetentionPoliciesOperations.cs similarity index 80% rename from src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs rename to src/SDKs/SqlManagement/Management.Sql/Generated/IBackupShortTermRetentionPoliciesOperations.cs index a3ec91ba4f89a..bcf00894ab31c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupShortTermRetentionPoliciesOperations.cs @@ -19,9 +19,9 @@ namespace Microsoft.Azure.Management.Sql using System.Threading.Tasks; /// - /// ShortTermRetentionPoliciesOperations operations. + /// BackupShortTermRetentionPoliciesOperations operations. /// - public partial interface IShortTermRetentionPoliciesOperations + public partial interface IBackupShortTermRetentionPoliciesOperations { /// /// Gets a database's short term retention policy. @@ -52,7 +52,7 @@ public partial interface IShortTermRetentionPoliciesOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a database's short term retention policy. /// @@ -85,7 +85,7 @@ public partial interface IShortTermRetentionPoliciesOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a database's short term retention policy. /// @@ -118,7 +118,7 @@ public partial interface IShortTermRetentionPoliciesOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a database's short term retention policy. /// @@ -151,7 +151,7 @@ public partial interface IShortTermRetentionPoliciesOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a database's short term retention policy. /// @@ -184,6 +184,6 @@ public partial interface IShortTermRetentionPoliciesOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, BackupShortTermRetentionPolicy parameters, 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 1dcc752ace6e8..26f19bd85d499 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -352,9 +352,9 @@ public partial interface ISqlManagementClient : System.IDisposable IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } /// - /// Gets the IShortTermRetentionPoliciesOperations. + /// Gets the IBackupShortTermRetentionPoliciesOperations. /// - IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; } + IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupShortTermRetentionPolicy.cs similarity index 76% rename from src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs rename to src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupShortTermRetentionPolicy.cs index 608ac03e2765c..a3666f867d332 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupShortTermRetentionPolicy.cs @@ -16,21 +16,23 @@ namespace Microsoft.Azure.Management.Sql.Models using System.Linq; /// - /// A short term retention policy resource. + /// A short term retention policy. /// [Rest.Serialization.JsonTransformation] - public partial class ShortTermRetentionPolicy : ProxyResource + public partial class BackupShortTermRetentionPolicy : ProxyResource { /// - /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// Initializes a new instance of the BackupShortTermRetentionPolicy + /// class. /// - public ShortTermRetentionPolicy() + public BackupShortTermRetentionPolicy() { CustomInit(); } /// - /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// Initializes a new instance of the BackupShortTermRetentionPolicy + /// class. /// /// Resource ID. /// Resource name. @@ -38,7 +40,7 @@ public ShortTermRetentionPolicy() /// The backup retention period in days. /// This is how many days Point-in-Time Restore will be /// supported. - public ShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) : base(id, name, type) { RetentionDays = retentionDays; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index f99851fd90a82..368b403552656 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -20,6 +20,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl return new Tuple[] { new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"), + new Tuple("Sql", "BackupShortTermRetentionPolicies", "2017-10-01-preview"), new Tuple("Sql", "Capabilities", "2017-10-01-preview"), new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"), new Tuple("Sql", "DataMaskingRules", "2014-04-01"), @@ -72,7 +73,6 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "Servers", "2015-05-01-preview"), new Tuple("Sql", "ServiceObjectives", "2014-04-01"), new Tuple("Sql", "ServiceTierAdvisors", "2014-04-01"), - new Tuple("Sql", "ShortTermRetentionPolicies", "2017-10-01-preview"), new Tuple("Sql", "SubscriptionUsages", "2015-05-01-preview"), new Tuple("Sql", "SyncAgents", "2015-05-01-preview"), new Tuple("Sql", "SyncGroups", "2015-05-01-preview"), diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index 9e5ff66ba2aca..453f9ef3aff11 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -357,9 +357,9 @@ public partial class SqlManagementClient : ServiceClient, I public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } /// - /// Gets the IShortTermRetentionPoliciesOperations. + /// Gets the IBackupShortTermRetentionPoliciesOperations. /// - public virtual IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; private set; } + public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } /// /// Initializes a new instance of the SqlManagementClient class. @@ -619,7 +619,7 @@ private void Initialize() Capabilities = new CapabilitiesOperations(this); DatabaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansOperations(this); InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); - ShortTermRetentionPolicies = new ShortTermRetentionPoliciesOperations(this); + BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; diff --git a/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs index 3583477ed2405..faff1686f1c1e 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseRestoreScenarioTests.cs @@ -240,17 +240,17 @@ public void TestShortTermRetentionPolicyOnPremium() }); // Decrease retention period to 8 days and verfiy that it was updated. - ShortTermRetentionPolicy parameters = new ShortTermRetentionPolicy(retentionDays: 8); - sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + BackupShortTermRetentionPolicy parameters = new BackupShortTermRetentionPolicy(retentionDays: 8); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - ShortTermRetentionPolicy policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + BackupShortTermRetentionPolicy policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters.RetentionDays, policy.RetentionDays); // Increase retention period to 35 days again and verfiy that it was updated. - parameters = new ShortTermRetentionPolicy(retentionDays: 35); - sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + parameters = new BackupShortTermRetentionPolicy(retentionDays: 35); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters.RetentionDays, policy.RetentionDays); } } @@ -275,17 +275,17 @@ public void TestShortTermRetentionPolicyOnBasic() }); // Attempt to increase retention period to 8 days and verfiy that the operation fails. - ShortTermRetentionPolicy parameters = new ShortTermRetentionPolicy(retentionDays: 8); - sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + BackupShortTermRetentionPolicy parameters = new BackupShortTermRetentionPolicy(retentionDays: 8); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - ShortTermRetentionPolicy policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + BackupShortTermRetentionPolicy policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(basicRetention, policy.RetentionDays); // Attempt to dncrease retention period to 3 days and verify operation failure. - parameters = new ShortTermRetentionPolicy(retentionDays: 3); - sqlClient.ShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); + parameters = new BackupShortTermRetentionPolicy(retentionDays: 3); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - policy = sqlClient.ShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(basicRetention, policy.RetentionDays); } } diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index f91df426b8743..5d40f82568572 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,14 +1,17 @@ - -Type dsc to start/install the DS Consolidated Console - -2018-05-21 20:53:08 UTC - +Executing AutoRest command +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\git\azure-sdk-for-net\tools\..\src\SDKs\ +2018-05-23 16:49:49 UTC 1) azure-rest-api-specs repository information -GitHub user: Azure +GitHub fork: Azure Branch: master -Commit: c6fea13a449c7e60d515759d687f18c9079c8522 +Commit: fd4877c357ca30c867958b9f51332270449c2b31 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\joke\AppData\Roaming\npm `-- autorest@2.0.4262 -Latest installed version: +Bootstrapper version: C:\Users\jaredmoo\AppData\Roaming\npm `-- autorest@2.0.4262 + + +Latest installed version: +.\tools\generate.ps1 was invoked by generate.ps1 + + From 158d6d945c2c73ff1e379d617359d028cd3b3579 Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Wed, 23 May 2018 14:17:23 -0700 Subject: [PATCH 25/26] Regen from swagger again. --- src/SDKs/_metadata/sql_resource-manager.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index 5d40f82568572..5c573adcd6aaa 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,10 +1,10 @@ Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\git\azure-sdk-for-net\tools\..\src\SDKs\ -2018-05-23 16:49:49 UTC +2018-05-23 21:15:50 UTC 1) azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: fd4877c357ca30c867958b9f51332270449c2b31 +Commit: edc50f1d3df16e6f639596de583243b12c20f9a0 2) AutoRest information Requested version: latest From 396bb8c607bc28dcbebd85beb5cc72081d5107d9 Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Wed, 23 May 2018 14:36:25 -0700 Subject: [PATCH 26/26] Fixed typos and tweaked release notes --- .../Microsoft.Azure.Management.Sql.csproj | 7 +- ...aseVulnerabilityAssessmentScenarioTests.cs | 2 +- ...teGetDatabaseVulnerabilityAssessments.json | 412 ++-- ...abaseVulnerabilityAssessmentBaselines.json | 457 ++-- ...tDatabaseVulnerabilityAssessmentScans.json | 1680 --------------- ...tDatabaseVulnerabilityAssessmentScans.json | 1863 +++++++++++++++++ ...tDatabaseVulnerabilityAssessmentScans.json | 548 +++-- 7 files changed, 2606 insertions(+), 2363 deletions(-) delete mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExecuteGetListDatabaseVulnerabilityAssessmentScans.json 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 b97f467c41d85..05845a1cdf409 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -12,10 +12,9 @@ diff --git a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs index 9b810efda048b..23c81329de2b9 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/DatabaseVulnerabilityAssessmentScenarioTests.cs @@ -140,7 +140,7 @@ public async void TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaseli } [Fact] - public async void TestExcetueGetListDatabaseVulnerabilityAssessmentScans() + public async void TestExecuteGetListDatabaseVulnerabilityAssessmentScans() { using (SqlManagementTestContext context = new SqlManagementTestContext(this)) { 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 index 05bb0fc33536d..51d219ecabe4c 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDatabaseVulnerabilityAssessments.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5232?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTUyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-3680?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTM2ODA/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}", + "RequestBody": "{\r\n \"location\": \"north central us\",\r\n \"tags\": {\r\n \"sqlcrudtest-3680\": \"2018-05-23 21:20:35Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "98" + "105" ], "x-ms-client-request-id": [ - "bf1db98d-1bfb-4c65-9c23-8043cddd22d9" + "96aa28aa-e9e7-445e-ae0a-76ffec7d4962" ], "accept-language": [ "en-US" @@ -23,10 +23,10 @@ "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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680\",\r\n \"name\": \"sqlcrudtest-3680\",\r\n \"location\": \"northcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-3680\": \"2018-05-23 21:20:35Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "244" ], "Content-Type": [ "application/json; charset=utf-8" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:56:02 GMT" + "Wed, 23 May 2018 21:20:36 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "884bc67b-3839-4521-9a23-399ec210ac2a" + "9d354114-8fd6-40b0-9abe-0e4f4944b180" ], "x-ms-correlation-request-id": [ - "884bc67b-3839-4521-9a23-399ec210ac2a" + "9d354114-8fd6-40b0-9abe-0e4f4944b180" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075602Z:884bc67b-3839-4521-9a23-399ec210ac2a" + "WESTUS2:20180523T212036Z:9d354114-8fd6-40b0-9abe-0e4f4944b180" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,29 +65,29 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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}", + "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\": \"north central us\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "183" + "190" ], "x-ms-client-request-id": [ - "5cb12f90-eaf5-4779-8e5c-2350777bb378" + "1abeac1d-5edf-4970-ae9f-344dcfc91294" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:56:10.943Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-23T21:20:37.697Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:56:11 GMT" + "Wed, 23 May 2018 21:20:37 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/serverOperationResults/405cdb33-20ae-46d8-b3fb-c2d24188c14a?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/405cdb33-20ae-46d8-b3fb-c2d24188c14a?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "64cbf3cf-bbf0-43c5-aad4-488e842b6c98" + "405cdb33-20ae-46d8-b3fb-c2d24188c14a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "8090b70c-e28e-40b3-b412-52ec98363e61" + "7124b0b9-6ccf-4615-87cf-437b886aa986" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075611Z:8090b70c-e28e-40b3-b412-52ec98363e61" + "WESTUS2:20180523T212037Z:7124b0b9-6ccf-4615-87cf-437b886aa986" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/405cdb33-20ae-46d8-b3fb-c2d24188c14a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vNDA1Y2RiMzMtMjBhZS00NmQ4LWIzZmItYzJkMjQxODhjMTRhP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"405cdb33-20ae-46d8-b3fb-c2d24188c14a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:20:37.697Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:56:21 GMT" + "Wed, 23 May 2018 21:20:47 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4513be18-5569-4784-888a-65a028dcf304" + "9ea76e15-6816-4abd-bc4e-ffbdb6a49999" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "443124c3-5a41-493f-ac3e-027b3538be86" + "b3c08015-8adb-43ef-a6eb-4931b23ff7cb" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075621Z:443124c3-5a41-493f-ac3e-027b3538be86" + "WESTUS2:20180523T212047Z:b3c08015-8adb-43ef-a6eb-4931b23ff7cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/405cdb33-20ae-46d8-b3fb-c2d24188c14a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vNDA1Y2RiMzMtMjBhZS00NmQ4LWIzZmItYzJkMjQxODhjMTRhP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"405cdb33-20ae-46d8-b3fb-c2d24188c14a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:20:37.697Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:56:41 GMT" + "Wed, 23 May 2018 21:21:07 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bed18417-f160-42a1-8263-4117dacf4c6a" + "ed85a1f6-1e7f-4c5d-bc89-bf3832f72e12" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "6e596915-fb4d-42aa-b55c-795c501415e6" + "6eeb25a6-5c8c-497b-887e-83c9aba1fdd9" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075641Z:6e596915-fb4d-42aa-b55c-795c501415e6" + "WESTUS2:20180523T212108Z:6eeb25a6-5c8c-497b-887e-83c9aba1fdd9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/405cdb33-20ae-46d8-b3fb-c2d24188c14a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vNDA1Y2RiMzMtMjBhZS00NmQ4LWIzZmItYzJkMjQxODhjMTRhP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"405cdb33-20ae-46d8-b3fb-c2d24188c14a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:20:37.697Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:57:01 GMT" + "Wed, 23 May 2018 21:21:27 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d8f384c4-c9c4-477e-bc61-63ab048536ff" + "5fe668c9-63b0-4a91-bfef-3b0c4072b615" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "0a779f9c-30f2-4c2e-b4d7-f001d476e821" + "57e55b9a-e615-46f4-b1f3-76f4869aca47" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075702Z:0a779f9c-30f2-4c2e-b4d7-f001d476e821" + "WESTUS2:20180523T212128Z:57e55b9a-e615-46f4-b1f3-76f4869aca47" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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-9756.database.windows.net\"\r\n },\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756\",\r\n \"name\": \"sqlcrudtest-9756\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:57:02 GMT" + "Wed, 23 May 2018 21:21:27 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "147ac703-c368-4cf9-a4ad-d86bc487d022" + "150150e6-40f9-4a68-ab50-496ec0a55932" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "997cc440-023d-41e5-aa85-4feb312a3e90" + "087b822e-6c1f-45d4-a0ff-049f2ae2d265" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075702Z:997cc440-023d-41e5-aa85-4feb312a3e90" + "WESTUS2:20180523T212128Z:087b822e-6c1f-45d4-a0ff-049f2ae2d265" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,32 +382,32 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"location\": \"northcentralus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "29" + "36" ], "x-ms-client-request-id": [ - "bc77e3f9-8823-482f-87d9-00727ae34cfb" + "da77eaad-4ece-4895-976e-ef73a2b67a85" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T07:57:05.377Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-23T21:21:29.31Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:57:04 GMT" + "Wed, 23 May 2018 21:21:29 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/databaseOperationResults/36c0ca6d-1af4-4801-b916-bbc03bc9ff47?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/36c0ca6d-1af4-4801-b916-bbc03bc9ff47?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "30c58e45-fe93-4ec3-b9b1-e64b0299ead9" + "21b99879-a25c-451c-b42d-ef966cf070c7" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "9834549a-94ef-4e45-8975-0554bca55f17" + "9f8c6a37-8ca9-4d5d-a571-d133484e0a0a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075705Z:9834549a-94ef-4e45-8975-0554bca55f17" + "WESTUS2:20180523T212129Z:9f8c6a37-8ca9-4d5d-a571-d133484e0a0a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/36c0ca6d-1af4-4801-b916-bbc03bc9ff47?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8zNmMwY2E2ZC0xYWY0LTQ4MDEtYjkxNi1iYmMwM2JjOWZmNDc/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"36c0ca6d-1af4-4801-b916-bbc03bc9ff47\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:21:29.31Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:57:19 GMT" + "Wed, 23 May 2018 21:21:44 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9c896bc5-1f7b-42d9-a524-d1f5a74431a1" + "0e915bcd-f0bf-47ff-80dc-76c3d65194a2" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "675e8600-cc84-46f2-ab38-9fa3ec68242a" + "5aec0241-cb18-492c-aa1e-289962390316" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075720Z:675e8600-cc84-46f2-ab38-9fa3ec68242a" + "WESTUS2:20180523T212144Z:5aec0241-cb18-492c-aa1e-289962390316" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/36c0ca6d-1af4-4801-b916-bbc03bc9ff47?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8zNmMwY2E2ZC0xYWY0LTQ4MDEtYjkxNi1iYmMwM2JjOWZmNDc/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"36c0ca6d-1af4-4801-b916-bbc03bc9ff47\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:21:29.31Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:57:35 GMT" + "Wed, 23 May 2018 21:22:00 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ae91d48f-be94-456a-a202-2d90852fdfa4" + "c705bda4-8756-49c8-9bef-ce5879822ba8" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "5b3dc55e-012a-44fb-9c6c-9132d268d42b" + "17e71acc-dada-4d41-8e6c-43c019895339" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075736Z:5b3dc55e-012a-44fb-9c6c-9132d268d42b" + "WESTUS2:20180523T212200Z:17e71acc-dada-4d41-8e6c-43c019895339" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/36c0ca6d-1af4-4801-b916-bbc03bc9ff47?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8zNmMwY2E2ZC0xYWY0LTQ4MDEtYjkxNi1iYmMwM2JjOWZmNDc/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"36c0ca6d-1af4-4801-b916-bbc03bc9ff47\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:21:29.31Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:57:50 GMT" + "Wed, 23 May 2018 21:22:14 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0740b14f-f8ab-4315-872d-cf9350ee7c12" + "a8c4cc04-4837-4690-af8d-a7cd0a8635ac" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "38c7113d-3a88-4e3c-a213-0656436e98e4" + "4330ebd6-b9f9-49c2-a8f2-23cd42505873" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075751Z:38c7113d-3a88-4e3c-a213-0656436e98e4" + "WESTUS2:20180523T212215Z:4330ebd6-b9f9-49c2-a8f2-23cd42505873" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/36c0ca6d-1af4-4801-b916-bbc03bc9ff47?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8zNmMwY2E2ZC0xYWY0LTQ4MDEtYjkxNi1iYmMwM2JjOWZmNDc/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"36c0ca6d-1af4-4801-b916-bbc03bc9ff47\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:21:29.31Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:06 GMT" + "Wed, 23 May 2018 21:22:29 GMT" ], "Pragma": [ "no-cache" @@ -681,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "444bd96f-4dff-4131-9f3c-51dbb97f466c" + "1ed8fd0a-e323-41fd-b1ee-6dd7ca08deee" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "2017be50-2bad-44e6-a788-8c7fcbf2b5f8" + "b57393b0-d233-464b-8970-48df8043a7ce" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075806Z:2017be50-2bad-44e6-a788-8c7fcbf2b5f8" + "WESTUS2:20180523T212230Z:b57393b0-d233-464b-8970-48df8043a7ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,17 +702,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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\": \"b189744a-acea-4664-94e0-419b9e26fea9\",\r\n \"creationDate\": \"2018-05-23T21:21:29.623Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"South Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-23T21:52:15.703Z\",\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\": \"northcentralus\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762\",\r\n \"name\": \"sqlvulnerabilityassessmentcrudtest-762\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -724,7 +724,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:06 GMT" + "Wed, 23 May 2018 21:22:29 GMT" ], "Pragma": [ "no-cache" @@ -739,16 +739,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7af5d905-da2b-4dc6-8179-bfb2b7bf1d74" + "2706a8d6-053b-4444-aead-2401f9605a73" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "befd3b0d-7fff-46aa-a1ac-0afc24281a14" + "f0181c22-eb4d-471e-bf4c-b25d287052b6" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075807Z:befd3b0d-7fff-46aa-a1ac-0afc24281a14" + "WESTUS2:20180523T212230Z:f0181c22-eb4d-471e-bf4c-b25d287052b6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -760,8 +760,8 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mi9zZWN1cml0eUFsZXJ0UG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"emailAccountAdmins\": \"Enabled\"\r\n }\r\n}", "RequestHeaders": { @@ -772,17 +772,17 @@ "90" ], "x-ms-client-request-id": [ - "3f88b2c7-48de-40e4-8814-c51582422226" + "af993ca2-e725-4aa9-b69e-4825431be525" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/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" @@ -791,7 +791,7 @@ "no-store, no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:09 GMT" + "Wed, 23 May 2018 21:22:32 GMT" ], "Transfer-Encoding": [ "chunked" @@ -803,7 +803,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "066e11b0-0e9e-4afe-ae17-1dfeecb9be03" + "e895d2a8-ecf9-49d0-8dab-de0d30fdbea0" ], "X-Content-Type-Options": [ "nosniff" @@ -821,32 +821,32 @@ "1197" ], "x-ms-correlation-request-id": [ - "4acd94f8-8a69-4855-923e-a5b1652d9878" + "cc2b4fb5-d9b9-4894-bbc5-f0a4782742a1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075810Z:4acd94f8-8a69-4855-923e-a5b1652d9878" + "WESTUS2:20180523T212232Z:cc2b4fb5-d9b9-4894-bbc5-f0a4782742a1" ] }, "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dfa2d6e6-3bb5-420b-981f-70d99f302494" + "6919ef49-b82c-4fa5-a83a-b1ef6a1f47d2" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": false\r\n }\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:12 GMT" + "Wed, 23 May 2018 21:22:32 GMT" ], "Pragma": [ "no-cache" @@ -873,16 +873,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "68b9a357-a3b7-4d58-97b5-7fa905b2bcee" + "6ab53195-6348-4d61-87ea-04712a749101" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "4bf69e53-5567-4781-b65f-cea98104e6d1" + "61f45c80-8694-4529-8c7e-c7f77885ab5b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075813Z:4bf69e53-5567-4781-b65f-cea98104e6d1" + "WESTUS2:20180523T212233Z:61f45c80-8694-4529-8c7e-c7f77885ab5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -894,23 +894,23 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9ced4518-d721-4be4-93f8-96cd95409bf0" + "aa35a9ed-9e45-4d79-a740-0f40603565f8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2547.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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -922,7 +922,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:40 GMT" + "Wed, 23 May 2018 21:23:01 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "818a39ba-16d2-4364-96c0-e8bb56114d60" + "0e513b38-6475-4e8c-86b4-8ce0aba2c1e0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14989" ], "x-ms-correlation-request-id": [ - "1d218fc2-430a-4f6d-9605-0899becb240d" + "8007f12d-e6ab-4933-a5a9-a938773899a9" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075840Z:1d218fc2-430a-4f6d-9605-0899becb240d" + "WESTUS2:20180523T212301Z:8007f12d-e6ab-4933-a5a9-a938773899a9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,23 +958,23 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "082736bf-4d79-48fa-a769-a25c20476694" + "f88754b1-bfbe-4194-bb09-8f36ed1e4e31" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"recurringScans\": {\r\n \"isEnabled\": false,\r\n \"emailSubscriptionAdmins\": false\r\n }\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -986,7 +986,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:40 GMT" + "Wed, 23 May 2018 21:23:01 GMT" ], "Pragma": [ "no-cache" @@ -1001,16 +1001,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "03dbc43d-2fb4-4343-9424-2a6800a79cfe" + "f30f6139-b00e-4b3c-90cb-1b92aef4b6dc" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14988" ], "x-ms-correlation-request-id": [ - "830338b2-de21-415b-bb81-1ecafa436050" + "6787f37b-8143-4fef-9c32-4752a847f786" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075841Z:830338b2-de21-415b-bb81-1ecafa436050" + "WESTUS2:20180523T212302Z:6787f37b-8143-4fef-9c32-4752a847f786" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1022,19 +1022,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-5232/providers/Microsoft.Storage/storageAccounts/sqlvatest4561?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTUyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q0NTYxP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Storage/storageAccounts/sqlvatest2547?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyNTQ3P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "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}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "152" + "159" ], "x-ms-client-request-id": [ - "7c2cd68c-165e-4593-83a3-5aeccc7b1c58" + "523892ca-8d48-465a-9066-d459c608b863" ], "accept-language": [ "en-US" @@ -1059,13 +1059,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:20 GMT" + "Wed, 23 May 2018 21:22:34 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/7c430a40-05ea-48ea-b624-676fa1862bc1?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -1074,7 +1074,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3b7b0a9d-1bd5-4824-b16a-941616b0c9ca" + "7c430a40-05ea-48ea-b624-676fa1862bc1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1083,10 +1083,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "e5ed9b27-931b-4695-883d-13bf5cbe35d0" + "18051a81-d2e7-4b56-bd94-e466279afeeb" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075821Z:e5ed9b27-931b-4695-883d-13bf5cbe35d0" + "WESTUS2:20180523T212234Z:18051a81-d2e7-4b56-bd94-e466279afeeb" ], "X-Content-Type-Options": [ "nosniff" @@ -1095,8 +1095,8 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/7c430a40-05ea-48ea-b624-676fa1862bc1?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvbm9ydGhjZW50cmFsdXMvYXN5bmNvcGVyYXRpb25zLzdjNDMwYTQwLTA1ZWEtNDhlYS1iNjI0LTY3NmZhMTg2MmJjMT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1105,7 +1105,7 @@ "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}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Storage/storageAccounts/sqlvatest2547\",\r\n \"name\": \"sqlvatest2547\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"northcentralus\",\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 \"4c8f1d26-c1d3-40f7-a12b-4d72de2a6d3c\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:22:34.6187906Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:22:34.6187906Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-23T21:22:34.5563402Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest2547.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest2547.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"northcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1117,7 +1117,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:38 GMT" + "Wed, 23 May 2018 21:22:51 GMT" ], "Pragma": [ "no-cache" @@ -1132,19 +1132,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "79c7ec12-0212-416b-990f-076b18a34817" + "f64de535-7fcc-4487-bf1b-c695585e3d00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" + "14999" ], "x-ms-correlation-request-id": [ - "7219fd2a-76b9-4fc1-b89f-09b921097864" + "903a7155-2b05-4c7e-84f1-6f225d8106f4" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075838Z:7219fd2a-76b9-4fc1-b89f-09b921097864" + "WESTUS2:20180523T212252Z:903a7155-2b05-4c7e-84f1-6f225d8106f4" ], "X-Content-Type-Options": [ "nosniff" @@ -1153,13 +1153,13 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Storage/storageAccounts/sqlvatest2547/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyNTQ3L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d490cb43-04f6-4b4b-877c-4e47e08fcc39" + "4652b8bf-46cd-4772-8da0-7631e5037364" ], "accept-language": [ "en-US" @@ -1169,7 +1169,7 @@ "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}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"6abnQpE5nNmyd6ClAIi68a0qcBuOa3u6yu9xQMARsAEZlLbOf3/zva3Pd0EzBUTb8keWX9S6X5wZdzNDiZTjOg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"f5Y057ify0urMIYK8YqlkK+Wp//K9vRRq8dSwPxnxl8F/TE1jegCC9H5mNbegyWhk8kbmOdljBRaLSSvxIaUFA==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1181,7 +1181,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:38 GMT" + "Wed, 23 May 2018 21:22:52 GMT" ], "Pragma": [ "no-cache" @@ -1196,7 +1196,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "90d036e9-751f-4928-8a2c-33212789ea9f" + "63842716-0bef-4b95-b75c-313bc99be735" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1205,10 +1205,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "e15850d7-ef50-43e5-b97c-1a8a0b619632" + "aa337d66-d067-40c9-94b9-294ab5136d25" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075839Z:e15850d7-ef50-43e5-b97c-1a8a0b619632" + "WESTUS2:20180523T212252Z:aa337d66-d067-40c9-94b9-294ab5136d25" ], "X-Content-Type-Options": [ "nosniff" @@ -1217,29 +1217,29 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2547.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=gZGeD%2FHmhxkMUl3jPNX%2FrpX88xcurHc8tFnkK3BeE4M%3D&se=2018-05-23T22%3A22%3A52Z&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" + "461" ], "x-ms-client-request-id": [ - "1e5f48e2-66f5-485e-9f8b-0d2ad3cc3ccd" + "5786c91e-66a6-4837-9dab-72683a0b38ae" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest2547.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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1251,7 +1251,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:39 GMT" + "Wed, 23 May 2018 21:23:01 GMT" ], "Pragma": [ "no-cache" @@ -1266,16 +1266,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "624b73ab-ecb9-48f0-8727-80673de6f8c1" + "1cbfe770-e01c-4863-8c2d-3f371a1500b5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "73d98c7d-56b8-45e8-83f2-745e565f3013" + "cb3e5d78-569d-4aa6-9dda-1594c7daa5b1" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075840Z:73d98c7d-56b8-45e8-83f2-745e565f3013" + "WESTUS2:20180523T212301Z:cb3e5d78-569d-4aa6-9dda-1594c7daa5b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1287,20 +1287,20 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-3680/providers/Microsoft.Sql/servers/sqlcrudtest-9756/databases/sqlvulnerabilityassessmentcrudtest-762/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTM2ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NzU2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGNydWR0ZXN0LTc2Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "77091248-0413-450f-8483-00362c860e2c" + "9fecc4f9-7155-4ed7-9ac9-ac1d93c988b0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1315,7 +1315,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:40 GMT" + "Wed, 23 May 2018 21:23:01 GMT" ], "Pragma": [ "no-cache" @@ -1324,16 +1324,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "63b3b25d-b6be-4d6e-9b53-138165d992f7" + "32dfec22-6d50-40f5-b584-b1e160fa3f7c" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-correlation-request-id": [ - "9a48cd4e-2c30-4900-a077-165679476f6a" + "e7d98a20-2211-467f-a8cd-bf59b5fd731f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075841Z:9a48cd4e-2c30-4900-a077-165679476f6a" + "WESTUS2:20180523T212302Z:e7d98a20-2211-467f-a8cd-bf59b5fd731f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1345,13 +1345,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-5232?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTUyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-3680?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTM2ODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "99f3f2b8-1e2d-4d6b-b047-05e65e7f4493" + "ad2c6b8f-7e0d-45d6-a116-e861887bb07c" ], "accept-language": [ "en-US" @@ -1373,13 +1373,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:45 GMT" + "Wed, 23 May 2018 21:23:03 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDUyMzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDM2ODAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1388,13 +1388,13 @@ "14999" ], "x-ms-request-id": [ - "ad0609a2-d44d-442c-8413-ed590d178a58" + "4c2c7470-b851-4fc4-b339-edf71c9a6f07" ], "x-ms-correlation-request-id": [ - "ad0609a2-d44d-442c-8413-ed590d178a58" + "4c2c7470-b851-4fc4-b339-edf71c9a6f07" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075845Z:ad0609a2-d44d-442c-8413-ed590d178a58" + "WESTUS2:20180523T212303Z:4c2c7470-b851-4fc4-b339-edf71c9a6f07" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1408,20 +1408,20 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-5232" + "sqlcrudtest-3680" ], "CreateServer": [ - "sqlcrudtest-1430" + "sqlcrudtest-9756" ], "TestCreateUpdateGetDatabaseVulnerabilityAssessments": [ - "sqlvulnerabilityassessmentcrudtest-809" + "sqlvulnerabilityassessmentcrudtest-762" ], "CreateStorageContainer": [ - "sqlvatest4561" + "sqlvatest2547" ] }, "Variables": { - "DefaultLocation": "west us 2", - "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c" + "DefaultLocation": "north central us", + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" } } \ 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 index 57f5660c49f48..ab3bdbf1403d3 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8861?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg4NjE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-6395?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYzOTU/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}", + "RequestBody": "{\r\n \"location\": \"north central us\",\r\n \"tags\": {\r\n \"sqlcrudtest-6395\": \"2018-05-23 21:17:53Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "98" + "105" ], "x-ms-client-request-id": [ - "8f4d3ed0-e01f-4528-9cf1-a6852b166293" + "bd9b0c0c-8a40-4af4-b887-ea34f5e9f752" ], "accept-language": [ "en-US" @@ -23,10 +23,10 @@ "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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395\",\r\n \"name\": \"sqlcrudtest-6395\",\r\n \"location\": \"northcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6395\": \"2018-05-23 21:17:53Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "244" ], "Content-Type": [ "application/json; charset=utf-8" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:52:53 GMT" + "Wed, 23 May 2018 21:17:55 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "2f0900fd-c725-4fc2-8970-542a259d6542" + "44ffe9dc-ee71-4dcc-b23a-be146c02f5b7" ], "x-ms-correlation-request-id": [ - "2f0900fd-c725-4fc2-8970-542a259d6542" + "44ffe9dc-ee71-4dcc-b23a-be146c02f5b7" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075254Z:2f0900fd-c725-4fc2-8970-542a259d6542" + "WESTUS2:20180523T211756Z:44ffe9dc-ee71-4dcc-b23a-be146c02f5b7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,29 +65,29 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "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}", + "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\": \"north central us\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "183" + "190" ], "x-ms-client-request-id": [ - "e3ed44d1-73c6-4883-b9af-2586bac45fc4" + "3c4a6924-6d1b-4e0f-88c5-2261c3e5c279" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:53:04.323Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-23T21:17:57.843Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:53:04 GMT" + "Wed, 23 May 2018 21:17:57 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/serverOperationResults/07621ec3-6b6c-4a63-9e12-3930f81e5746?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/07621ec3-6b6c-4a63-9e12-3930f81e5746?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "778181f1-ce40-470b-a293-8c1dd751ec27" + "07621ec3-6b6c-4a63-9e12-3930f81e5746" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "3c6bfd2b-1ec8-4056-b1fd-809b264ceaae" + "63e5b33a-e809-4017-8379-442274b71621" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075304Z:3c6bfd2b-1ec8-4056-b1fd-809b264ceaae" + "WESTUS2:20180523T211757Z:63e5b33a-e809-4017-8379-442274b71621" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/07621ec3-6b6c-4a63-9e12-3930f81e5746?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vMDc2MjFlYzMtNmI2Yy00YTYzLTllMTItMzkzMGY4MWU1NzQ2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"07621ec3-6b6c-4a63-9e12-3930f81e5746\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:17:57.843Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:53:15 GMT" + "Wed, 23 May 2018 21:18:07 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9a4e950f-c652-49f4-9143-fd0e33dfb586" + "22fe64a1-c22b-4af7-a605-ba03eea6f7f3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "b057340a-44f9-4870-84be-c1555d5461e1" + "f72bd8f3-4dd8-4ad7-bb35-4505c9c6bcf2" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075315Z:b057340a-44f9-4870-84be-c1555d5461e1" + "WESTUS2:20180523T211808Z:f72bd8f3-4dd8-4ad7-bb35-4505c9c6bcf2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/07621ec3-6b6c-4a63-9e12-3930f81e5746?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vMDc2MjFlYzMtNmI2Yy00YTYzLTllMTItMzkzMGY4MWU1NzQ2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"07621ec3-6b6c-4a63-9e12-3930f81e5746\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:17:57.843Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:53:35 GMT" + "Wed, 23 May 2018 21:18:28 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3dce23ea-ee0b-4739-927a-1b88e7659efd" + "d40ee71d-5dd2-4284-8a31-b5fadacf4156" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "fbb0effc-d210-4dff-9a41-3c0232e1ca11" + "f167109e-5d55-4ccd-b95d-94b8d6811b3e" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075335Z:fbb0effc-d210-4dff-9a41-3c0232e1ca11" + "WESTUS2:20180523T211828Z:f167109e-5d55-4ccd-b95d-94b8d6811b3e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/07621ec3-6b6c-4a63-9e12-3930f81e5746?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vMDc2MjFlYzMtNmI2Yy00YTYzLTllMTItMzkzMGY4MWU1NzQ2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"07621ec3-6b6c-4a63-9e12-3930f81e5746\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:17:57.843Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:53:55 GMT" + "Wed, 23 May 2018 21:18:47 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b6058cdf-161b-4bfe-965f-804d23713670" + "a09d75b8-0a87-4aa3-aa5e-cd05fd244b60" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "9159e29e-f84f-424b-a79d-09338bbc6e25" + "ba5aa329-6b3f-441b-9f47-5188a03e516c" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075355Z:9159e29e-f84f-424b-a79d-09338bbc6e25" + "WESTUS2:20180523T211848Z:ba5aa329-6b3f-441b-9f47-5188a03e516c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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-3591.database.windows.net\"\r\n },\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591\",\r\n \"name\": \"sqlcrudtest-3591\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:53:55 GMT" + "Wed, 23 May 2018 21:18:47 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "70df0f4c-e0b5-4191-aced-a1e6b63d497e" + "3d559515-a2c1-4c56-9ae6-b77b4a8b5121" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "639fada2-87e7-404a-b4c3-f10b560b77bf" + "ef37d577-57d8-4cfc-a799-bbcb24f0f047" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075356Z:639fada2-87e7-404a-b4c3-f10b560b77bf" + "WESTUS2:20180523T211848Z:ef37d577-57d8-4cfc-a799-bbcb24f0f047" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,32 +382,32 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"location\": \"northcentralus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "29" + "36" ], "x-ms-client-request-id": [ - "d14fc7fa-df5d-4665-8d60-817bb12911aa" + "e690b642-51be-4710-8d92-7cb5478f5cd5" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T07:53:58.373Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-23T21:18:49.9Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:53:57 GMT" + "Wed, 23 May 2018 21:18:49 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/databaseOperationResults/95209c5c-2358-46dd-ab2a-0525f7f7dbfa?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/95209c5c-2358-46dd-ab2a-0525f7f7dbfa?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "cafd7674-6e30-41f3-b2dc-7b13f278ff20" + "2418c909-ed1f-41c1-83f1-ce0bdd747db3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "cdfb0de6-8085-4666-8997-3d771aec399a" + "63e58b58-5c6d-422c-bc0a-34556b2a7773" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075358Z:cdfb0de6-8085-4666-8997-3d771aec399a" + "WESTUS2:20180523T211849Z:63e58b58-5c6d-422c-bc0a-34556b2a7773" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/95209c5c-2358-46dd-ab2a-0525f7f7dbfa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi85NTIwOWM1Yy0yMzU4LTQ2ZGQtYWIyYS0wNTI1ZjdmN2RiZmE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"95209c5c-2358-46dd-ab2a-0525f7f7dbfa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:18:49.9Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:54:13 GMT" + "Wed, 23 May 2018 21:19:04 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f0233369-d5b8-4739-96f8-e70cb7e19084" + "83e3df04-fdef-4616-970f-d60ab66604c6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "6a0538c6-5e94-4df0-a417-fc40efb3ace9" + "c26331fe-dfba-483e-b237-592534f3696b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075414Z:6a0538c6-5e94-4df0-a417-fc40efb3ace9" + "WESTUS2:20180523T211905Z:c26331fe-dfba-483e-b237-592534f3696b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/95209c5c-2358-46dd-ab2a-0525f7f7dbfa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi85NTIwOWM1Yy0yMzU4LTQ2ZGQtYWIyYS0wNTI1ZjdmN2RiZmE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"95209c5c-2358-46dd-ab2a-0525f7f7dbfa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:18:49.9Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:54:28 GMT" + "Wed, 23 May 2018 21:19:20 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c8903653-bff4-454a-ad81-ca138fadb6e2" + "05735ccc-9571-4e7d-b515-ffeec30bcb1a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "21c1656b-ee41-4d77-904d-a989621b75a3" + "19c2f832-c808-4057-a0b3-2708e96e8397" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075429Z:21c1656b-ee41-4d77-904d-a989621b75a3" + "WESTUS2:20180523T211920Z:19c2f832-c808-4057-a0b3-2708e96e8397" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/95209c5c-2358-46dd-ab2a-0525f7f7dbfa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi85NTIwOWM1Yy0yMzU4LTQ2ZGQtYWIyYS0wNTI1ZjdmN2RiZmE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"95209c5c-2358-46dd-ab2a-0525f7f7dbfa\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:18:49.9Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:54:44 GMT" + "Wed, 23 May 2018 21:19:34 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "59818a0a-56fb-44e9-a7fb-c084f52cf144" + "7139f69e-c792-49f1-961e-01364799e839" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "58e39c99-e337-4693-92e5-0ea79773eb61" + "bab4e016-99dd-4fc3-93aa-8568c3b1e06c" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075444Z:58e39c99-e337-4693-92e5-0ea79773eb61" + "WESTUS2:20180523T211935Z:bab4e016-99dd-4fc3-93aa-8568c3b1e06c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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\": \"8c2bcd14-1da1-4f88-b5e0-13d2795f0007\",\r\n \"creationDate\": \"2018-05-23T21:18:50.163Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"South Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-23T21:49:34.727Z\",\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\": \"northcentralus\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774\",\r\n \"name\": \"sqlvulnerabilityassessmentbaselinetest-8774\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:54:59 GMT" + "Wed, 23 May 2018 21:19:35 GMT" ], "Pragma": [ "no-cache" @@ -671,9 +671,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -681,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "583ff303-d768-4901-8d07-5062c418c5d3" + "b3c90876-a6d6-463c-a848-02e7bc8743b3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "98e83a9d-4998-4758-aeb4-a3a04d37c878" + "cc0c2e73-ac07-4c83-a773-e63b80791211" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075500Z:98e83a9d-4998-4758-aeb4-a3a04d37c878" + "WESTUS2:20180523T211935Z:cc0c2e73-ac07-4c83-a773-e63b80791211" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,66 +699,8 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0L3NlY3VyaXR5QWxlcnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"emailAccountAdmins\": \"Enabled\"\r\n }\r\n}", "RequestHeaders": { @@ -772,17 +711,17 @@ "90" ], "x-ms-client-request-id": [ - "34a59a15-7abe-46d2-9500-7097e2a2aa30" + "5c20cda2-6aad-4bc3-ba83-1ebc159546cc" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/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" @@ -791,7 +730,7 @@ "no-store, no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:02 GMT" + "Wed, 23 May 2018 21:19:37 GMT" ], "Transfer-Encoding": [ "chunked" @@ -803,7 +742,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "19044580-b314-434a-9f52-a028dd8fa342" + "9823c33c-a320-4f1a-a878-fb27f85986fd" ], "X-Content-Type-Options": [ "nosniff" @@ -821,28 +760,28 @@ "1197" ], "x-ms-correlation-request-id": [ - "21dc2b83-6fac-4dae-ac27-7bde44d16ce7" + "e91b5a05-7db7-4fe4-a8ad-606ddeedc50f" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075502Z:21dc2b83-6fac-4dae-ac27-7bde44d16ce7" + "WESTUS2:20180523T211938Z:e91b5a05-7db7-4fe4-a8ad-606ddeedc50f" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8861/providers/Microsoft.Storage/storageAccounts/sqlvatest1371?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxMzcxP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Storage/storageAccounts/sqlvatest5208?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q1MjA4P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "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}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "152" + "159" ], "x-ms-client-request-id": [ - "187bd620-58a6-47e2-a796-a2833a0f97fd" + "4ada3cbb-0a92-4e48-bfb5-bca0136f2378" ], "accept-language": [ "en-US" @@ -867,13 +806,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:13 GMT" + "Wed, 23 May 2018 21:19:39 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/55dfdf62-a13b-4d4e-8358-801a349520ef?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -882,7 +821,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8629721f-5e6c-4aba-a5fb-05d43cde9772" + "55dfdf62-a13b-4d4e-8358-801a349520ef" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -891,10 +830,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "afa09fec-ac21-445f-9a9c-e4ded3aee144" + "a51c485b-1675-43b0-92e0-01b8dee57e19" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075513Z:afa09fec-ac21-445f-9a9c-e4ded3aee144" + "WESTUS2:20180523T211940Z:a51c485b-1675-43b0-92e0-01b8dee57e19" ], "X-Content-Type-Options": [ "nosniff" @@ -903,8 +842,8 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/55dfdf62-a13b-4d4e-8358-801a349520ef?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvbm9ydGhjZW50cmFsdXMvYXN5bmNvcGVyYXRpb25zLzU1ZGZkZjYyLWExM2ItNGQ0ZS04MzU4LTgwMWEzNDk1MjBlZj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -913,7 +852,7 @@ "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}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Storage/storageAccounts/sqlvatest5208\",\r\n \"name\": \"sqlvatest5208\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"northcentralus\",\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 \"4c8f1d26-c1d3-40f7-a12b-4d72de2a6d3c\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:19:40.365097Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:19:40.365097Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-23T21:19:40.3182215Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest5208.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest5208.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"northcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -925,7 +864,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:30 GMT" + "Wed, 23 May 2018 21:19:57 GMT" ], "Pragma": [ "no-cache" @@ -940,19 +879,19 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0be591af-8570-4d38-af03-bf5af1c0a696" + "369f9b5e-ee49-4965-b5f7-b1d11bac2001" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14999" ], "x-ms-correlation-request-id": [ - "4b7309c7-fd57-4b3e-a14c-5587f844edab" + "61fa7611-5656-41e0-ac33-2185602a8ae2" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075530Z:4b7309c7-fd57-4b3e-a14c-5587f844edab" + "WESTUS2:20180523T211957Z:61fa7611-5656-41e0-ac33-2185602a8ae2" ], "X-Content-Type-Options": [ "nosniff" @@ -961,13 +900,13 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Storage/storageAccounts/sqlvatest5208/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3Q1MjA4L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "641e1c15-6ca2-4879-8d7f-87089a37f65b" + "51dc7603-3e98-484a-939d-0d0ab9dddd51" ], "accept-language": [ "en-US" @@ -977,7 +916,7 @@ "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}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"nghA43aCCrot1Md8qmABByITrig33Gpg5M4y4gc9CLdGDRcbjcD2nLo9fxHFWIAgxH2OGsE70SM6WfLXQdcA3Q==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"CxRheYt4mRaNFFyRXTqWN3bFMqW09Q7+CNaj+T1oUkgDWHs1GAQAaWM0LUUtOlVC9RjkPHaFle2r0JZQ1cxc1w==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -989,7 +928,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:30 GMT" + "Wed, 23 May 2018 21:19:57 GMT" ], "Pragma": [ "no-cache" @@ -1004,7 +943,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "083bc993-2dd5-4186-ba11-ba658fd24abf" + "f953500c-8b13-49b6-82b8-98bb9dc4a54b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1013,10 +952,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "75fac06a-4704-4d35-a94e-af6967fef20e" + "bbe12c87-a155-4286-912f-62662d531ea8" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075531Z:75fac06a-4704-4d35-a94e-af6967fef20e" + "WESTUS2:20180523T211958Z:bbe12c87-a155-4286-912f-62662d531ea8" ], "X-Content-Type-Options": [ "nosniff" @@ -1025,29 +964,29 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest5208.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=BGiW%2BaCN3RBfdxVfGPDESHX6wGTWKHmMItut5pUVKhU%3D&se=2018-05-23T22%3A19%3A58Z&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" + "459" ], "x-ms-client-request-id": [ - "757c792c-b011-4000-86cc-fdd1235574d1" + "9010d9a9-6a9d-407b-b59b-3097cb5ba53e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest5208.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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1059,7 +998,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:39 GMT" + "Wed, 23 May 2018 21:20:06 GMT" ], "Pragma": [ "no-cache" @@ -1074,16 +1013,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5eb0f3b9-72f1-4ceb-9cad-20d678b3d97c" + "c2e2c9a7-517c-425f-b3a9-c26b4c04f8c9" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "04e0ae98-b144-467e-bf48-ef18bc7c442a" + "d24503b5-6945-4bf7-9cd9-26c12618da31" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075540Z:04e0ae98-b144-467e-bf48-ef18bc7c442a" + "WESTUS2:20180523T212006Z:d24503b5-6945-4bf7-9cd9-26c12618da31" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,8 +1034,8 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "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": { @@ -1107,17 +1046,17 @@ "242" ], "x-ms-client-request-id": [ - "01c8a31f-bcde-4b84-905b-c0f6fad91819" + "da9e707e-30c2-419e-ba98-aa8eb37bf3c1" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/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" @@ -1129,7 +1068,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:41 GMT" + "Wed, 23 May 2018 21:20:28 GMT" ], "Pragma": [ "no-cache" @@ -1144,16 +1083,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "33fcd9e6-accf-4fda-9e83-558929ae5a3c" + "8e424636-5d3a-40c2-a1f1-491778e5192c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "609dc77e-5a9b-4983-9b28-ebd3a7f1026c" + "2f365487-aa75-43f8-9fbc-96267690ec77" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075542Z:609dc77e-5a9b-4983-9b28-ebd3a7f1026c" + "WESTUS2:20180523T212029Z:2f365487-aa75-43f8-9fbc-96267690ec77" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1165,23 +1104,23 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "87d0444f-25d5-4ec2-950c-93e1628956b8" + "5c6c305a-a89c-4bd0-966e-d07ceb994117" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/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" @@ -1193,7 +1132,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:42 GMT" + "Wed, 23 May 2018 21:20:29 GMT" ], "Pragma": [ "no-cache" @@ -1208,16 +1147,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "847946af-131d-424c-a32f-ef75e842f0b0" + "83d784f2-03af-4269-9063-5d88697fbaf3" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14999" ], "x-ms-correlation-request-id": [ - "3dfbd665-6142-4b28-a7bf-ce4917eedd5f" + "4f93ca02-9fbc-445b-b121-339f0e1cde10" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075543Z:3dfbd665-6142-4b28-a7bf-ce4917eedd5f" + "WESTUS2:20180523T212030Z:4f93ca02-9fbc-445b-b121-339f0e1cde10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1229,20 +1168,20 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bb9ad899-eb4d-4fe6-9fc6-f31891dbf2d7" + "be79d833-8f89-43a3-b387-a9d281d653bf" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"VulnerabilityAssessmentBaselineDoesNotExists\",\r\n \"message\": \"Baseline does not exist for rule 'VA2031'\"\r\n }\r\n}", @@ -1260,7 +1199,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:43 GMT" + "Wed, 23 May 2018 21:20:31 GMT" ], "Pragma": [ "no-cache" @@ -1269,16 +1208,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "de19e769-af8c-44cd-babf-52e2e926fb47" + "c3fbf8b2-2089-4d88-ad4e-5ae7b09e967f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14998" ], "x-ms-correlation-request-id": [ - "2d8b3379-d736-45d8-acd2-4a6df94e40ff" + "d4ad3e05-9631-4171-a889-f78cc1a8da2b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075544Z:2d8b3379-d736-45d8-acd2-4a6df94e40ff" + "WESTUS2:20180523T212032Z:d4ad3e05-9631-4171-a889-f78cc1a8da2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1290,20 +1229,20 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6395/providers/Microsoft.Sql/servers/sqlcrudtest-3591/databases/sqlvulnerabilityassessmentbaselinetest-8774/vulnerabilityAssessments/default/rules/VA2031/baselines/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYzOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTkxL2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGJhc2VsaW5ldGVzdC04Nzc0L3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50cy9kZWZhdWx0L3J1bGVzL1ZBMjAzMS9iYXNlbGluZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "74309e4d-7d91-4dd9-9edd-552c208d2d0f" + "632a07c1-eec4-47b7-a426-abbbed3d1833" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1318,7 +1257,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:43 GMT" + "Wed, 23 May 2018 21:20:30 GMT" ], "Pragma": [ "no-cache" @@ -1327,16 +1266,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "2ffc6069-c586-4483-87fa-67145561e962" + "485810dc-4407-43e4-a543-1a8a0d68fd4c" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "0739d6f3-1290-49ac-b817-e7513ba8db15" + "2b66e871-8c23-4087-a320-c482f2850948" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075544Z:0739d6f3-1290-49ac-b817-e7513ba8db15" + "WESTUS2:20180523T212031Z:2b66e871-8c23-4087-a320-c482f2850948" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1348,13 +1287,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8861?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg4NjE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-6395?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYzOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9bf724bc-c4af-4965-b6c3-e4964718fe75" + "10c77dbb-d227-4de9-bf57-e13c0ca59d7f" ], "accept-language": [ "en-US" @@ -1376,13 +1315,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:55:48 GMT" + "Wed, 23 May 2018 21:20:33 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg4NjEtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYzOTUtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1391,13 +1330,13 @@ "14999" ], "x-ms-request-id": [ - "2dbb7ddd-be5a-43ab-9a4d-ca5348aed890" + "28651307-6041-4417-8ca7-8a5c1ef7596a" ], "x-ms-correlation-request-id": [ - "2dbb7ddd-be5a-43ab-9a4d-ca5348aed890" + "28651307-6041-4417-8ca7-8a5c1ef7596a" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075548Z:2dbb7ddd-be5a-43ab-9a4d-ca5348aed890" + "WESTUS2:20180523T212033Z:28651307-6041-4417-8ca7-8a5c1ef7596a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1411,20 +1350,20 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8861" + "sqlcrudtest-6395" ], "CreateServer": [ - "sqlcrudtest-2520" + "sqlcrudtest-3591" ], "TestCreateUpdateGetDeleteDatabaseVulnerabilityAssessmentBaselines": [ - "sqlvulnerabilityassessmentbaselinetest-8606" + "sqlvulnerabilityassessmentbaselinetest-8774" ], "CreateStorageContainer": [ - "sqlvatest1371" + "sqlvatest5208" ] }, "Variables": { - "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c", - "DefaultLocation": "west us 2" + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c", + "DefaultLocation": "north central us" } } \ 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 deleted file mode 100644 index 9f805978bae82..0000000000000 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExcetueGetListDatabaseVulnerabilityAssessmentScans.json +++ /dev/null @@ -1,1680 +0,0 @@ -{ - "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/TestExecuteGetListDatabaseVulnerabilityAssessmentScans.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExecuteGetListDatabaseVulnerabilityAssessmentScans.json new file mode 100644 index 0000000000000..48ed93ba70d2c --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExecuteGetListDatabaseVulnerabilityAssessmentScans.json @@ -0,0 +1,1863 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-6730?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3MzA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"north central us\",\r\n \"tags\": {\r\n \"sqlcrudtest-6730\": \"2018-05-23 21:29:02Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "aac552c7-c5e8-41e6-94fa-737833770a95" + ], + "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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730\",\r\n \"name\": \"sqlcrudtest-6730\",\r\n \"location\": \"northcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6730\": \"2018-05-23 21:29:02Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "244" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:29:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "194d9bdd-5d31-4a1f-b7ee-ab72212a15ac" + ], + "x-ms-correlation-request-id": [ + "194d9bdd-5d31-4a1f-b7ee-ab72212a15ac" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212904Z:194d9bdd-5d31-4a1f-b7ee-ab72212a15ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "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\": \"north central us\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "190" + ], + "x-ms-client-request-id": [ + "37f0e05c-388c-4780-876c-64553e4754e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-23T21:29:05.727Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:29:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/serverOperationResults/e0ab367d-4086-4161-8187-bd391a1daa62?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/e0ab367d-4086-4161-8187-bd391a1daa62?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "e0ab367d-4086-4161-8187-bd391a1daa62" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "b0d6ce7a-197f-4ef9-957d-b52b254eb23b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212906Z:b0d6ce7a-197f-4ef9-957d-b52b254eb23b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/e0ab367d-4086-4161-8187-bd391a1daa62?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vZTBhYjM2N2QtNDA4Ni00MTYxLTgxODctYmQzOTFhMWRhYTYyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e0ab367d-4086-4161-8187-bd391a1daa62\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:29:05.727Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:29:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3b18a344-5f49-4d7c-870a-67c16cc17de5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "d3cbf4e3-5fad-4f08-8af0-d9b3656d3d32" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212916Z:d3cbf4e3-5fad-4f08-8af0-d9b3656d3d32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/e0ab367d-4086-4161-8187-bd391a1daa62?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vZTBhYjM2N2QtNDA4Ni00MTYxLTgxODctYmQzOTFhMWRhYTYyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e0ab367d-4086-4161-8187-bd391a1daa62\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:29:05.727Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:29:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ab36b3c6-351f-4915-a000-71995f6c97bd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "50d79577-4129-4a0f-90cf-55c5d008e36d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212936Z:50d79577-4129-4a0f-90cf-55c5d008e36d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/e0ab367d-4086-4161-8187-bd391a1daa62?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vZTBhYjM2N2QtNDA4Ni00MTYxLTgxODctYmQzOTFhMWRhYTYyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e0ab367d-4086-4161-8187-bd391a1daa62\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:29:05.727Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:29:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "80f6f1b8-ffe6-4385-bfea-97b5b8eaa5da" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "55125eb6-3cd0-4f6e-9b7e-d03c39ce6940" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212956Z:55125eb6-3cd0-4f6e-9b7e-d03c39ce6940" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-1876.database.windows.net\"\r\n },\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876\",\r\n \"name\": \"sqlcrudtest-1876\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:29:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c2054ad-1c40-4bd0-952b-4fbd5fd079b2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "7568afb3-66ca-434f-8849-fdc06b0740e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212957Z:7568afb3-66ca-434f-8849-fdc06b0740e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"northcentralus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "x-ms-client-request-id": [ + "8dc2abd9-2247-495b-ab5f-c9e1093955a4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-23T21:29:58.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:29:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/databaseOperationResults/7bbf0bfc-fcbe-4634-b632-472a89d0310b?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/7bbf0bfc-fcbe-4634-b632-472a89d0310b?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "6ef2a54e-7798-4757-aad3-6c003d2a05b1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "8fbb78cf-2b36-4db6-a989-0b7162dcd56f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212958Z:8fbb78cf-2b36-4db6-a989-0b7162dcd56f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/7bbf0bfc-fcbe-4634-b632-472a89d0310b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi83YmJmMGJmYy1mY2JlLTQ2MzQtYjYzMi00NzJhODlkMDMxMGI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7bbf0bfc-fcbe-4634-b632-472a89d0310b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:29:58.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:30:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0740442a-e743-467e-a973-d495bf30f93a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "9b401574-4b3c-4eb6-88b6-92c651db0a51" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213013Z:9b401574-4b3c-4eb6-88b6-92c651db0a51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/7bbf0bfc-fcbe-4634-b632-472a89d0310b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi83YmJmMGJmYy1mY2JlLTQ2MzQtYjYzMi00NzJhODlkMDMxMGI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7bbf0bfc-fcbe-4634-b632-472a89d0310b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:29:58.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:30:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ffa27ae7-2eef-4e08-bc25-9146cb5afdd9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "dc9dc2bb-3e67-4cfc-b189-2ba67f889333" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213028Z:dc9dc2bb-3e67-4cfc-b189-2ba67f889333" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/7bbf0bfc-fcbe-4634-b632-472a89d0310b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi83YmJmMGJmYy1mY2JlLTQ2MzQtYjYzMi00NzJhODlkMDMxMGI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7bbf0bfc-fcbe-4634-b632-472a89d0310b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:29:58.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:30:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f6a639f1-002f-4ccf-aedb-7574442a2acb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "c837f7a0-de74-44b9-9e16-f66d7532312b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213043Z:c837f7a0-de74-44b9-9e16-f66d7532312b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/7bbf0bfc-fcbe-4634-b632-472a89d0310b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi83YmJmMGJmYy1mY2JlLTQ2MzQtYjYzMi00NzJhODlkMDMxMGI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7bbf0bfc-fcbe-4634-b632-472a89d0310b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:29:58.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:30:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e06f7376-ad79-461f-a0af-63f89b4832dc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "1f31d0c9-e8ea-44e6-8900-2ad6a7f29f87" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213058Z:1f31d0c9-e8ea-44e6-8900-2ad6a7f29f87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTI/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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\": \"b3dd1a55-e2ca-4641-82bf-9a091df39c87\",\r\n \"creationDate\": \"2018-05-23T21:29:58.423Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"South Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-23T22:00:45.85Z\",\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\": \"northcentralus\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852\",\r\n \"name\": \"sqlvulnerabilityassessmentscantest-8852\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:30:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "135158e4-2edc-4a4b-8f74-21444be613c4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "d176338c-61b9-404b-8e0b-22df48381379" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213059Z:d176338c-61b9-404b-8e0b-22df48381379" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTIvc2VjdXJpdHlBbGVydFBvbGljaWVzL2RlZmF1bHQ/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": [ + "a2f94ed9-db27-4cda-a91e-74504e65806e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/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": [ + "Wed, 23 May 2018 21:31:01 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fd9fe158-c055-4972-bee0-d4360021aeb1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "6097405d-4975-4d93-a3fe-8c6903398ef0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213101Z:6097405d-4975-4d93-a3fe-8c6903398ef0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Storage/storageAccounts/sqlvatest1385?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxMzg1P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "159" + ], + "x-ms-client-request-id": [ + "408fe159-7ddd-457e-97a3-cc5e260697d5" + ], + "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": [ + "Wed, 23 May 2018 21:31:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/48198ab9-9159-4af0-9bb9-e42114d2873c?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": [ + "48198ab9-9159-4af0-9bb9-e42114d2873c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "154c2d1e-8f45-4372-981a-c03e10b4669a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213103Z:154c2d1e-8f45-4372-981a-c03e10b4669a" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/48198ab9-9159-4af0-9bb9-e42114d2873c?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvbm9ydGhjZW50cmFsdXMvYXN5bmNvcGVyYXRpb25zLzQ4MTk4YWI5LTkxNTktNGFmMC05YmI5LWU0MjExNGQyODczYz9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "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": [ + "Wed, 23 May 2018 21:31:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/48198ab9-9159-4af0-9bb9-e42114d2873c?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": [ + "3c02b809-b000-4e64-8c99-d118a1ae5857" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "06e9c844-ba1b-441d-9b3a-bd7078fe1bd9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213121Z:06e9c844-ba1b-441d-9b3a-bd7078fe1bd9" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/48198ab9-9159-4af0-9bb9-e42114d2873c?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvbm9ydGhjZW50cmFsdXMvYXN5bmNvcGVyYXRpb25zLzQ4MTk4YWI5LTkxNTktNGFmMC05YmI5LWU0MjExNGQyODczYz9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Storage/storageAccounts/sqlvatest1385\",\r\n \"name\": \"sqlvatest1385\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"northcentralus\",\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 \"4c8f1d26-c1d3-40f7-a12b-4d72de2a6d3c\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:31:03.3531248Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:31:03.3531248Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-23T21:31:03.3062357Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest1385.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest1385.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"northcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:31:37 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": [ + "fbc59c0b-5a98-4556-9492-edfefd41cfb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "258ae982-07cb-46d9-842c-f48d34264061" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213138Z:258ae982-07cb-46d9-842c-f48d34264061" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Storage/storageAccounts/sqlvatest1385/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxMzg1L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4a42466-4001-4afb-beb7-36a065be8636" + ], + "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\": \"uRTe1S6sdkNdR1gleLQoY5Pqu2xNC0vABEDwNCo2suH2+V3iPNwkUmRlQ/g50JtgVad2DbuXOH9//TCLGDO/Nw==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"EqNv39Vdwt0Ag+o2KFBwhtkXVQ0s+h6t9649vwx/SVssW65YqNKMI/xr9znR8W77E/kzs0HjYP76mIn7Xl2M0w==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:31:37 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": [ + "a42036d8-889d-41e2-9988-c22b81dd9a82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "72f998b2-bf19-47e5-9674-274148687e9d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213138Z:72f998b2-bf19-47e5-9674-274148687e9d" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest1385.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=x313Nc4jFHh4k%2FY%2BmBXcgxDMAGkVKm%2BREHZCZIff6RM%3D&se=2018-05-23T22%3A31%3A38Z&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": [ + "dd9199e5-1dd2-4e2b-be29-e003bfb760a8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest1385.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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/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": [ + "Wed, 23 May 2018 21:31:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9d2b21b0-fafd-4ae8-81d1-ab9de68aea50" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "88c23e92-dfee-4a32-890e-cf7f8cf0444a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213139Z:88c23e92-dfee-4a32-890e-cf7f8cf0444a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e8fb0389-bc0c-4097-9513-e1149b080cc2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-23T21:31:39.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "97" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:31:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanOperationResults/200c1866-1377-43b1-a34a-7a4406909870?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/200c1866-1377-43b1-a34a-7a4406909870?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "aaa3efac-1829-474e-a8b1-df80b5795770" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "9c531038-8f46-46c9-aa79-7ac77caa1fc1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213140Z:9c531038-8f46-46c9-aa79-7ac77caa1fc1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/200c1866-1377-43b1-a34a-7a4406909870?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2NhbkF6dXJlQXN5bmNPcGVyYXRpb24vMjAwYzE4NjYtMTM3Ny00M2IxLWEzNGEtN2E0NDA2OTA5ODcwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"200c1866-1377-43b1-a34a-7a4406909870\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:31:39.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:31:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "70ff471e-4f2a-4ccb-afc6-b2874360b058" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "d995ddb9-c7f6-4391-9cba-212245e26d38" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213155Z:d995ddb9-c7f6-4391-9cba-212245e26d38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/200c1866-1377-43b1-a34a-7a4406909870?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2NhbkF6dXJlQXN5bmNPcGVyYXRpb24vMjAwYzE4NjYtMTM3Ny00M2IxLWEzNGEtN2E0NDA2OTA5ODcwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"200c1866-1377-43b1-a34a-7a4406909870\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:31:39.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:32:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ad19f4c9-d6b4-4d05-bfb4-a2fc3430e68a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "b10d41c2-b8f1-4ec6-a617-888d81753dbc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213210Z:b10d41c2-b8f1-4ec6-a617-888d81753dbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanOperationResults/200c1866-1377-43b1-a34a-7a4406909870?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2Nhbk9wZXJhdGlvblJlc3VsdHMvMjAwYzE4NjYtMTM3Ny00M2IxLWEzNGEtN2E0NDA2OTA5ODcwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-23T21:31:39.983Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest1385.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/Default/scans/scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "725" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:32:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "51e0e33f-e98b-4b46-8743-d7dff3e21a76" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "dd85f7a8-d7db-4aa7-9bd5-fc8194912d8d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213211Z:dd85f7a8-d7db-4aa7-9bd5-fc8194912d8d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtL2luaXRpYXRlU2Nhbj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "707f586e-d1d0-4a89-b511-812816f15e7e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-23T21:32:11.27Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:32:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanOperationResults/e005b7d8-e097-41ce-afde-2a8e422f6df0?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/e005b7d8-e097-41ce-afde-2a8e422f6df0?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "50e564bd-ece6-4a46-ab59-5558ccc6cf90" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "c2f33e1a-7b11-4eca-89ed-a25d9c534814" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213211Z:c2f33e1a-7b11-4eca-89ed-a25d9c534814" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/e005b7d8-e097-41ce-afde-2a8e422f6df0?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2NhbkF6dXJlQXN5bmNPcGVyYXRpb24vZTAwNWI3ZDgtZTA5Ny00MWNlLWFmZGUtMmE4ZTQyMmY2ZGYwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e005b7d8-e097-41ce-afde-2a8e422f6df0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:32:11.27Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:32:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b4fd8a42-4774-4ecc-8b6e-5c345ff9d706" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "f34f3a59-e632-457d-a07a-74fddfd32038" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213226Z:f34f3a59-e632-457d-a07a-74fddfd32038" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanOperationResults/e005b7d8-e097-41ce-afde-2a8e422f6df0?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2Nhbk9wZXJhdGlvblJlc3VsdHMvZTAwNWI3ZDgtZTA5Ny00MWNlLWFmZGUtMmE4ZTQyMmY2ZGYwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-23T21:32:11.27Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest1385.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/Default/scans/scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"name\": \"scantest2_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": [ + "Wed, 23 May 2018 21:32:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "61a5b98d-11df-4b75-8c9d-9888cc1d9a60" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "967e9ba2-a765-49b3-b6de-58710192b7bf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213226Z:967e9ba2-a765-49b3-b6de-58710192b7bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/default/scans/scantest1_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QxX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f58bd8ee-cfe4-4a4d-9626-16f8acc84a3f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest1_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-23T21:31:40.625604Z\",\r\n \"endTime\": \"2018-05-23T21:31:55.2043054Z\",\r\n \"storageContainerPath\": \"https://sqlvatest1385.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/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": [ + "Wed, 23 May 2018 21:32:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f41ffe53-1e69-407c-885d-75e616d64f62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "8a5136a3-7393-4e63-b30f-945c1a5b455e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213226Z:8a5136a3-7393-4e63-b30f-945c1a5b455e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/default/scans?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnM/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b8c0e32-8dc1-4970-be19-96cfc15bedd3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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-23T21:31:40.625604Z\",\r\n \"endTime\": \"2018-05-23T21:31:55.2043054Z\",\r\n \"storageContainerPath\": \"https://sqlvatest1385.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/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-23T21:32:11.5330409Z\",\r\n \"endTime\": \"2018-05-23T21:32:19.2052556Z\",\r\n \"storageContainerPath\": \"https://sqlvatest1385.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/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": [ + "Wed, 23 May 2018 21:32:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f01bd98e-67b1-4cc0-a461-c9c5951b546c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "1a97151d-c4e6-4d77-8e63-7b7ef1d73837" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213226Z:1a97151d-c4e6-4d77-8e63-7b7ef1d73837" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/vulnerabilityAssessments/default/scans/scantest2_sqlvulnerabilityassessmentscantest-?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODc2L2RhdGFiYXNlcy9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudHNjYW50ZXN0LTg4NTIvdnVsbmVyYWJpbGl0eUFzc2Vzc21lbnRzL2RlZmF1bHQvc2NhbnMvc2NhbnRlc3QyX3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50c2NhbnRlc3QtP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3955de12-83af-4e40-b044-3a2e0eb428cf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scantest2_sqlvulnerabilityassessmentscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-23T21:32:11.5330409Z\",\r\n \"endTime\": \"2018-05-23T21:32:19.2052556Z\",\r\n \"storageContainerPath\": \"https://sqlvatest1385.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 3\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-1876/databases/sqlvulnerabilityassessmentscantest-8852/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": [ + "Wed, 23 May 2018 21:32:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eb5ef18c-898e-4749-832f-e0a34e98340b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "cb5720a7-de89-4d41-be07-754f0827868e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213227Z:cb5720a7-de89-4d41-be07-754f0827868e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-6730?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3MzA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "97d6cf68-c586-4d3d-86e6-76cd61dad0e3" + ], + "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": [ + "Wed, 23 May 2018 21:32:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY3MzAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "64e5aa0f-c705-4dbc-9ecc-feaba18150d3" + ], + "x-ms-correlation-request-id": [ + "64e5aa0f-c705-4dbc-9ecc-feaba18150d3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T213228Z:64e5aa0f-c705-4dbc-9ecc-feaba18150d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-6730" + ], + "CreateServer": [ + "sqlcrudtest-1876" + ], + "TestExecuteGetListDatabaseVulnerabilityAssessmentScans": [ + "sqlvulnerabilityassessmentscantest-8852" + ], + "CreateStorageContainer": [ + "sqlvatest1385" + ] + }, + "Variables": { + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c", + "DefaultLocation": "north central us" + } +} \ 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 index 6926533317bf6..e2931a8b5ac50 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.DatabaseVulnerabilityAssessmentScenarioTests/TestExportDatabaseVulnerabilityAssessmentScans.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8985?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg5ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-1442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE0NDI/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}", + "RequestBody": "{\r\n \"location\": \"north central us\",\r\n \"tags\": {\r\n \"sqlcrudtest-1442\": \"2018-05-23 21:23:05Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "98" + "105" ], "x-ms-client-request-id": [ - "13fa70f4-24b9-4d0e-85ae-53457b0c6559" + "6eea1044-0898-4b13-97ca-2591616d7e5c" ], "accept-language": [ "en-US" @@ -23,10 +23,10 @@ "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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442\",\r\n \"name\": \"sqlcrudtest-1442\",\r\n \"location\": \"northcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-1442\": \"2018-05-23 21:23:05Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "244" ], "Content-Type": [ "application/json; charset=utf-8" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:58:59 GMT" + "Wed, 23 May 2018 21:23:06 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "0559db4b-f848-4b25-8c83-9b3dc04bd8ad" + "39aa115c-0304-44b5-b56d-ff35f03af6c5" ], "x-ms-correlation-request-id": [ - "0559db4b-f848-4b25-8c83-9b3dc04bd8ad" + "39aa115c-0304-44b5-b56d-ff35f03af6c5" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075900Z:0559db4b-f848-4b25-8c83-9b3dc04bd8ad" + "WESTUS2:20180523T212306Z:39aa115c-0304-44b5-b56d-ff35f03af6c5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,29 +65,29 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTc/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}", + "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\": \"north central us\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "183" + "190" ], "x-ms-client-request-id": [ - "493832c2-d2e2-4386-9e42-e6b11de05174" + "8ab6d7c5-2dff-45e8-ac6a-b79b6b67ce73" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-21T07:59:10.073Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-23T21:23:08.073Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:59:09 GMT" + "Wed, 23 May 2018 21:23:07 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/serverOperationResults/68f81713-a985-4cd1-8462-151314aa9028?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/68f81713-a985-4cd1-8462-151314aa9028?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "dfd15016-8a0e-4761-8a92-fa9fdc4148ba" + "68f81713-a985-4cd1-8462-151314aa9028" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "8286d145-bad2-49cb-a459-8b2e60412e5e" + "180cb5fe-92ca-4ede-bcf4-6d4704d69c82" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075910Z:8286d145-bad2-49cb-a459-8b2e60412e5e" + "WESTUS2:20180523T212308Z:180cb5fe-92ca-4ede-bcf4-6d4704d69c82" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/68f81713-a985-4cd1-8462-151314aa9028?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vNjhmODE3MTMtYTk4NS00Y2QxLTg0NjItMTUxMzE0YWE5MDI4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"68f81713-a985-4cd1-8462-151314aa9028\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:23:08.073Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:59:20 GMT" + "Wed, 23 May 2018 21:23:19 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cdff2d5b-aeb9-4079-b640-0dd8365dc6ac" + "8659bc2f-9b7b-4de6-bac8-190b4ecb1a7b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14999" ], "x-ms-correlation-request-id": [ - "d3b8874b-6621-4854-9ed4-970aa5856a9a" + "836046f2-0e36-48c6-844a-8391518a1abd" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075920Z:d3b8874b-6621-4854-9ed4-970aa5856a9a" + "WESTUS2:20180523T212319Z:836046f2-0e36-48c6-844a-8391518a1abd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/68f81713-a985-4cd1-8462-151314aa9028?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vNjhmODE3MTMtYTk4NS00Y2QxLTg0NjItMTUxMzE0YWE5MDI4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"68f81713-a985-4cd1-8462-151314aa9028\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:23:08.073Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 07:59:40 GMT" + "Wed, 23 May 2018 21:23:38 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "50c3f8a0-adc8-493b-8ac1-2dc63054077e" + "fdbdd40f-255a-4ca0-9661-cc3960c08b65" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14929" + "14998" ], "x-ms-correlation-request-id": [ - "82f0a3fc-88b0-4b57-8231-2b8ab23df7b1" + "2e4ebc4e-3496-4139-a51b-653e07678d64" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T075940Z:82f0a3fc-88b0-4b57-8231-2b8ab23df7b1" + "WESTUS2:20180523T212339Z:2e4ebc4e-3496-4139-a51b-653e07678d64" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/serverAzureAsyncOperation/68f81713-a985-4cd1-8462-151314aa9028?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vNjhmODE3MTMtYTk4NS00Y2QxLTg0NjItMTUxMzE0YWE5MDI4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"68f81713-a985-4cd1-8462-151314aa9028\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:23:08.073Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:00 GMT" + "Wed, 23 May 2018 21:23:58 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d7b6a5e3-1e9e-45d8-97af-958f62913b81" + "f42c1a0a-5cc1-4f22-8cc0-46e7aaa92218" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14926" + "14997" ], "x-ms-correlation-request-id": [ - "f65b6745-9f6f-4e1e-9280-3a72516adcaa" + "5102ec51-e284-4ae6-a9c9-d536bb5bea24" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080001Z:f65b6745-9f6f-4e1e-9280-3a72516adcaa" + "WESTUS2:20180523T212359Z:5102ec51-e284-4ae6-a9c9-d536bb5bea24" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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-117.database.windows.net\"\r\n },\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117\",\r\n \"name\": \"sqlcrudtest-117\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:00 GMT" + "Wed, 23 May 2018 21:23:59 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ce142439-bb78-4e8e-9643-28b3327ae105" + "dec1a0c7-53e9-45ac-a0d3-01236e48cf88" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14925" + "14996" ], "x-ms-correlation-request-id": [ - "97969e85-2d0b-4689-a8c3-e48e8bce3391" + "0c1d3165-b388-4668-929d-734c9ae6863e" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080001Z:97969e85-2d0b-4689-a8c3-e48e8bce3391" + "WESTUS2:20180523T212359Z:0c1d3165-b388-4668-929d-734c9ae6863e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,29 +382,29 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50ZXhwb3J0c2NhbnRlc3QtNzA4Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"location\": \"northcentralus\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "29" + "36" ], "x-ms-client-request-id": [ - "d46939dc-86e8-4aec-a7e9-f8ada03a821d" + "3431e944-6f44-4557-8872-b7b339d97653" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-21T08:00:03.977Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-23T21:24:00.723Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "76" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:03 GMT" + "Wed, 23 May 2018 21:24:00 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/databaseOperationResults/d5516a81-8b25-4823-8a89-4dc8b5d38a94?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/d5516a81-8b25-4823-8a89-4dc8b5d38a94?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "004f6bb5-3075-46b1-b714-49968889abd5" + "070be053-e7d5-4f10-a590-e824db7acf1d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "f77065a0-6bff-44c2-88d0-5d6c25937074" + "aded8ee9-fa58-47ed-b5fa-fc299b377463" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080004Z:f77065a0-6bff-44c2-88d0-5d6c25937074" + "WESTUS2:20180523T212400Z:aded8ee9-fa58-47ed-b5fa-fc299b377463" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,78 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/d5516a81-8b25-4823-8a89-4dc8b5d38a94?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi9kNTUxNmE4MS04YjI1LTQ4MjMtOGE4OS00ZGM4YjVkMzhhOTQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d5516a81-8b25-4823-8a89-4dc8b5d38a94\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:24:00.723Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:24:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "098dca84-15fa-4e80-9624-01673ed54e2a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "13337723-0207-4b67-86e1-fba5d74caabf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212415Z:13337723-0207-4b67-86e1-fba5d74caabf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/d5516a81-8b25-4823-8a89-4dc8b5d38a94?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi9kNTUxNmE4MS04YjI1LTQ4MjMtOGE4OS00ZGM4YjVkMzhhOTQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"d5516a81-8b25-4823-8a89-4dc8b5d38a94\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:24:00.723Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +541,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:19 GMT" + "Wed, 23 May 2018 21:24:30 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4f3676b5-9602-4e6e-85b3-e9e10c286251" + "3bae0fb5-5761-4387-9787-0c55531de05d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14924" + "14999" ], "x-ms-correlation-request-id": [ - "1314e653-1d0e-4053-a3db-4870161d00ed" + "1addb0b0-4a26-46ea-8d3a-d5083486893b" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080019Z:1314e653-1d0e-4053-a3db-4870161d00ed" + "WESTUS2:20180523T212431Z:1addb0b0-4a26-46ea-8d3a-d5083486893b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +580,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/d5516a81-8b25-4823-8a89-4dc8b5d38a94?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi9kNTUxNmE4MS04YjI1LTQ4MjMtOGE4OS00ZGM4YjVkMzhhOTQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"d5516a81-8b25-4823-8a89-4dc8b5d38a94\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:24:00.723Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +602,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:34 GMT" + "Wed, 23 May 2018 21:24:45 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3cfeb70e-1334-4667-a990-c1ea83ca9fe5" + "8a26b6f6-a0e0-4808-92a2-b1253d678d22" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14923" + "14998" ], "x-ms-correlation-request-id": [ - "1e52d421-4bf8-4a45-aa74-edadbbb1b3f0" + "2979caa7-282d-4dfb-928f-75bbd6487ac5" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080034Z:1e52d421-4bf8-4a45-aa74-edadbbb1b3f0" + "WESTUS2:20180523T212446Z:2979caa7-282d-4dfb-928f-75bbd6487ac5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +641,17 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/databaseAzureAsyncOperation/d5516a81-8b25-4823-8a89-4dc8b5d38a94?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi9kNTUxNmE4MS04YjI1LTQ4MjMtOGE4OS00ZGM4YjVkMzhhOTQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"d5516a81-8b25-4823-8a89-4dc8b5d38a94\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:24:00.723Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +663,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:49 GMT" + "Wed, 23 May 2018 21:25:01 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "22be3719-481d-451a-bc21-a66c400b5949" + "8e43d9a7-58e0-482e-9bc0-5c97d4e1d899" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14921" + "14997" ], "x-ms-correlation-request-id": [ - "ffe96e77-b7ac-4235-bc7f-93e344be868f" + "738c95e0-f721-4930-99f4-876c167d84b3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080050Z:ffe96e77-b7ac-4235-bc7f-93e344be868f" + "WESTUS2:20180523T212501Z:738c95e0-f721-4930-99f4-876c167d84b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +702,17 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50ZXhwb3J0c2NhbnRlc3QtNzA4Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "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\": \"89c975ac-e5c7-44b1-b9cd-c2b8c39c01f4\",\r\n \"creationDate\": \"2018-05-23T21:24:01.02Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"South Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-23T21:54:51.82Z\",\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\": \"northcentralus\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082\",\r\n \"name\": \"sqlvulnerabilityassessmentexportscantest-7082\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +724,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:49 GMT" + "Wed, 23 May 2018 21:25:01 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +739,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7927374d-3350-4ac4-9b93-73fd60350a62" + "57b3452d-be8f-4704-ad95-95b4bc3dbd58" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14920" + "14996" ], "x-ms-correlation-request-id": [ - "f4c7a74e-2e82-4057-99b5-b64424a624d4" + "5310e294-4405-411d-a338-ec4a92baf977" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080050Z:f4c7a74e-2e82-4057-99b5-b64424a624d4" + "WESTUS2:20180523T212501Z:5310e294-4405-411d-a338-ec4a92baf977" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,8 +760,8 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/securityAlertPolicies/default?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50ZXhwb3J0c2NhbnRlc3QtNzA4Mi9zZWN1cml0eUFsZXJ0UG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"emailAccountAdmins\": \"Enabled\"\r\n }\r\n}", "RequestHeaders": { @@ -711,17 +772,17 @@ "90" ], "x-ms-client-request-id": [ - "ae3bdd8e-3184-4619-9e7c-259cd25926dd" + "397275a7-f36d-4e9b-84fd-3d5b60a52a6c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/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" @@ -730,7 +791,7 @@ "no-store, no-cache" ], "Date": [ - "Mon, 21 May 2018 08:00:53 GMT" + "Wed, 23 May 2018 21:25:03 GMT" ], "Transfer-Encoding": [ "chunked" @@ -742,7 +803,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "28132062-5cba-4597-8132-7d6f27e7df20" + "5a7274e7-e987-4c32-b43d-1dfad9b22770" ], "X-Content-Type-Options": [ "nosniff" @@ -757,31 +818,31 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1199" ], "x-ms-correlation-request-id": [ - "7ec6895f-2c09-4032-b139-c1872c02e319" + "6fbee40b-a630-46f3-9658-a655db6af4ca" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080054Z:7ec6895f-2c09-4032-b139-c1872c02e319" + "WESTUS2:20180523T212504Z:6fbee40b-a630-46f3-9658-a655db6af4ca" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourceGroups/sqlcrudtest-8985/providers/Microsoft.Storage/storageAccounts/sqlvatest2956?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QyOTU2P2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Storage/storageAccounts/sqlvatest1851?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxODUxP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "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}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "152" + "159" ], "x-ms-client-request-id": [ - "6d125ab3-31ae-4cf1-b8c0-7723d5524a88" + "a1a7b5fb-747f-46c7-9e6e-3aefdce9bd2c" ], "accept-language": [ "en-US" @@ -806,13 +867,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:04 GMT" + "Wed, 23 May 2018 21:25:05 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/524faada-8aac-49bb-ac29-62a55a956011?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -821,7 +882,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "28ecbffa-8b57-4494-85d3-8ed93c67bfd7" + "524faada-8aac-49bb-ac29-62a55a956011" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -830,10 +891,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "4ce2aafa-07f7-4f9b-bc58-e11063fe6b07" + "5520d47f-e753-44a7-aa35-b9389c6e0f46" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080105Z:4ce2aafa-07f7-4f9b-bc58-e11063fe6b07" + "WESTUS2:20180523T212506Z:5520d47f-e753-44a7-aa35-b9389c6e0f46" ], "X-Content-Type-Options": [ "nosniff" @@ -842,8 +903,8 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/providers/Microsoft.Storage/locations/northcentralus/asyncoperations/524faada-8aac-49bb-ac29-62a55a956011?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvbm9ydGhjZW50cmFsdXMvYXN5bmNvcGVyYXRpb25zLzUyNGZhYWRhLThhYWMtNDliYi1hYzI5LTYyYTU1YTk1NjAxMT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -852,7 +913,7 @@ "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}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Storage/storageAccounts/sqlvatest1851\",\r\n \"name\": \"sqlvatest1851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"northcentralus\",\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 \"4c8f1d26-c1d3-40f7-a12b-4d72de2a6d3c\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:25:05.9767419Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-05-23T21:25:05.9767419Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-05-23T21:25:05.9142416Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlvatest1851.blob.core.windows.net/\",\r\n \"table\": \"https://sqlvatest1851.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"northcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -864,7 +925,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:21 GMT" + "Wed, 23 May 2018 21:25:23 GMT" ], "Pragma": [ "no-cache" @@ -879,7 +940,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "93e7ebb9-3156-436b-857a-874dafbd080e" + "b3d85c7a-f063-4ba1-841d-36e897af8fdf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -888,10 +949,10 @@ "14999" ], "x-ms-correlation-request-id": [ - "37af603e-0f92-4d1e-9fb2-23ad818c1ba1" + "e8b08099-12dc-46cd-ac21-32d182c59c67" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080122Z:37af603e-0f92-4d1e-9fb2-23ad818c1ba1" + "WESTUS2:20180523T212523Z:e8b08099-12dc-46cd-ac21-32d182c59c67" ], "X-Content-Type-Options": [ "nosniff" @@ -900,13 +961,13 @@ "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=", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Storage/storageAccounts/sqlvatest1851/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWx2YXRlc3QxODUxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTctMDYtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1197aa7e-a1ed-4b0e-af83-fd2ef76a97d1" + "71d6b469-c58b-4794-8430-da685cf9d5f8" ], "accept-language": [ "en-US" @@ -916,7 +977,7 @@ "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}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"t/ZN2NAo5I3vjydhhSlgrHlXuycYgTY/lv3QKyt0dAe1PC04jqOdCxfr+0IBCxY6VRaGUOsGfJDV4J6YUldb1g==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"EzY6rdcSsaR0LAM8Z9Jvy3rh2yzLNbypxY28qKXkAbqxrFRgKkAoPiimTT5q0UgnFRCy7ZUZT4x0vkHD+/qcNw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -928,7 +989,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:23 GMT" + "Wed, 23 May 2018 21:25:23 GMT" ], "Pragma": [ "no-cache" @@ -943,7 +1004,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "953a3b56-c8bb-4b34-940b-218ece16c88d" + "10fd962a-4d29-41e1-8c01-7e83f1fb92f9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -952,10 +1013,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "8bf9f24b-00b3-46d7-94b1-8ed57d7bdb5e" + "56bdf8f0-a3d5-4151-bb50-0af20368c0db" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080123Z:8bf9f24b-00b3-46d7-94b1-8ed57d7bdb5e" + "WESTUS2:20180523T212523Z:56bdf8f0-a3d5-4151-bb50-0af20368c0db" ], "X-Content-Type-Options": [ "nosniff" @@ -964,29 +1025,29 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/vulnerabilityAssessments/default?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50ZXhwb3J0c2NhbnRlc3QtNzA4Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "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}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest1851.blob.core.windows.net/vulnerability-assessment\",\r\n \"storageContainerSasKey\": \"?sv=2016-05-31&sr=c&sig=UYqXYDM8AyNPT%2BZz%2FNQ6PeW18pobk%2Bi1NyM7%2FUJjpHw%3D&se=2018-05-23T22%3A25%3A23Z&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" + "465" ], "x-ms-client-request-id": [ - "862e98d5-5fcc-4108-bf23-1c267d01fc2e" + "61eae31c-117a-4a5d-bffb-b4ab77793ce1" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageContainerPath\": \"https://sqlvatest1851.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/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/vulnerabilityAssessments/Default\",\r\n \"name\": \"Default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/vulnerabilityAssessments\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -998,7 +1059,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:28 GMT" + "Wed, 23 May 2018 21:25:32 GMT" ], "Pragma": [ "no-cache" @@ -1013,16 +1074,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "131d0a04-b83e-4e10-b5f2-3ae483d9a263" + "2d914e79-cc9c-446a-9622-55b2ecb8f52e" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1198" ], "x-ms-correlation-request-id": [ - "0f398339-b05c-4c00-8fda-86f841b0d2b1" + "7507b51a-a797-4d15-9eff-4973c4cc8cf2" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080129Z:0f398339-b05c-4c00-8fda-86f841b0d2b1" + "WESTUS2:20180523T212533Z:7507b51a-a797-4d15-9eff-4973c4cc8cf2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1034,23 +1095,23 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/initiateScan?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50ZXhwb3J0c2NhbnRlc3QtNzA4Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdC9zY2Fucy9zY2FuMV9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LS9pbml0aWF0ZVNjYW4/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2d9b368d-019b-4f0a-bae6-02756b5148f3" + "c0d08de6-427b-4d91-9ef7-26e1753145ae" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-21T08:01:29.39Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"ExecuteDatabaseVulnerabilityAssessmentScan\",\r\n \"startTime\": \"2018-05-23T21:25:33.42Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "96" @@ -1065,13 +1126,13 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:28 GMT" + "Wed, 23 May 2018 21:25:33 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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanOperationResults/6cdc8d47-aea5-4b25-a9dd-471ad3762bec?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -1080,19 +1141,19 @@ "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" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/6cdc8d47-aea5-4b25-a9dd-471ad3762bec?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "39b59006-35b9-4881-beda-8349c4928fca" + "25ee456f-b049-4152-97df-044510523439" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1197" ], "x-ms-correlation-request-id": [ - "b32ca17f-118a-4e85-ab0b-8dc9ea4b5f70" + "b5c9998b-58b4-4abf-a48a-f2bfd34b87fe" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080129Z:b32ca17f-118a-4e85-ab0b-8dc9ea4b5f70" + "WESTUS2:20180523T212533Z:b5c9998b-58b4-4abf-a48a-f2bfd34b87fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,17 +1165,78 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/6cdc8d47-aea5-4b25-a9dd-471ad3762bec?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2NhbkF6dXJlQXN5bmNPcGVyYXRpb24vNmNkYzhkNDctYWVhNS00YjI1LWE5ZGQtNDcxYWQzNzYyYmVjP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6cdc8d47-aea5-4b25-a9dd-471ad3762bec\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-23T21:25:33.42Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 23 May 2018 21:25:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "05000b52-ee53-48b3-81f2-d6bcad74b5f6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "7c066e86-39b6-4d90-8b3b-2ad06c96ba05" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180523T212548Z:7c066e86-39b6-4d90-8b3b-2ad06c96ba05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanAzureAsyncOperation/6cdc8d47-aea5-4b25-a9dd-471ad3762bec?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2NhbkF6dXJlQXN5bmNPcGVyYXRpb24vNmNkYzhkNDctYWVhNS00YjI1LWE5ZGQtNDcxYWQzNzYyYmVjP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"name\": \"6cdc8d47-aea5-4b25-a9dd-471ad3762bec\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-23T21:25:33.42Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1126,7 +1248,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:45 GMT" + "Wed, 23 May 2018 21:26:04 GMT" ], "Pragma": [ "no-cache" @@ -1144,16 +1266,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "300f4027-20b5-48a7-b72a-759959d878be" + "e5544b1b-dcad-4245-b379-9dffcc99f974" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14918" + "14994" ], "x-ms-correlation-request-id": [ - "c5f5e78b-8808-4f9a-80b7-39e6352befa6" + "a37c2492-50c9-4d5a-a117-f6d7422c1091" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080145Z:c5f5e78b-8808-4f9a-80b7-39e6352befa6" + "WESTUS2:20180523T212604Z:a37c2492-50c9-4d5a-a117-f6d7422c1091" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1165,20 +1287,20 @@ "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", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/locations/northcentralus/vulnerabilityAssessmentScanOperationResults/6cdc8d47-aea5-4b25-a9dd-471ad3762bec?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL25vcnRoY2VudHJhbHVzL3Z1bG5lcmFiaWxpdHlBc3Nlc3NtZW50U2Nhbk9wZXJhdGlvblJlc3VsdHMvNmNkYzhkNDctYWVhNS00YjI1LWE5ZGQtNDcxYWQzNzYyYmVjP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"scanId\": \"scan1_sqlvulnerabilityassessmentexportscantest-\",\r\n \"triggerType\": \"OnDemand\",\r\n \"state\": \"Failed\",\r\n \"startTime\": \"2018-05-23T21:25:33.42Z\",\r\n \"endTime\": \"9999-12-31T23:59:59.9999999Z\",\r\n \"storageContainerPath\": \"https://sqlvatest1851.blob.core.windows.net/vulnerability-assessment/\",\r\n \"numberOfFailedSecurityChecks\": 0\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/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" + "735" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1190,7 +1312,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:45 GMT" + "Wed, 23 May 2018 21:26:04 GMT" ], "Pragma": [ "no-cache" @@ -1199,16 +1321,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8c349c23-395a-47df-af98-777b2fa908f6" + "4dd7327b-a582-4a21-b390-f0d8166aeaa8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14917" + "14993" ], "x-ms-correlation-request-id": [ - "3fda240f-c01a-4602-b6c8-ac003330245a" + "8c017e10-70bc-437b-bc15-3963e60140d3" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080145Z:3fda240f-c01a-4602-b6c8-ac003330245a" + "WESTUS2:20180523T212604Z:8c017e10-70bc-437b-bc15-3963e60140d3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1220,26 +1342,26 @@ "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==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/vulnerabilityAssessments/default/scans/scan1_sqlvulnerabilityassessmentexportscantest-/export?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTcvZGF0YWJhc2VzL3NxbHZ1bG5lcmFiaWxpdHlhc3Nlc3NtZW50ZXhwb3J0c2NhbnRlc3QtNzA4Mi92dWxuZXJhYmlsaXR5QXNzZXNzbWVudHMvZGVmYXVsdC9zY2Fucy9zY2FuMV9zcWx2dWxuZXJhYmlsaXR5YXNzZXNzbWVudGV4cG9ydHNjYW50ZXN0LS9leHBvcnQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7e17eda1-65da-4e79-bf6e-ba752dc28bd6" + "b9a384a6-5aa1-40f6-8e41-afa3b4567724" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.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}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"exportedReportLocation\": \"https://sqlvatest1851.blob.core.windows.net/vulnerability-assessment/scans/sqlcrudtest-117/sqlvulnerabilityassessmentexportscantest-7082/scan_scan1_sqlvulnerabilityassessmentexportscantest-.xlsx\"\r\n },\r\n \"id\": \"/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourceGroups/sqlcrudtest-1442/providers/Microsoft.Sql/servers/sqlcrudtest-117/databases/sqlvulnerabilityassessmentexportscantest-7082/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" + "663" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1251,7 +1373,7 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:47 GMT" + "Wed, 23 May 2018 21:26:09 GMT" ], "Pragma": [ "no-cache" @@ -1260,16 +1382,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "48ad4d63-ed18-436a-ab8b-a1e98f749162" + "05014c1e-a545-4270-880f-2ba8e44a31ad" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1196" ], "x-ms-correlation-request-id": [ - "5fa20766-69f8-4c40-8fe6-ff2b9657c3c2" + "9c5ee43b-76cd-4b94-89c1-39e405f9684d" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080148Z:5fa20766-69f8-4c40-8fe6-ff2b9657c3c2" + "WESTUS2:20180523T212609Z:9c5ee43b-76cd-4b94-89c1-39e405f9684d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1281,13 +1403,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/resourcegroups/sqlcrudtest-8985?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2NhMjRlYzgtOTliNS00YWE3LTlmZjYtNDg2ZTg4NmYzMDRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg5ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/resourcegroups/sqlcrudtest-1442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjI4ODcyZDYtNGE5My00YmIxLTg0YjktYWVjYjAyYjZhZjRjL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "59f390f0-f805-44f2-9ad8-52fad3a53e4e" + "55e0a6d7-37df-4938-a5b1-355575c2d750" ], "accept-language": [ "en-US" @@ -1309,28 +1431,28 @@ "no-cache" ], "Date": [ - "Mon, 21 May 2018 08:01:50 GMT" + "Wed, 23 May 2018 21:26:10 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/cca24ec8-99b5-4aa7-9ff6-486e886f304c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg5ODUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/f28872d6-4a93-4bb1-84b9-aecb02b6af4c/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDE0NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14999" ], "x-ms-request-id": [ - "f088dff8-a2cb-4daa-adcd-c4238cbe7ab7" + "3e98eb16-b548-41d3-a73b-f7f1c5500a05" ], "x-ms-correlation-request-id": [ - "f088dff8-a2cb-4daa-adcd-c4238cbe7ab7" + "3e98eb16-b548-41d3-a73b-f7f1c5500a05" ], "x-ms-routing-request-id": [ - "WESTEUROPE:20180521T080151Z:f088dff8-a2cb-4daa-adcd-c4238cbe7ab7" + "WESTUS2:20180523T212611Z:3e98eb16-b548-41d3-a73b-f7f1c5500a05" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1344,20 +1466,20 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8985" + "sqlcrudtest-1442" ], "CreateServer": [ - "sqlcrudtest-3795" + "sqlcrudtest-117" ], "TestExportDatabaseVulnerabilityAssessmentScans": [ - "sqlvulnerabilityassessmentexportscantest-2744" + "sqlvulnerabilityassessmentexportscantest-7082" ], "CreateStorageContainer": [ - "sqlvatest2956" + "sqlvatest1851" ] }, "Variables": { - "DefaultLocation": "west us 2", - "SubscriptionId": "cca24ec8-99b5-4aa7-9ff6-486e886f304c" + "DefaultLocation": "north central us", + "SubscriptionId": "f28872d6-4a93-4bb1-84b9-aecb02b6af4c" } } \ No newline at end of file