From 339e8900442b4453a6026689173c9d14d583a91c Mon Sep 17 00:00:00 2001 From: Reilly Wong Date: Wed, 12 May 2021 17:23:28 -0700 Subject: [PATCH 1/6] ledger changes + changes for new SDK version --- src/Sql/Sql/Common/ResourceIdentityHelper.cs | 6 +- ...SqlDatabaseLongTermRetentionPolicyModel.cs | 2 +- .../Services/AzureSqlDatabaseBackupAdapter.cs | 8 +- .../AzureSqlDatabaseBackupCommunicator.cs | 10 +- .../Database/Cmdlet/NewAzureSqlDatabase.cs | 8 + .../Database/Cmdlet/SetAzureSqlDatabase.cs | 8 + .../Database/Model/AzureSqlDatabaseModel.cs | 9 +- .../Services/AzureSqlDatabaseAdapter.cs | 3 +- .../AzureSqlDatabaseLedgerDigestUploadBase.cs | 83 ++++++++++ .../DisableAzSqlDatabaseLedgerDigestUpload.cs | 96 +++++++++++ .../EnableAzSqlDatabaseLedgerDigestUpload.cs | 105 ++++++++++++ .../GetAzSqlDatabaseLedgerDigestUpload.cs | 82 ++++++++++ ...ureSqlDatabaseLedgerDigestLocationModel.cs | 33 ++++ ...AzureSqlDatabaseLedgerDigestUploadModel.cs | 64 ++++++++ ...ureSqlDatabaseLedgerDigestUploadAdapter.cs | 136 ++++++++++++++++ ...lDatabaseLedgerDigestUploadCommunicator.cs | 153 ++++++++++++++++++ .../Model/AzureSqlManagedInstanceModel.cs | 2 +- .../AzureSqlDatabaseReplicationAdapter.cs | 10 +- .../Sql/Server/Model/AzureSqlServerModel.cs | 2 +- .../Services/SqlThreatDetectionAdapter.cs | 10 +- 20 files changed, 803 insertions(+), 27 deletions(-) create mode 100644 src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs create mode 100644 src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs create mode 100644 src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs create mode 100644 src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs create mode 100644 src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs create mode 100644 src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestUploadModel.cs create mode 100644 src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs create mode 100644 src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs diff --git a/src/Sql/Sql/Common/ResourceIdentityHelper.cs b/src/Sql/Sql/Common/ResourceIdentityHelper.cs index d46522662bda..c2bae839ffdd 100644 --- a/src/Sql/Sql/Common/ResourceIdentityHelper.cs +++ b/src/Sql/Sql/Common/ResourceIdentityHelper.cs @@ -21,12 +21,12 @@ public enum ResourceIdentityType public class ResourceIdentityHelper { - public static Management.Sql.Models.ResourceIdentity GetIdentityObjectFromType(bool assignIdentityIsPresent) + public static Management.Sql.Models.ResourceIdentityWithUserAssignedIdentities GetIdentityObjectFromType(bool assignIdentityIsPresent) { - Management.Sql.Models.ResourceIdentity identityResult = null; + Management.Sql.Models.ResourceIdentityWithUserAssignedIdentities identityResult = null; if (assignIdentityIsPresent) { - identityResult = new Management.Sql.Models.ResourceIdentity() + identityResult = new Management.Sql.Models.ResourceIdentityWithUserAssignedIdentities() { Type = ResourceIdentityType.SystemAssigned.ToString() }; diff --git a/src/Sql/Sql/Database Backup/Model/AzureSqlDatabaseLongTermRetentionPolicyModel.cs b/src/Sql/Sql/Database Backup/Model/AzureSqlDatabaseLongTermRetentionPolicyModel.cs index 5f10b8a59a3e..1f842167552c 100644 --- a/src/Sql/Sql/Database Backup/Model/AzureSqlDatabaseLongTermRetentionPolicyModel.cs +++ b/src/Sql/Sql/Database Backup/Model/AzureSqlDatabaseLongTermRetentionPolicyModel.cs @@ -36,6 +36,6 @@ public class AzureSqlDatabaseLongTermRetentionPolicyModel /// /// Gets or sets the long term retention policy of the database /// - public BackupLongTermRetentionPolicy Policy { get; set; } + public LongTermRetentionPolicy Policy { get; set; } } } diff --git a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs index 7ac6a132baae..62e93d052989 100644 --- a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs +++ b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs @@ -263,7 +263,7 @@ internal AzureSqlDatabaseBackupLongTermRetentionPolicyModel GetDatabaseBackupLon string serverName, string databaseName) { - Management.Sql.Models.BackupLongTermRetentionPolicy response = Communicator.GetDatabaseLongTermRetentionPolicy( + Management.Sql.Models.LongTermRetentionPolicy response = Communicator.GetDatabaseLongTermRetentionPolicy( resourceGroup, serverName, databaseName); @@ -324,11 +324,11 @@ internal AzureSqlDatabaseBackupLongTermRetentionPolicyModel SetDatabaseBackupLon string databaseName, AzureSqlDatabaseBackupLongTermRetentionPolicyModel model) { - Management.Sql.Models.BackupLongTermRetentionPolicy response = Communicator.SetDatabaseLongTermRetentionPolicy( + Management.Sql.Models.LongTermRetentionPolicy response = Communicator.SetDatabaseLongTermRetentionPolicy( resourceGroup, serverName, databaseName, - new Management.Sql.Models.BackupLongTermRetentionPolicy() + new Management.Sql.Models.LongTermRetentionPolicy() { WeeklyRetention = model.WeeklyRetention, MonthlyRetention = model.MonthlyRetention, @@ -524,7 +524,7 @@ internal AzureSqlDatabaseModel RestoreDatabase(string resourceGroup, DateTime re Capacity = model.Capacity }, LicenseType = model.LicenseType, - StorageAccountType = MapExternalBackupStorageRedundancyToInternal(model.BackupStorageRedundancy), + RequestedBackupStorageRedundancy = MapExternalBackupStorageRedundancyToInternal(model.BackupStorageRedundancy), }; if (model.CreateMode == Management.Sql.Models.CreateMode.Recovery) diff --git a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs index 9efa6f7a2748..2a473e539c3d 100644 --- a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs +++ b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs @@ -224,12 +224,12 @@ public Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicy Set /// The resource group name. /// The server name. /// The database name. - public Management.Sql.Models.BackupLongTermRetentionPolicy GetDatabaseLongTermRetentionPolicy( + public Management.Sql.Models.LongTermRetentionPolicy GetDatabaseLongTermRetentionPolicy( string resourceGroup, string serverName, string databaseName) { - return GetCurrentSqlClient().BackupLongTermRetentionPolicies.Get(resourceGroup, serverName, databaseName); + return GetCurrentSqlClient().LongTermRetentionPolicies.Get(resourceGroup, serverName, databaseName); } /// @@ -239,13 +239,13 @@ public Management.Sql.Models.BackupLongTermRetentionPolicy GetDatabaseLongTermRe /// The server name. /// The database name. /// The Long Term Retention policy to apply. - public Management.Sql.Models.BackupLongTermRetentionPolicy SetDatabaseLongTermRetentionPolicy( + public Management.Sql.Models.LongTermRetentionPolicy SetDatabaseLongTermRetentionPolicy( string resourceGroup, string serverName, string databaseName, - Management.Sql.Models.BackupLongTermRetentionPolicy policy) + Management.Sql.Models.LongTermRetentionPolicy policy) { - return GetCurrentSqlClient().BackupLongTermRetentionPolicies.CreateOrUpdate(resourceGroup, serverName, databaseName, policy); + return GetCurrentSqlClient().LongTermRetentionPolicies.CreateOrUpdate(resourceGroup, serverName, databaseName, policy); } /// diff --git a/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs b/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs index 05fa1b5cc6f9..5c222e7f8252 100644 --- a/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs +++ b/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs @@ -231,6 +231,13 @@ public class NewAzureSqlDatabase : AzureSqlDatabaseCmdletBase + /// Gets or sets the ledger option to assign to the Azure SQL Database + /// + [Parameter(Mandatory = false, + HelpMessage = "The enable ledger option for the Azure Sql Database")] + public SwitchParameter EnableLedger { get; set; } + /// /// Overriding to add warning message /// @@ -315,6 +322,7 @@ protected override AzureSqlDatabaseCreateOrUpdateModel ApplyUserInputToModel(Azu BackupStorageRedundancy = BackupStorageRedundancy, SecondaryType = SecondaryType, MaintenanceConfigurationId = MaintenanceConfigurationId, + EnableLedger = this.IsParameterBound(p => p.EnableLedger) ? EnableLedger.ToBool() : (bool?)null, }; if (ParameterSetName == DtuDatabaseParameterSet) diff --git a/src/Sql/Sql/Database/Cmdlet/SetAzureSqlDatabase.cs b/src/Sql/Sql/Database/Cmdlet/SetAzureSqlDatabase.cs index 59ec570bdba4..3245edbe5596 100644 --- a/src/Sql/Sql/Database/Cmdlet/SetAzureSqlDatabase.cs +++ b/src/Sql/Sql/Database/Cmdlet/SetAzureSqlDatabase.cs @@ -257,6 +257,13 @@ public class SetAzureSqlDatabase : AzureSqlDatabaseCmdletBase + /// Gets or sets the ledger option to assign to the Azure SQL Database + /// + [Parameter(Mandatory = false, + HelpMessage = "The enable ledger option for the Azure Sql Database")] + public SwitchParameter EnableLedger { get; set; } + /// /// Overriding to add warning message /// @@ -311,6 +318,7 @@ protected override IEnumerable ApplyUserInputToModel(IEnu BackupStorageRedundancy = BackupStorageRedundancy, SecondaryType = SecondaryType, MaintenanceConfigurationId = MaintenanceConfigurationId, + EnableLedger = MyInvocation.BoundParameters.ContainsKey("EnableLedger") ? (bool?)EnableLedger.ToBool() : null, }; var database = ModelAdapter.GetDatabase(ResourceGroupName, ServerName, DatabaseName); diff --git a/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs b/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs index 970254cef2ac..18eb07304887 100644 --- a/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs +++ b/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs @@ -200,6 +200,11 @@ public class AzureSqlDatabaseModel /// public string MaintenanceConfigurationId { get; set; } + /// + /// Gets or sets the ledger property for the database + /// + public bool? EnableLedger { get; set; } + /// /// Construct AzureSqlDatabaseModel /// @@ -257,6 +262,7 @@ public AzureSqlDatabaseModel(string resourceGroup, string serverName, Management BackupStorageRedundancy = null; SecondaryType = null; MaintenanceConfigurationId = null; + EnableLedger = false; } /// @@ -308,9 +314,10 @@ public AzureSqlDatabaseModel(string resourceGroup, string serverName, Management AutoPauseDelayInMinutes = database.AutoPauseDelay; MinimumCapacity = database.MinCapacity; HighAvailabilityReplicaCount = database.HighAvailabilityReplicaCount; - BackupStorageRedundancy = MapInternalBackupStorageRedundancyToExternal(database.StorageAccountType); + BackupStorageRedundancy = MapInternalBackupStorageRedundancyToExternal(database.CurrentBackupStorageRedundancy); SecondaryType = database.SecondaryType; MaintenanceConfigurationId = database.MaintenanceConfigurationId; + EnableLedger = database.IsLedgerOn; } /// diff --git a/src/Sql/Sql/Database/Services/AzureSqlDatabaseAdapter.cs b/src/Sql/Sql/Database/Services/AzureSqlDatabaseAdapter.cs index b705c9895d42..63d2ee5c811f 100644 --- a/src/Sql/Sql/Database/Services/AzureSqlDatabaseAdapter.cs +++ b/src/Sql/Sql/Database/Services/AzureSqlDatabaseAdapter.cs @@ -161,9 +161,10 @@ internal AzureSqlDatabaseModel UpsertDatabaseWithNewSdk(string resourceGroup, st AutoPauseDelay = model.Database.AutoPauseDelayInMinutes, MinCapacity = model.Database.MinimumCapacity, HighAvailabilityReplicaCount = model.Database.HighAvailabilityReplicaCount, - StorageAccountType = MapExternalBackupStorageRedundancyToInternal(model.Database.BackupStorageRedundancy), + RequestedBackupStorageRedundancy = MapExternalBackupStorageRedundancyToInternal(model.Database.BackupStorageRedundancy), SecondaryType = model.Database.SecondaryType, MaintenanceConfigurationId = MaintenanceConfigurationHelper.ConvertMaintenanceConfigurationIdArgument(model.Database.MaintenanceConfigurationId, _subscription.Id), + IsLedgerOn = model.Database.EnableLedger, }); return CreateDatabaseModelFromResponse(resourceGroup, serverName, resp); diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs new file mode 100644 index 000000000000..b83470de3f8d --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs @@ -0,0 +1,83 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Commands.Common.Authentication.Abstractions; +using Microsoft.Azure.Commands.Common.Authentication.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.Sql.Common; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Services; +using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using System; +using System.Collections.Generic; +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Cmdlet +{ + public abstract class AzureSqlDatabaseLedgerDigestUploadBase : AzureSqlCmdletBase, AzureSqlDatabaseLedgerDigestUploadAdapter> + { + /// + /// Gets or sets the name of the Azure Sql server to use + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 1, + HelpMessage = "The Azure Sql Server name.")] + [ResourceNameCompleter("Microsoft.Sql/servers", "ResourceGroupName")] + [ValidateNotNullOrEmpty] + public string ServerName { get; set; } + + /// + /// Gets or sets the name of the database to use. + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 2, + HelpMessage = "The name of the Azure SQL Database.")] + [ResourceNameCompleter("Microsoft.Sql/servers/databases", "ResourceGroupName", "ServerName")] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + /// + /// Gets or sets the Database object to get the ledger digest upload configuration for + /// + [Parameter( + ParameterSetName = "DatabaseObjectParameterSet", + Mandatory = true, + ValueFromPipeline = true, + HelpMessage = "The database object to manage its ledger digest upload configuration.")] + [ValidateNotNullOrEmpty] + [Alias("AzureSqlDatabase")] + public AzureSqlDatabaseModel AzureSqlDatabaseObject { get; set; } + + /// + /// Gets or sets the Database Resource ID to get backups for + /// + [Parameter(Mandatory = true, + Position = 0, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The database Resource ID to get backups for.")] + public string ResourceId { get; set; } + + /// + /// Intializes the model adapter + /// + /// The server adapter + protected override AzureSqlDatabaseLedgerDigestUploadAdapter InitModelAdapter() + { + return new AzureSqlDatabaseLedgerDigestUploadAdapter(DefaultProfile.DefaultContext); + } + } +} diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs new file mode 100644 index 000000000000..176aad613de5 --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs @@ -0,0 +1,96 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; + +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Cmdlet +{ + /// + /// Defines the Disable-AzSqlDatabaseLedgerDigestUpload cmdlet + /// + [Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseLedgerDigestUpload", ConfirmImpact = ConfirmImpact.Low, SupportsShouldProcess = true), OutputType(typeof(AzureSqlDatabaseLedgerDigestLocationModel))] + public class DisableAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDigestUploadBase + { + /// + /// Get the entities from the service + /// + /// The list of entities + protected override IEnumerable GetEntity() + { + if (AzureSqlDatabaseObject != null) + { + ServerName = AzureSqlDatabaseObject.ServerName; + DatabaseName = AzureSqlDatabaseObject.DatabaseName; + ResourceGroupName = AzureSqlDatabaseObject.ResourceGroupName; + } + else if (!string.IsNullOrWhiteSpace(ResourceId)) + { + ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); + DatabaseName = identifier.ResourceName; + ResourceGroupName = identifier.ResourceGroupName; + ServerName = identifier.ParentResource.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1]; + } + + ICollection results = new List() + { + ModelAdapter.GetLedgerDigestUpload( + this.ResourceGroupName, + this.ServerName, + this.DatabaseName) + }; + + return results; + } + + /// + /// Create the model from user input + /// + /// Model retrieved from service + /// The model that was passed in + protected override IEnumerable ApplyUserInputToModel(IEnumerable model) + { + return new List() + { + new AzureSqlDatabaseLedgerDigestUploadModel( + ResourceGroupName, + ServerName, + DatabaseName, + new Management.Sql.Models.LedgerDigestUploads{ + DigestStorageEndpoint = null + }) + }; + } + + /// + /// Update the entity + /// + /// The output of apply user input to model + /// The input entity + protected override IEnumerable PersistChanges(IEnumerable entity) + { + if (!ShouldProcess(DatabaseName)) return null; + + return new List() { + ModelAdapter.SetLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName, entity.First()) + }; + } + } +} \ No newline at end of file diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs new file mode 100644 index 000000000000..6ae79b257643 --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs @@ -0,0 +1,105 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Cmdlet +{ + /// + /// Defines the Enable-AzSqlDatabaseLedgerDigestUpload cmdlet + /// + [Cmdlet("Enable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseLedgerDigestUpload", ConfirmImpact = ConfirmImpact.Low, SupportsShouldProcess = true), OutputType(typeof(AzureSqlDatabaseLedgerDigestLocationModel))] + public class EnableAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDigestUploadBase + { + /// + /// Gets or sets the Azure Sql Database Ledger Digest Uploads endpoint + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 3, + HelpMessage = "The Azure Sql Database Ledger Digest Uploads endpoint.")] + [ValidateNotNullOrEmpty] + public string Endpoint { get; set; } + + /// + /// Get the entities from the service + /// + /// The list of entities + protected override IEnumerable GetEntity() + { + if (AzureSqlDatabaseObject != null) + { + ServerName = AzureSqlDatabaseObject.ServerName; + DatabaseName = AzureSqlDatabaseObject.DatabaseName; + ResourceGroupName = AzureSqlDatabaseObject.ResourceGroupName; + } + else if (!string.IsNullOrWhiteSpace(ResourceId)) + { + ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); + DatabaseName = identifier.ResourceName; + ResourceGroupName = identifier.ResourceGroupName; + ServerName = identifier.ParentResource.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1]; + } + + ICollection results = new List() + { + ModelAdapter.GetLedgerDigestUpload( + this.ResourceGroupName, + this.ServerName, + this.DatabaseName) + }; + + return results; + } + + /// + /// Create the model from user input + /// + /// Model retrieved from service + /// The model that was passed in + protected override IEnumerable ApplyUserInputToModel(IEnumerable model) + { + return new List() + { + new AzureSqlDatabaseLedgerDigestUploadModel( + ResourceGroupName, + ServerName, + DatabaseName, + new Management.Sql.Models.LedgerDigestUploads { + DigestStorageEndpoint = Endpoint + }) + }; + } + + /// + /// Update the entity + /// + /// The output of apply user input to model + /// The input entity + protected override IEnumerable PersistChanges(IEnumerable entity) + { + if (!ShouldProcess(DatabaseName)) return null; + + return new List() { + ModelAdapter.SetLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName, entity.First()) + }; + } + } +} \ No newline at end of file diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs new file mode 100644 index 000000000000..843404926ce7 --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs @@ -0,0 +1,82 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; + +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Cmdlet +{ + [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseLedgerDigestUpload", SupportsShouldProcess = true), OutputType(typeof(AzureSqlDatabaseLedgerDigestUploadModel))] + public class GetAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDigestUploadBase + { + /// + /// Get the entities from the service + /// + /// The list of entities + protected override IEnumerable GetEntity() + { + if (AzureSqlDatabaseObject != null) + { + ServerName = AzureSqlDatabaseObject.ServerName; + DatabaseName = AzureSqlDatabaseObject.DatabaseName; + ResourceGroupName = AzureSqlDatabaseObject.ResourceGroupName; + } + else if (!string.IsNullOrWhiteSpace(ResourceId)) + { + ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); + DatabaseName = identifier.ResourceName; + ResourceGroupName = identifier.ResourceGroupName; + ServerName = identifier.ParentResource.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1]; + } + + ICollection results = new List() + { + ModelAdapter.GetLedgerDigestUpload( + this.ResourceGroupName, + this.ServerName, + this.DatabaseName) + }; + + return results; + } + + /// + /// No user input to apply to model + /// + /// Model retrieved from service + /// The model that was passed in + protected override IEnumerable ApplyUserInputToModel( + IEnumerable model) + { + return model; + } + + /// + /// No changes to persist to server + /// + /// The output of apply user input to model + /// The input entity + protected override IEnumerable PersistChanges( + IEnumerable entity) + { + return entity; + } + } +} diff --git a/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs b/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs new file mode 100644 index 000000000000..794115614c51 --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model +{ + class AzureSqlDatabaseLedgerDigestLocationModel + { + /// + /// Gets or sets the name of the resource group + /// + public string ResourceGroupName { get; set; } + + /// + /// Gets or sets the name of the server + /// + public string ServerName { get; set; } + + /// + /// Gets or sets the name of the database + /// + public string DatabaseName { get; set; } + + /// + /// Gets or sets the ledger digest upload endpoint + /// + public string Endpoint { get; set; } + + public Int64 LastDigestBlockId { get; set; } + + public bool IsCurrent { get; set; } + } +} diff --git a/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestUploadModel.cs b/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestUploadModel.cs new file mode 100644 index 000000000000..656e28b4ce71 --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestUploadModel.cs @@ -0,0 +1,64 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model +{ + /// + /// The possible states in which an ledger digest upload configuration may be in + /// + public enum LedgerDigestUploadStateType { Enabled, Disabled }; + + public class AzureSqlDatabaseLedgerDigestUploadModel + { + /// + /// Construct AzureSqlDatabaseLedgerDigestUploadModel from Management.Sql.LedgerDigestUploads object + /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL Database + /// Management.Sql.LedgerDigestUploads object + public AzureSqlDatabaseLedgerDigestUploadModel(string resourceGroup, string serverName, string databaseName, Management.Sql.Models.LedgerDigestUploads configuration) + { + ResourceGroupName = resourceGroup; + ServerName = serverName; + DatabaseName = databaseName; + Endpoint = configuration.DigestStorageEndpoint; + State = string.IsNullOrEmpty(Endpoint) ? LedgerDigestUploadStateType.Disabled : LedgerDigestUploadStateType.Enabled; + } + /// + /// Gets or sets the name of the resource group + /// + public string ResourceGroupName { get; set; } + + /// + /// Gets or sets the name of the server + /// + public string ServerName { get; set; } + + /// + /// Gets or sets the name of the database + /// + public string DatabaseName { get; set; } + + /// + /// Gets the ledger digest upload state + /// + public LedgerDigestUploadStateType State { get; } + + /// + /// Gets or sets the ledger digest upload endpoint + /// + public string Endpoint { get; set; } + } +} diff --git a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs new file mode 100644 index 000000000000..575e4cf649dc --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs @@ -0,0 +1,136 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Commands.Common.Authentication.Abstractions; +using Microsoft.Azure.Commands.Common.Authentication.Models; +using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Commands.Sql.Database.Services; +using Microsoft.Azure.Commands.Sql.ElasticPool.Services; +using Microsoft.Azure.Commands.Sql.Server.Adapter; +using Microsoft.Azure.Management.Sql.LegacySdk.Models; +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Services +{ + /// + /// Adapter for database ledger digest upload operations + /// + public class AzureSqlDatabaseLedgerDigestUploadAdapter + { + /// + /// Gets or sets the AzureSqlDatabaseLedgerDigestUploadCommunicator which has all the needed management clients + /// + private AzureSqlDatabaseLedgerDigestUploadCommunicator Communicator { get; set; } + + /// + /// Gets or sets the Azure profile + /// + public IAzureContext Context { get; set; } + + /// + /// Gets or sets the Azure Subscription + /// + private IAzureSubscription _subscription { get; set; } + + /// + /// Constructs a database backup adapter + /// + /// The current azure profile + /// The current azure subscription + public AzureSqlDatabaseLedgerDigestUploadAdapter(IAzureContext context) + { + Context = context; + _subscription = context?.Subscription; + Communicator = new AzureSqlDatabaseLedgerDigestUploadCommunicator(Context); + } + + /// + /// Gets a ledger digest upload configuration for a Azure SQL Database + /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL Database + /// A ledger digest upload + internal AzureSqlDatabaseLedgerDigestUploadModel GetLedgerDigestUpload( + string resourceGroup, + string serverName, + string databaseName) + { + var configuration = Communicator.GetLedgerDigestUpload(resourceGroup, serverName, databaseName); + + return new AzureSqlDatabaseLedgerDigestUploadModel(resourceGroup, serverName, databaseName, configuration); + } + + /// + /// Create or update a ledger digest upload configuration for a Azure SQL Database + /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL Database + /// AzureSqlDatabaseLedgerDigestUploadModel model + /// A ledger digest upload + internal AzureSqlDatabaseLedgerDigestUploadModel SetLedgerDigestUpload( + string resourceGroup, + string serverName, + string databaseName, + AzureSqlDatabaseLedgerDigestUploadModel model) + { + var configuration = Communicator.SetLedgerDigestUpload( + model.ResourceGroupName, + model.ServerName, + model.DatabaseName, + new Management.Sql.Models.LedgerDigestUploads() + { + DigestStorageEndpoint = model.Endpoint + }); + + return new AzureSqlDatabaseLedgerDigestUploadModel(resourceGroup, serverName, databaseName, configuration); + } + + /// + /// Disables ledger digest upload configuration for a Azure SQL Database + /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL Database + /// A ledger digest upload + internal AzureSqlDatabaseLedgerDigestUploadModel DisableLedgerDigestUpload( + string resourceGroup, + string serverName, + string databaseName) + { + var configuration = Communicator.DisableLedgerDigestUpload( + resourceGroup, + serverName, + databaseName); + + return new AzureSqlDatabaseLedgerDigestUploadModel(resourceGroup, serverName, databaseName, configuration); + } + + + private string GetResourceGroupNameFromResourceId(string resourceId) + { + if (resourceId.Contains("/resourceGroups/")) + { + return resourceId.Split('/')[4]; + } + return null; + } + } +} diff --git a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs new file mode 100644 index 000000000000..ab7f898112df --- /dev/null +++ b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs @@ -0,0 +1,153 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Commands.Common.Authentication; +using Microsoft.Azure.Commands.Common.Authentication.Abstractions; +using Microsoft.Azure.Management.Internal.Resources; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.LegacySdk; +using Microsoft.Azure.Management.Sql.LegacySdk.Models; +using System.Collections.Generic; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Management.Internal.Resources.Models; + +namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Services +{ + /// + /// This class is responsible for all the REST communication with the database ledger digest upload REST endpoints. + /// + public class AzureSqlDatabaseLedgerDigestUploadCommunicator + { + /// + /// The Sql client to be used by this end points communicator + /// + private static Management.Sql.LegacySdk.SqlManagementClient LegacyClient { get; set; } + + /// + /// The resources management client used by this communicator + /// + private static ResourceManagementClient ResourcesClient { get; set; } + + /// + /// Gets or set the Azure subscription + /// + private static IAzureSubscription Subscription { get; set; } + + /// + /// Gets or sets the Azure profile + /// + public IAzureContext Context { get; set; } + + /// + /// Creates a communicator for Azure Sql Database ledger digest upload REST endpoints. + /// + /// Azure profile + /// Associated subscription + public AzureSqlDatabaseLedgerDigestUploadCommunicator(IAzureContext context) + { + Context = context; + if (context?.Subscription != Subscription) + { + Subscription = context?.Subscription; + LegacyClient = null; + } + } + + /// + /// Gets a databases ledger digest upload configuration + /// + /// The resource group name. + /// The server name. + /// The database name. + /// + public Management.Sql.Models.LedgerDigestUploads GetLedgerDigestUpload( + string resourceGroupName, + string serverName, + string databaseName) + { + return GetCurrentSqlClient().LedgerDigestUploads.Get(resourceGroupName, serverName, databaseName); + } + + /// + /// Sets a databases ledger digest upload configuration + /// + /// The resource group name. + /// The server name. + /// The database name. + /// Ledger digest upload parameters + /// + public Management.Sql.Models.LedgerDigestUploads SetLedgerDigestUpload( + string resourceGroupName, + string serverName, + string databaseName, + Management.Sql.Models.LedgerDigestUploads parameters) + { + return GetCurrentSqlClient().LedgerDigestUploads.CreateOrUpdate(resourceGroupName, serverName, databaseName, parameters); + } + + /// + /// Disables ledger digest upload for a database + /// + /// The resource group name. + /// The server name. + /// The database name. + /// + public Management.Sql.Models.LedgerDigestUploads DisableLedgerDigestUpload( + string resourceGroupName, + string serverName, + string databaseName) + { + return GetCurrentSqlClient().LedgerDigestUploads.Disable(resourceGroupName, serverName, databaseName); + } + + /// + /// Retrieve the SQL Management client for the currently selected subscription, adding the session and request + /// id tracing headers for the current cmdlet invocation. + /// + /// The SQL Management client for the currently selected subscription. + private Management.Sql.LegacySdk.SqlManagementClient GetLegacySqlClient() + { + // Get the SQL management client for the current subscription + if (LegacyClient == null) + { + LegacyClient = AzureSession.Instance.ClientFactory.CreateClient(Context, AzureEnvironment.Endpoint.ResourceManager); + } + return LegacyClient; + } + + /// + /// Retrieve the SQL Management client for the currently selected subscription, adding the session and request + /// id tracing headers for the current cmdlet invocation. + /// + /// The SQL Management client for the currently selected subscription. + private Management.Sql.SqlManagementClient GetCurrentSqlClient() + { + // Get the SQL management client for the current subscription + // Note: client is not cached in static field because that causes ObjectDisposedException in functional tests. + return AzureSession.Instance.ClientFactory.CreateArmClient(Context, AzureEnvironment.Endpoint.ResourceManager); + } + + /// + /// Lazy creation of a single instance of a resoures client + /// + private ResourceManagementClient GetCurrentResourcesClient() + { + if (ResourcesClient == null) + { + ResourcesClient = AzureSession.Instance.ClientFactory.CreateArmClient(Context, AzureEnvironment.Endpoint.ResourceManager); + } + return ResourcesClient; + } + } +} diff --git a/src/Sql/Sql/ManagedInstance/Model/AzureSqlManagedInstanceModel.cs b/src/Sql/Sql/ManagedInstance/Model/AzureSqlManagedInstanceModel.cs index b031a7d9d702..73e19363816f 100644 --- a/src/Sql/Sql/ManagedInstance/Model/AzureSqlManagedInstanceModel.cs +++ b/src/Sql/Sql/ManagedInstance/Model/AzureSqlManagedInstanceModel.cs @@ -50,7 +50,7 @@ public class AzureSqlManagedInstanceModel /// /// Gets or sets the identity of the managed instance. /// - public Management.Sql.Models.ResourceIdentity Identity { get; set; } + public Management.Sql.Models.ResourceIdentityWithUserAssignedIdentities Identity { get; set; } /// /// Gets or sets the Sku of the managed instance diff --git a/src/Sql/Sql/Replication/Services/AzureSqlDatabaseReplicationAdapter.cs b/src/Sql/Sql/Replication/Services/AzureSqlDatabaseReplicationAdapter.cs index f71f62d9f41b..ff47c3e4e138 100644 --- a/src/Sql/Sql/Replication/Services/AzureSqlDatabaseReplicationAdapter.cs +++ b/src/Sql/Sql/Replication/Services/AzureSqlDatabaseReplicationAdapter.cs @@ -148,7 +148,7 @@ internal AzureSqlDatabaseCopyModel CopyDatabaseWithNewSdk(string copyResourceGro Capacity = model.Capacity }, LicenseType = model.LicenseType, - StorageAccountType = MapExternalBackupStorageRedundancyToInternal(model.BackupStorageRedundancy) + RequestedBackupStorageRedundancy = MapExternalBackupStorageRedundancyToInternal(model.BackupStorageRedundancy) }); return CreateDatabaseCopyModelFromResponse(model.CopyResourceGroupName, model.CopyServerName, model.ResourceGroupName, @@ -212,7 +212,7 @@ private AzureSqlDatabaseCopyModel CreateDatabaseCopyModelFromResponse(string cop model.CopyLocation = database.Location; model.CreationDate = database.CreationDate.Value; model.LicenseType = database.LicenseType; - model.BackupStorageRedundancy = MapInternalBackupStorageRedundancyToExternal(database.StorageAccountType); + model.BackupStorageRedundancy = MapInternalBackupStorageRedundancyToExternal(database.CurrentBackupStorageRedundancy); return model; } @@ -273,7 +273,7 @@ internal AzureReplicationLinkModel CreateLinkWithNewSdk(string resourceGroupName Capacity = model.Capacity }, LicenseType = model.LicenseType, - StorageAccountType = MapExternalBackupStorageRedundancyToInternal(model.BackupStorageRedundancy), + RequestedBackupStorageRedundancy = MapExternalBackupStorageRedundancyToInternal(model.BackupStorageRedundancy), SecondaryType = model.SecondaryType, }); @@ -354,7 +354,7 @@ private AzureReplicationLinkModel CreateReplicationLinkModelFromReplicationLinkR model.ServerName = serverName; model.DatabaseName = databaseName; model.AllowConnections = allowConnections; - model.Location = resp.Location; + model.Location = GetServerLocation(resourceGroupName, serverName); model.PartnerLocation = resp.Properties.PartnerLocation; model.PercentComplete = resp.Properties.PercentComplete; model.ReplicationState = resp.Properties.ReplicationState; @@ -392,7 +392,7 @@ private AzureReplicationLinkModel CreateReplicationLinkModelFromResponse(string model.ServerName = serverName; model.DatabaseName = databaseName; model.AllowConnections = allowConnections; - model.Location = resp.Location; + model.Location = GetServerLocation(resourceGroupName, serverName); model.PartnerLocation = resp.PartnerLocation; model.PercentComplete = resp.PercentComplete.ToString(); model.ReplicationState = resp.ReplicationState; diff --git a/src/Sql/Sql/Server/Model/AzureSqlServerModel.cs b/src/Sql/Sql/Server/Model/AzureSqlServerModel.cs index f9ee40a5379f..550456bdae2e 100644 --- a/src/Sql/Sql/Server/Model/AzureSqlServerModel.cs +++ b/src/Sql/Sql/Server/Model/AzureSqlServerModel.cs @@ -61,7 +61,7 @@ public class AzureSqlServerModel /// /// Gets or sets the identity of the server. /// - public Management.Sql.Models.ResourceIdentity Identity { get; set; } + public Management.Sql.Models.ResourceIdentityWithUserAssignedIdentities Identity { get; set; } /// /// Gets or sets the fully qualified domain name of the server diff --git a/src/Sql/Sql/ThreatDetection/Services/SqlThreatDetectionAdapter.cs b/src/Sql/Sql/ThreatDetection/Services/SqlThreatDetectionAdapter.cs index 90c587c33fa4..63a22074c9bc 100644 --- a/src/Sql/Sql/ThreatDetection/Services/SqlThreatDetectionAdapter.cs +++ b/src/Sql/Sql/ThreatDetection/Services/SqlThreatDetectionAdapter.cs @@ -253,8 +253,8 @@ private Management.Sql.Models.ServerSecurityAlertPolicy PolicizeServerSecurityAl var policy = new Management.Sql.Models.ServerSecurityAlertPolicy() { State = model.ThreatDetectionState == ThreatDetectionStateType.Enabled - ? SecurityAlertPolicyState.Enabled - : SecurityAlertPolicyState.Disabled, + ? SecurityAlertsPolicyState.Enabled + : SecurityAlertsPolicyState.Disabled, DisabledAlerts = ExtractExcludedDetectionType(model), EmailAddresses = model.NotificationRecipientsEmails.Split(';').Where(mail => !string.IsNullOrEmpty(mail)).ToList(), EmailAccountAdmins = model.EmailAdmins, @@ -285,15 +285,15 @@ private Management.Sql.Models.ManagedServerSecurityAlertPolicy PolicizeManagedIn var policy = new Management.Sql.Models.ManagedServerSecurityAlertPolicy() { State = model.ThreatDetectionState == ThreatDetectionStateType.Enabled - ? SecurityAlertPolicyState.Enabled - : SecurityAlertPolicyState.Disabled, + ? SecurityAlertsPolicyState.Enabled + : SecurityAlertsPolicyState.Disabled, DisabledAlerts = ExtractExcludedDetectionType(model), EmailAddresses = model.NotificationRecipientsEmails.Split(';').Where(mail => !string.IsNullOrEmpty(mail)).ToList(), EmailAccountAdmins = model.EmailAdmins, RetentionDays = Convert.ToInt32(model.RetentionInDays), }; - if (policy.State == SecurityAlertPolicyState.Enabled && !policy.EmailAccountAdmins.Value && !policy.EmailAddresses.Any()) + if (policy.State == SecurityAlertsPolicyState.Enabled && !policy.EmailAccountAdmins.Value && !policy.EmailAddresses.Any()) { // For new TD policy, make sure EmailAccountAdmins is true policy.EmailAccountAdmins = true; From cba425e1cc9144d7f308ffe65f7856a7fc822992 Mon Sep 17 00:00:00 2001 From: Reilly Wong Date: Thu, 13 May 2021 15:32:04 -0700 Subject: [PATCH 2/6] adding tests, updating cmdlets --- src/Sql/Sql.Test/ScenarioTests/Common.ps1 | 41 ++++ .../ScenarioTests/LedgerDigestUploadTests.cs | 60 ++++++ .../ScenarioTests/LedgerDigestUploadTests.ps1 | 195 ++++++++++++++++++ src/Sql/Sql/Az.Sql.psd1 | 4 +- .../Database/Cmdlet/NewAzureSqlDatabase.cs | 2 +- .../AzureSqlDatabaseLedgerDigestUploadBase.cs | 87 ++++++-- .../DisableAzSqlDatabaseLedgerDigestUpload.cs | 49 +---- .../EnableAzSqlDatabaseLedgerDigestUpload.cs | 53 +---- .../GetAzSqlDatabaseLedgerDigestUpload.cs | 27 +-- ...ureSqlDatabaseLedgerDigestUploadAdapter.cs | 11 - ...lDatabaseLedgerDigestUploadCommunicator.cs | 4 - 11 files changed, 394 insertions(+), 139 deletions(-) create mode 100644 src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.cs create mode 100644 src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 diff --git a/src/Sql/Sql.Test/ScenarioTests/Common.ps1 b/src/Sql/Sql.Test/ScenarioTests/Common.ps1 index 6793939d4600..b4c69c56865e 100644 --- a/src/Sql/Sql.Test/ScenarioTests/Common.ps1 +++ b/src/Sql/Sql.Test/ScenarioTests/Common.ps1 @@ -184,6 +184,47 @@ function Create-BasicTestEnvironmentWithParams ($params, $location, $serverVersi New-AzSqlDatabase -DatabaseName $params.databaseName -ResourceGroupName $params.rgname -ServerName $params.serverName -Edition Basic } +<# +.SYNOPSIS +Gets the values of the parameters used for ledger digest upload tests +#> +function Get-LedgerTestEnvironmentParameters ($testSuffix) +{ + $subscriptionId = (Get-AzContext).Subscription.Id + return @{ rgname = "ledger-cmdlet-test-rg" + $testSuffix; + serverName = "ledger-cmdlet-server" + $testSuffix; + databaseName = "ledger-cmdlet-db" + $testSuffix; + } +} + +<# +.SYNOPSIS +Creates the basic test environment needed to perform the Sql data security tests - resource group, server and database +#> +function Create-LedgerTestEnvironment ($params) +{ + $location = "West Europe" + $serverVersion = "12.0" + New-AzResourceGroup -Name $params.rgname -Location $location + $serverName = $params.serverName + $serverLogin = "testusername" + <#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Test passwords only valid for the duration of the test")]#> + $serverPassword = "t357ingP@s5w0rd!ledger" + $credentials = new-object System.Management.Automation.PSCredential($serverLogin, ($serverPassword | ConvertTo-SecureString -asPlainText -Force)) + New-AzSqlServer -ResourceGroupName $params.rgname -ServerName $params.serverName -Location $location -ServerVersion $serverVersion -SqlAdministratorCredentials $credentials + New-AzSqlDatabase -DatabaseName $params.databaseName -ResourceGroupName $params.rgname -ServerName $params.serverName -Edition Basic +} + +<# +.SYNOPSIS +Removes the test environment that was needed to perform the ledger digest upload tests +#> +function Remove-LedgerTestEnvironment ($testSuffix) +{ + $params = Get-LedgerTestEnvironmentParameters $testSuffix + Remove-AzResourceGroup -Name $params.rgname -Force +} + <# .SYNOPSIS Creates the basic test environment needed to perform the Sql data security tests - resource group, managed instance and managed database diff --git a/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.cs b/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.cs new file mode 100644 index 000000000000..b74915dd79d0 --- /dev/null +++ b/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.cs @@ -0,0 +1,60 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Commands.ScenarioTest.SqlTests; +using Microsoft.Azure.ServiceManagement.Common.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.Sql.Test.ScenarioTests +{ + public class LedgerDigestUploadTests : SqlTestsBase + { + public LedgerDigestUploadTests(ITestOutputHelper output) : base(output) + { + base.resourceTypesToIgnoreApiVersion = new string[] { + "Microsoft.Sql/servers" + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetDefaultLedgerDigestUpload() + { + RunPowerShellTest("Test-GetDefaultLedgerDigestUpload"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSetLedgerDigestUploadByName() + { + RunPowerShellTest("Test-SetLedgerDigestUploadByName"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSetLedgerDigestUploadByDatabaseObject() + { + RunPowerShellTest("Test-SetLedgerDigestUploadByDatabaseObject"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSetLedgerDigestUploadByResourceId() + { + RunPowerShellTest("Test-SetLedgerDigestUploadByResourceId"); + } + } +} diff --git a/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 b/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 new file mode 100644 index 000000000000..ae2409dccf6e --- /dev/null +++ b/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 @@ -0,0 +1,195 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting default ledger digest upload configuration +#> +function Test-GetDefaultLedgerDigestUpload +{ + # Setup + $testSuffix = getAssetName + $params = Get-LedgerTestEnvironmentParameters $testSuffix + Create-LedgerTestEnvironment $params + + $databaseResourceId = "/subscriptions/" + $subscriptionId + "/resourceGroups/" + $params.rgname + "/providers/Microsoft.Sql/servers/" + $params.serverName + "/databases/" + $params.databaseName + $databaseObject = Get-AzSqlDatabase -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName + + try + { + # Test + $ledgerDigestUpload = Get-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName + + # Assert + Assert-AreEqual $ledgerDigestUpload.State "Disabled" + + # Test + $ledgerDigestUploadByResourceId = Get-AzSqlDatabaseLedgerDigestUpload -ResourceId $databaseResourceId + + # Assert + Assert-AreEqual $ledgerDigestUploadByResourceId.State "Disabled" + + # Test + $ledgerDigestUploadByDatabase = Get-AzSqlDatabaseLedgerDigestUpload -InputObject $databaseObject + + # Assert + Assert-AreEqual $ledgerDigestUploadByDatabase.State "Disabled" + } + finally + { + # Cleanup + Remove-LedgerTestEnvironment $testSuffix + } +} + +<# +.SYNOPSIS +Tests that when setting the storage account property's value in a database's blob auditing policy, that value is later fetched properly +#> +function Test-SetLedgerDigestUploadByName +{ + # Setup + $testSuffix = getAssetName + $params = Get-LedgerTestEnvironmentParameters $testSuffix + Create-LedgerTestEnvironment $params + $endpoint = "https://test.confidential-ledger.azure.com" + + try + { + # Test enabling + $ledgerDigestUploadEnable = Enable-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName -Endpoint $endpoint + + # Assert + Assert-AreEqual $ledgerDigestUploadEnable.State "Enabled" + Assert-AreEqual $ledgerDigestUploadEnable.Endpoint $endpoint + + # Test get enabled settings + $ledgerDigestUploadEnabledGet = Get-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName + <# + # Assert + Assert-AreEqual $ledgerDigestUploadEnabledGet.State "Enabled" + + # Test disabling + $ledgerDigestUploadDisable = Disable-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName + + # Assert + Assert-AreEqual $ledgerDigestUploadDisable.State "Disabled" + + # Test get disabled settings + $ledgerDigestUploadDisabledGet = Get-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName + + # Assert + Assert-AreEqual $ledgerDigestUploadDisabledGet.State "Disabled" + #> + } + finally + { + # Cleanup + Remove-LedgerTestEnvironment $testSuffix + } +} + +<# +.SYNOPSIS +Tests that when setting the storage account property's value in a database's blob auditing policy, that value is later fetched properly +#> +function Test-SetLedgerDigestUploadByDatabaseObject +{ + # Setup + $testSuffix = getAssetName + $params = Get-LedgerTestEnvironmentParameters $testSuffix + Create-LedgerTestEnvironment $params + $endpoint = "https://test.confidential-ledger.azure.com" + $databaseObject = Get-AzSqlDatabase -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName + + try + { + # Test enabling + $ledgerDigestUploadEnable = Enable-AzSqlDatabaseLedgerDigestUpload -InputObject $databaseObject -Endpoint $endpoint + + # Assert + Assert-AreEqual $ledgerDigestUploadEnable.State "Enabled" + Assert-AreEqual $ledgerDigestUploadEnable.Endpoint $endpoint + + # Test get enabled settings + $ledgerDigestUploadEnabledGet = Get-AzSqlDatabaseLedgerDigestUpload -InputObject $databaseObject + + # Assert + Assert-AreEqual $ledgerDigestUploadEnabledGet.State "Enabled" + + # Test disabling + $ledgerDigestUploadDisable = Disable-AzSqlDatabaseLedgerDigestUpload -InputObject $databaseObject + + # Assert + Assert-AreEqual $ledgerDigestUploadDisable.State "Disabled" + + # Test get disabled settings + $ledgerDigestUploadDisabledGet = Get-AzSqlDatabaseLedgerDigestUpload -InputObject $databaseObject + + # Assert + Assert-AreEqual $ledgerDigestUploadDisabledGet.State "Disabled" + } + finally + { + # Cleanup + Remove-LedgerTestEnvironment $testSuffix + } +} + +<# +.SYNOPSIS +Tests that when setting the storage account property's value in a database's blob auditing policy, that value is later fetched properly +#> +function Test-SetLedgerDigestUploadByResourceId +{ + # Setup + $testSuffix = getAssetName + $params = Get-LedgerTestEnvironmentParameters $testSuffix + Create-LedgerTestEnvironment $params + $endpoint = "https://test.confidential-ledger.azure.com" + $databaseResourceId = "/subscriptions/" + $subscriptionId + "/resourceGroups/" + $params.rgname + "/providers/Microsoft.Sql/servers/" + $params.serverName + "/databases/" + $params.databaseName + + try + { + # Test enabling + $ledgerDigestUploadEnable = Enable-AzSqlDatabaseLedgerDigestUpload -ResourceId $databaseResourceId -Endpoint $endpoint + + # Assert + Assert-AreEqual $ledgerDigestUploadEnable.State "Enabled" + Assert-AreEqual $ledgerDigestUploadEnable.Endpoint $endpoint + + # Test get enabled settings + $ledgerDigestUploadEnabledGet = Get-AzSqlDatabaseLedgerDigestUpload -ResourceId $databaseResourceId + + # Assert + Assert-AreEqual $ledgerDigestUploadEnabledGet.State "Enabled" + + # Test disabling + $ledgerDigestUploadDisable = Disable-AzSqlDatabaseLedgerDigestUpload -InputObject $databaseObject + + # Assert + Assert-AreEqual $ledgerDigestUploadDisable.State "Disabled" + + # Test get disabled settings + $ledgerDigestUploadDisabledGet = Get-AzSqlDatabaseLedgerDigestUpload -ResourceId $databaseResourceId + + # Assert + Assert-AreEqual $ledgerDigestUploadDisabledGet.State "Disabled" + } + finally + { + # Cleanup + Remove-LedgerTestEnvironment $testSuffix + } +} \ No newline at end of file diff --git a/src/Sql/Sql/Az.Sql.psd1 b/src/Sql/Sql/Az.Sql.psd1 index 0b64c94ede90..0ed58ff1a0bc 100644 --- a/src/Sql/Sql/Az.Sql.psd1 +++ b/src/Sql/Sql/Az.Sql.psd1 @@ -272,7 +272,9 @@ CmdletsToExport = 'Get-AzSqlDatabaseTransparentDataEncryption', 'Enable-AzSqlInstanceActiveDirectoryOnlyAuthentication', 'Get-AzSqlInstanceActiveDirectoryOnlyAuthentication', 'Get-AzSqlServerTrustGroup', 'New-AzSqlServerTrustGroup', - 'Remove-AzSqlServerTrustGroup' + 'Remove-AzSqlServerTrustGroup', + 'Enable-AzSqlDatabaseLedgerDigestUpload', 'Disable-AzSqlDatabaseLedgerDigestUpload', + 'Get-AzSqlDatabaseLedgerDigestUpload' # Variables to export from this module # VariablesToExport = @() diff --git a/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs b/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs index 5c222e7f8252..e038c74ec2f1 100644 --- a/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs +++ b/src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs @@ -235,7 +235,7 @@ public class NewAzureSqlDatabase : AzureSqlDatabaseCmdletBase [Parameter(Mandatory = false, - HelpMessage = "The enable ledger option for the Azure Sql Database")] + HelpMessage = "Creates a ledger database, in which the integrity of all data is protected by the ledger feature. All tables in the ledger database must be ledger tables. Note: the value of this property cannot be changed after the database has been created.")] public SwitchParameter EnableLedger { get; set; } /// diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs index b83470de3f8d..3013658192e5 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs @@ -12,65 +12,112 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.Common.Authentication.Abstractions; -using Microsoft.Azure.Commands.Common.Authentication.Models; +using System; using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; using Microsoft.Azure.Commands.Sql.Common; using Microsoft.Azure.Commands.Sql.Database.Model; using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Services; using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model; using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; -using System; using System.Collections.Generic; using System.Management.Automation; namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Cmdlet { - public abstract class AzureSqlDatabaseLedgerDigestUploadBase : AzureSqlCmdletBase, AzureSqlDatabaseLedgerDigestUploadAdapter> + public class AzureSqlDatabaseLedgerDigestUploadBase : AzureSqlDatabaseCmdletBase { + /// + /// Parameter set name for named resources + /// + private const string DatabaseSet = "DatabaseParameterSet"; + + /// + /// Parameter set name for database object + /// + private const string InputObjectSet = "InputObjectParameterSet"; + + /// + /// Parameter set name for resource ID + /// + private const string ResourceIdSet = "ResourceIdParameterSet"; + + [Parameter( + ParameterSetName = DatabaseSet, + Mandatory = true, + Position = 0, + HelpMessage = "The name of the resource group.")] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public override string ResourceGroupName { get; set; } + /// /// Gets or sets the name of the Azure Sql server to use /// - [Parameter(Mandatory = true, - ValueFromPipelineByPropertyName = true, + [Parameter( + ParameterSetName = DatabaseSet, + Mandatory = true, Position = 1, - HelpMessage = "The Azure Sql Server name.")] + HelpMessage = "SQL server name.")] [ResourceNameCompleter("Microsoft.Sql/servers", "ResourceGroupName")] [ValidateNotNullOrEmpty] - public string ServerName { get; set; } + public override string ServerName { get; set; } /// /// Gets or sets the name of the database to use. /// - [Parameter(Mandatory = true, - ValueFromPipelineByPropertyName = true, + [Parameter( + ParameterSetName = DatabaseSet, + Mandatory = true, Position = 2, - HelpMessage = "The name of the Azure SQL Database.")] + HelpMessage = "SQL Database name.")] [ResourceNameCompleter("Microsoft.Sql/servers/databases", "ResourceGroupName", "ServerName")] [ValidateNotNullOrEmpty] - public string DatabaseName { get; set; } + public override string DatabaseName { get; set; } /// /// Gets or sets the Database object to get the ledger digest upload configuration for /// [Parameter( - ParameterSetName = "DatabaseObjectParameterSet", + ParameterSetName = InputObjectSet, Mandatory = true, ValueFromPipeline = true, - HelpMessage = "The database object to manage its ledger digest upload configuration.")] - [ValidateNotNullOrEmpty] - [Alias("AzureSqlDatabase")] - public AzureSqlDatabaseModel AzureSqlDatabaseObject { get; set; } + HelpMessage = "The database object to disable digest uploads for.")] + [ValidateNotNull] + public AzureSqlDatabaseModel InputObject { get; set; } /// - /// Gets or sets the Database Resource ID to get backups for + /// Gets or sets the Database Resource ID to get the ledger digest upload configuration for /// - [Parameter(Mandatory = true, + [Parameter( + ParameterSetName = ResourceIdSet, + Mandatory = true, Position = 0, ValueFromPipelineByPropertyName = true, - HelpMessage = "The database Resource ID to get backups for.")] + HelpMessage = "The resource id of the database to disable digest uploads for.")] + [ValidateNotNullOrEmpty] public string ResourceId { get; set; } + protected override AzureSqlDatabaseLedgerDigestUploadModel GetEntity() + { + if (ParameterSetName == ResourceIdSet) + { + ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); + DatabaseName = identifier.ResourceName; + ResourceGroupName = identifier.ResourceGroupName; + ServerName = identifier.ParentResource; + } + else if (ParameterSetName == InputObjectSet) + { + ResourceGroupName = InputObject.ResourceGroupName; + ServerName = InputObject.ServerName; + DatabaseName = InputObject.DatabaseName; + } + + AzureSqlDatabaseLedgerDigestUploadModel model = ModelAdapter.GetLedgerDigestUpload(ResourceGroupName, ServerName, DatabaseName); + + return model; + } + /// /// Intializes the model adapter /// diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs index 176aad613de5..c274cb5d727b 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs @@ -29,54 +29,21 @@ namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Cmdlet [Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseLedgerDigestUpload", ConfirmImpact = ConfirmImpact.Low, SupportsShouldProcess = true), OutputType(typeof(AzureSqlDatabaseLedgerDigestLocationModel))] public class DisableAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDigestUploadBase { - /// - /// Get the entities from the service - /// - /// The list of entities - protected override IEnumerable GetEntity() - { - if (AzureSqlDatabaseObject != null) - { - ServerName = AzureSqlDatabaseObject.ServerName; - DatabaseName = AzureSqlDatabaseObject.DatabaseName; - ResourceGroupName = AzureSqlDatabaseObject.ResourceGroupName; - } - else if (!string.IsNullOrWhiteSpace(ResourceId)) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - DatabaseName = identifier.ResourceName; - ResourceGroupName = identifier.ResourceGroupName; - ServerName = identifier.ParentResource.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1]; - } - - ICollection results = new List() - { - ModelAdapter.GetLedgerDigestUpload( - this.ResourceGroupName, - this.ServerName, - this.DatabaseName) - }; - - return results; - } - /// /// Create the model from user input /// /// Model retrieved from service /// The model that was passed in - protected override IEnumerable ApplyUserInputToModel(IEnumerable model) + protected override AzureSqlDatabaseLedgerDigestUploadModel ApplyUserInputToModel(AzureSqlDatabaseLedgerDigestUploadModel model) { - return new List() - { - new AzureSqlDatabaseLedgerDigestUploadModel( + return new AzureSqlDatabaseLedgerDigestUploadModel( ResourceGroupName, ServerName, DatabaseName, - new Management.Sql.Models.LedgerDigestUploads{ + new Management.Sql.Models.LedgerDigestUploads + { DigestStorageEndpoint = null - }) - }; + }); } /// @@ -84,13 +51,11 @@ protected override IEnumerable ApplyUse /// /// The output of apply user input to model /// The input entity - protected override IEnumerable PersistChanges(IEnumerable entity) + protected override AzureSqlDatabaseLedgerDigestUploadModel PersistChanges(AzureSqlDatabaseLedgerDigestUploadModel entity) { if (!ShouldProcess(DatabaseName)) return null; - return new List() { - ModelAdapter.SetLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName, entity.First()) - }; + return ModelAdapter.DisableLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName); } } } \ No newline at end of file diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs index 6ae79b257643..b9fe70b2ce5b 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs @@ -31,61 +31,28 @@ public class EnableAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDiges /// /// Gets or sets the Azure Sql Database Ledger Digest Uploads endpoint /// - [Parameter(Mandatory = true, - ValueFromPipelineByPropertyName = true, + [Parameter( + Mandatory = true, Position = 3, HelpMessage = "The Azure Sql Database Ledger Digest Uploads endpoint.")] [ValidateNotNullOrEmpty] public string Endpoint { get; set; } - /// - /// Get the entities from the service - /// - /// The list of entities - protected override IEnumerable GetEntity() - { - if (AzureSqlDatabaseObject != null) - { - ServerName = AzureSqlDatabaseObject.ServerName; - DatabaseName = AzureSqlDatabaseObject.DatabaseName; - ResourceGroupName = AzureSqlDatabaseObject.ResourceGroupName; - } - else if (!string.IsNullOrWhiteSpace(ResourceId)) - { - ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); - DatabaseName = identifier.ResourceName; - ResourceGroupName = identifier.ResourceGroupName; - ServerName = identifier.ParentResource.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1]; - } - - ICollection results = new List() - { - ModelAdapter.GetLedgerDigestUpload( - this.ResourceGroupName, - this.ServerName, - this.DatabaseName) - }; - - return results; - } - /// /// Create the model from user input /// /// Model retrieved from service /// The model that was passed in - protected override IEnumerable ApplyUserInputToModel(IEnumerable model) + protected override AzureSqlDatabaseLedgerDigestUploadModel ApplyUserInputToModel(AzureSqlDatabaseLedgerDigestUploadModel model) { - return new List() - { - new AzureSqlDatabaseLedgerDigestUploadModel( + return new AzureSqlDatabaseLedgerDigestUploadModel( ResourceGroupName, ServerName, DatabaseName, - new Management.Sql.Models.LedgerDigestUploads { + new Management.Sql.Models.LedgerDigestUploads + { DigestStorageEndpoint = Endpoint - }) - }; + }); } /// @@ -93,13 +60,11 @@ protected override IEnumerable ApplyUse /// /// The output of apply user input to model /// The input entity - protected override IEnumerable PersistChanges(IEnumerable entity) + protected override AzureSqlDatabaseLedgerDigestUploadModel PersistChanges(AzureSqlDatabaseLedgerDigestUploadModel entity) { if (!ShouldProcess(DatabaseName)) return null; - return new List() { - ModelAdapter.SetLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName, entity.First()) - }; + return ModelAdapter.SetLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName, entity); } } } \ No newline at end of file diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs index 843404926ce7..b1731b966d7a 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/GetAzSqlDatabaseLedgerDigestUpload.cs @@ -30,13 +30,13 @@ public class GetAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDigestUp /// Get the entities from the service /// /// The list of entities - protected override IEnumerable GetEntity() + protected override AzureSqlDatabaseLedgerDigestUploadModel GetEntity() { - if (AzureSqlDatabaseObject != null) + if (InputObject != null) { - ServerName = AzureSqlDatabaseObject.ServerName; - DatabaseName = AzureSqlDatabaseObject.DatabaseName; - ResourceGroupName = AzureSqlDatabaseObject.ResourceGroupName; + ServerName = InputObject.ServerName; + DatabaseName = InputObject.DatabaseName; + ResourceGroupName = InputObject.ResourceGroupName; } else if (!string.IsNullOrWhiteSpace(ResourceId)) { @@ -46,15 +46,10 @@ protected override IEnumerable GetEntit ServerName = identifier.ParentResource.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1]; } - ICollection results = new List() - { - ModelAdapter.GetLedgerDigestUpload( + return ModelAdapter.GetLedgerDigestUpload( this.ResourceGroupName, this.ServerName, - this.DatabaseName) - }; - - return results; + this.DatabaseName); } /// @@ -62,8 +57,8 @@ protected override IEnumerable GetEntit /// /// Model retrieved from service /// The model that was passed in - protected override IEnumerable ApplyUserInputToModel( - IEnumerable model) + protected override AzureSqlDatabaseLedgerDigestUploadModel ApplyUserInputToModel( + AzureSqlDatabaseLedgerDigestUploadModel model) { return model; } @@ -73,8 +68,8 @@ protected override IEnumerable ApplyUse /// /// The output of apply user input to model /// The input entity - protected override IEnumerable PersistChanges( - IEnumerable entity) + protected override AzureSqlDatabaseLedgerDigestUploadModel PersistChanges( + AzureSqlDatabaseLedgerDigestUploadModel entity) { return entity; } diff --git a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs index 575e4cf649dc..67f9ca638223 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs @@ -13,18 +13,7 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.Common.Authentication.Abstractions; -using Microsoft.Azure.Commands.Common.Authentication.Models; using Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model; -using Microsoft.Azure.Commands.Sql.Database.Model; -using Microsoft.Azure.Commands.Sql.Database.Services; -using Microsoft.Azure.Commands.Sql.ElasticPool.Services; -using Microsoft.Azure.Commands.Sql.Server.Adapter; -using Microsoft.Azure.Management.Sql.LegacySdk.Models; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Management.Automation; namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Services { diff --git a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs index ab7f898112df..25a515736262 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs @@ -17,10 +17,6 @@ using Microsoft.Azure.Management.Internal.Resources; using Microsoft.Azure.Management.Sql; using Microsoft.Azure.Management.Sql.LegacySdk; -using Microsoft.Azure.Management.Sql.LegacySdk.Models; -using System.Collections.Generic; -using Microsoft.Azure.Commands.Sql.Database.Model; -using Microsoft.Azure.Management.Internal.Resources.Models; namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Services { From 17d3f55b0ec5743b0d57efa661060975fff73435 Mon Sep 17 00:00:00 2001 From: Reilly Wong Date: Fri, 14 May 2021 10:51:17 -0700 Subject: [PATCH 3/6] adding tests, fixing cmdlets --- src/Sql/Sql.Test/ScenarioTests/Common.ps1 | 8 +- .../ScenarioTests/DatabaseCrudTests.cs | 7 + .../ScenarioTests/DatabaseCrudTests.ps1 | 23 + .../ScenarioTests/LedgerDigestUploadTests.ps1 | 15 +- .../TestDatabaseCreateWithLedgerEnabled.json | 1865 +++++++++++++ .../TestGetDefaultLedgerDigestUpload.json | 2052 +++++++++++++++ ...SetLedgerDigestUploadByDatabaseObject.json | 2328 +++++++++++++++++ .../TestSetLedgerDigestUploadByName.json | 2202 ++++++++++++++++ ...TestSetLedgerDigestUploadByResourceId.json | 2202 ++++++++++++++++ .../AzureSqlDatabaseLedgerDigestUploadBase.cs | 2 +- .../DisableAzSqlDatabaseLedgerDigestUpload.cs | 19 +- .../EnableAzSqlDatabaseLedgerDigestUpload.cs | 13 +- ...ureSqlDatabaseLedgerDigestUploadAdapter.cs | 55 +- ...lDatabaseLedgerDigestUploadCommunicator.cs | 8 +- 14 files changed, 10724 insertions(+), 75 deletions(-) create mode 100644 src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseCrudTests/TestDatabaseCreateWithLedgerEnabled.json create mode 100644 src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestGetDefaultLedgerDigestUpload.json create mode 100644 src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByDatabaseObject.json create mode 100644 src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByName.json create mode 100644 src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByResourceId.json diff --git a/src/Sql/Sql.Test/ScenarioTests/Common.ps1 b/src/Sql/Sql.Test/ScenarioTests/Common.ps1 index b4c69c56865e..04dfa6252f92 100644 --- a/src/Sql/Sql.Test/ScenarioTests/Common.ps1 +++ b/src/Sql/Sql.Test/ScenarioTests/Common.ps1 @@ -190,8 +190,8 @@ Gets the values of the parameters used for ledger digest upload tests #> function Get-LedgerTestEnvironmentParameters ($testSuffix) { - $subscriptionId = (Get-AzContext).Subscription.Id - return @{ rgname = "ledger-cmdlet-test-rg" + $testSuffix; + return @{ subscriptionId = (Get-AzContext).Subscription.Id; + rgname = "ledger-cmdlet-test-rg" + $testSuffix; serverName = "ledger-cmdlet-server" + $testSuffix; databaseName = "ledger-cmdlet-db" + $testSuffix; } @@ -199,11 +199,11 @@ function Get-LedgerTestEnvironmentParameters ($testSuffix) <# .SYNOPSIS -Creates the basic test environment needed to perform the Sql data security tests - resource group, server and database +Creates the basic test environment used for the ledger tests - creates resource group, server, and database #> function Create-LedgerTestEnvironment ($params) { - $location = "West Europe" + $location = "eastus2euap" $serverVersion = "12.0" New-AzResourceGroup -Name $params.rgname -Location $location $serverName = $params.serverName diff --git a/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.cs b/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.cs index e218eece9403..0d0d5e375268 100644 --- a/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.cs +++ b/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.cs @@ -190,5 +190,12 @@ public void TestDatabaseGetWithBackupStorageRedundancy() { RunPowerShellTest("Test-GetDatabaseWithBackupStorageRedundancy"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDatabaseCreateWithLedgerEnabled() + { + RunPowerShellTest("Test-DatabaseCreateWithLedgerEnabled"); + } } } diff --git a/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.ps1 b/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.ps1 index 706aea386520..6c9d51ceb3be 100644 --- a/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.ps1 +++ b/src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.ps1 @@ -973,6 +973,29 @@ function Test-GetDatabaseWithMaintenanceConfigurationId } } +<# + .SYNOPSIS + Tests creating a database with ledger enabled +#> +function Test-DatabaseCreateWithLedgerEnabled ($location = "eastus2euap") +{ + # Setup + $rg = Create-ResourceGroupForTest + $server = Create-ServerForTest $rg $location + + # Create with ledger enabled + $databaseName = Get-DatabaseName + $db1 = New-AzSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName -EnableLedger -Force + Assert-AreEqual $db1.DatabaseName $databaseName + Assert-AreEqual "True" $db1.EnableLedger + + # Validate Get-AzSqlDatabase returns ledger property + $databaseFromGet = Get-AzSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName + Assert-AreEqual "True" $databaseFromGet.EnableLedger + + Remove-ResourceGroupForTest $rg +} + <# .SYNOPSIS Tests Deleting a database diff --git a/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 b/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 index ae2409dccf6e..fbe9943d2efa 100644 --- a/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 +++ b/src/Sql/Sql.Test/ScenarioTests/LedgerDigestUploadTests.ps1 @@ -23,7 +23,7 @@ function Test-GetDefaultLedgerDigestUpload $params = Get-LedgerTestEnvironmentParameters $testSuffix Create-LedgerTestEnvironment $params - $databaseResourceId = "/subscriptions/" + $subscriptionId + "/resourceGroups/" + $params.rgname + "/providers/Microsoft.Sql/servers/" + $params.serverName + "/databases/" + $params.databaseName + $databaseResourceId = "/subscriptions/" + $params.subscriptionId + "/resourceGroups/" + $params.rgname + "/providers/Microsoft.Sql/servers/" + $params.serverName + "/databases/" + $params.databaseName $databaseObject = Get-AzSqlDatabase -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName try @@ -55,7 +55,7 @@ function Test-GetDefaultLedgerDigestUpload <# .SYNOPSIS -Tests that when setting the storage account property's value in a database's blob auditing policy, that value is later fetched properly +Tests enabling and disabling ledger digest uploading using named parameters #> function Test-SetLedgerDigestUploadByName { @@ -76,7 +76,7 @@ function Test-SetLedgerDigestUploadByName # Test get enabled settings $ledgerDigestUploadEnabledGet = Get-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName - <# + # Assert Assert-AreEqual $ledgerDigestUploadEnabledGet.State "Enabled" @@ -91,7 +91,6 @@ function Test-SetLedgerDigestUploadByName # Assert Assert-AreEqual $ledgerDigestUploadDisabledGet.State "Disabled" - #> } finally { @@ -102,7 +101,7 @@ function Test-SetLedgerDigestUploadByName <# .SYNOPSIS -Tests that when setting the storage account property's value in a database's blob auditing policy, that value is later fetched properly +Tests enabling and disabling ledger digest uploading using the database object #> function Test-SetLedgerDigestUploadByDatabaseObject { @@ -149,7 +148,7 @@ function Test-SetLedgerDigestUploadByDatabaseObject <# .SYNOPSIS -Tests that when setting the storage account property's value in a database's blob auditing policy, that value is later fetched properly +Tests enabling and disabling ledger digest uploading using the resource ID #> function Test-SetLedgerDigestUploadByResourceId { @@ -158,7 +157,7 @@ function Test-SetLedgerDigestUploadByResourceId $params = Get-LedgerTestEnvironmentParameters $testSuffix Create-LedgerTestEnvironment $params $endpoint = "https://test.confidential-ledger.azure.com" - $databaseResourceId = "/subscriptions/" + $subscriptionId + "/resourceGroups/" + $params.rgname + "/providers/Microsoft.Sql/servers/" + $params.serverName + "/databases/" + $params.databaseName + $databaseResourceId = "/subscriptions/" + $params.subscriptionId + "/resourceGroups/" + $params.rgname + "/providers/Microsoft.Sql/servers/" + $params.serverName + "/databases/" + $params.databaseName try { @@ -176,7 +175,7 @@ function Test-SetLedgerDigestUploadByResourceId Assert-AreEqual $ledgerDigestUploadEnabledGet.State "Enabled" # Test disabling - $ledgerDigestUploadDisable = Disable-AzSqlDatabaseLedgerDigestUpload -InputObject $databaseObject + $ledgerDigestUploadDisable = Disable-AzSqlDatabaseLedgerDigestUpload -ResourceId $databaseResourceId # Assert Assert-AreEqual $ledgerDigestUploadDisable.State "Disabled" diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseCrudTests/TestDatabaseCreateWithLedgerEnabled.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseCrudTests/TestDatabaseCreateWithLedgerEnabled.json new file mode 100644 index 000000000000..200ade62db56 --- /dev/null +++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseCrudTests/TestDatabaseCreateWithLedgerEnabled.json @@ -0,0 +1,1865 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ps778?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL3BzNzc4P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70fb4147-902b-41a3-8afb-c17f8e333f65" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b113e83b-0ed4-421d-add9-8b3439240150" + ], + "x-ms-correlation-request-id": [ + "b113e83b-0ed4-421d-add9-8b3439240150" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T171811Z:b113e83b-0ed4-421d-add9-8b3439240150" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:11 GMT" + ], + "Content-Length": [ + "170" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778\",\r\n \"name\": \"ps778\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjA/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "61398b59-19eb-40e7-8dad-0f672d30035e" + ], + "x-ms-correlation-request-id": [ + "61398b59-19eb-40e7-8dad-0f672d30035e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171812Z:61398b59-19eb-40e7-8dad-0f672d30035e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:11 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "204" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ps160' under resource group 'ps778' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjA/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "82b676d1-c314-4eed-8db6-c8d49f7fd7f1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "cae9cf40-7c62-462a-a19f-af70d0ce37c8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171920Z:cae9cf40-7c62-462a-a19f-af70d0ce37c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:20 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ps160.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160\",\r\n \"name\": \"ps160\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjA/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "20178d21-cc2c-4006-a628-3305e7830c0b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "571bce2e-a212-4c53-9f07-ea43cf53739d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171920Z:571bce2e-a212-4c53-9f07-ea43cf53739d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:20 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ps160.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160\",\r\n \"name\": \"ps160\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjA/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e16f86b2-8ede-4efc-912c-a6ef7d3dcbfe" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "2a14ef3f-a8d2-4255-bf5a-4bef64b72d80" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171921Z:2a14ef3f-a8d2-4255-bf5a-4bef64b72d80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:20 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ps160.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160\",\r\n \"name\": \"ps160\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjA/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": \"t357ingP@s5w0rd!\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "155" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverOperationResults/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview" + ], + "x-ms-request-id": [ + "2880c904-d37d-4024-a46e-7e36025dea7f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "57e131df-0657-4b85-a07d-276e670abdc4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171814Z:57e131df-0657-4b85-a07d-276e670abdc4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:13 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "ceb5cb0c-3ae4-4171-9dad-e5431be3d188" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "ce2aa176-029a-4815-9bc3-b9c6c203faf1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171815Z:ce2aa176-029a-4815-9bc3-b9c6c203faf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:15 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "506c460a-6b61-4aef-bf78-08e7cbf70c8e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "970b6d97-4af6-49b8-8622-d3bcc154e761" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171816Z:970b6d97-4af6-49b8-8622-d3bcc154e761" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:16 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "7ebd0955-0173-4c14-9835-13a745578870" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "86239e7d-98e6-4077-b70e-a79c04ba4df7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171817Z:86239e7d-98e6-4077-b70e-a79c04ba4df7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:17 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "cd0a1cd1-d3e7-4404-8c70-c81b321ba93e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "4a026afb-d7e1-463e-9b53-288b00604298" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171818Z:4a026afb-d7e1-463e-9b53-288b00604298" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:18 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "4384d7b0-2b00-45ba-8cdd-56109115e66d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "4029ee47-8c67-4976-8b86-1c2a9d65d2fc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171820Z:4029ee47-8c67-4976-8b86-1c2a9d65d2fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:20 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "9dd00620-d9d4-49fa-975b-531fb0fc9ed4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "ad5e509d-3817-4b4f-aa9d-eef262b62b7c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171840Z:ad5e509d-3817-4b4f-aa9d-eef262b62b7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:40 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "8b886128-515e-4aca-9059-3d41a23a1b31" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "62447bbf-eada-4ad4-9372-265025d088da" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171900Z:62447bbf-eada-4ad4-9372-265025d088da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:18:59 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/2880c904-d37d-4024-a46e-7e36025dea7f?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzI4ODBjOTA0LWQzN2QtNDAyNC1hNDZlLTdlMzYwMjVkZWE3Zj9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5abada18-e0bd-4a8d-b47b-586c51f3c401" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9ca22d6b-7c91-4b08-bc8e-63b258cd0247" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "5975b9e0-5b60-4b59-b35f-ac5019290d4c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171920Z:5975b9e0-5b60-4b59-b35f-ac5019290d4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:19 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2880c904-d37d-4024-a46e-7e36025dea7f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:18:13.967Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160/databases/ps5364?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjAvZGF0YWJhc2VzL3BzNTM2ND9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "3eca3339-f689-4872-97c4-562c96bb3624" + ], + "x-ms-correlation-request-id": [ + "3eca3339-f689-4872-97c4-562c96bb3624" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171920Z:3eca3339-f689-4872-97c4-562c96bb3624" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:20 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "221" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ps160/databases/ps5364' under resource group 'ps778' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160/databases/ps5364?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjAvZGF0YWJhc2VzL3BzNTM2ND9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4f7de850-857b-4af7-8c4a-8ca5b7273ce6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "b25026cd-a56b-4e68-9261-d0038227b911" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T172007Z:b25026cd-a56b-4e68-9261-d0038227b911" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:20:07 GMT" + ], + "Content-Length": [ + "1058" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"38f4896d-b02d-42df-9a69-abbcdf901f11\",\r\n \"creationDate\": \"2021-05-14T17:20:06.01Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": true,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160/databases/ps5364\",\r\n \"name\": \"ps5364\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160/databases/ps5364?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjAvZGF0YWJhc2VzL3BzNTM2ND9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ed890fc2-cd16-4c75-ac56-4440263684d9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "59775e04-9a29-4792-b81a-de3cb5da9f19" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "c10dbb85-a1f6-498c-a3e2-111a8a96e662" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T172008Z:c10dbb85-a1f6-498c-a3e2-111a8a96e662" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:20:07 GMT" + ], + "Content-Length": [ + "1058" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"38f4896d-b02d-42df-9a69-abbcdf901f11\",\r\n \"creationDate\": \"2021-05-14T17:20:06.01Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": true,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160/databases/ps5364\",\r\n \"name\": \"ps5364\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/servers/ps160/databases/ps5364?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvcHMxNjAvZGF0YWJhc2VzL3BzNTM2ND9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"maxSizeBytes\": 0,\r\n \"readScale\": \"\",\r\n \"isLedgerOn\": true\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "128" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/databaseOperationResults/f1a990f2-7aeb-400f-93b4-e2bdde04c7a0?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/f1a990f2-7aeb-400f-93b4-e2bdde04c7a0?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "f1a990f2-7aeb-400f-93b4-e2bdde04c7a0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "954344aa-82de-4d59-b102-10a8bffbbb67" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171922Z:954344aa-82de-4d59-b102-10a8bffbbb67" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:21 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-05-14T17:19:22.257Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/f1a990f2-7aeb-400f-93b4-e2bdde04c7a0?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjFhOTkwZjItN2FlYi00MDBmLTkzYjQtZTJiZGRlMDRjN2EwP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "845c34c5-3aa8-4e3d-a250-293afaf963cf" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "ec351598-3235-4846-b058-cbb00d617fba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171937Z:ec351598-3235-4846-b058-cbb00d617fba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:37 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f1a990f2-7aeb-400f-93b4-e2bdde04c7a0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:19:22.257Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/f1a990f2-7aeb-400f-93b4-e2bdde04c7a0?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjFhOTkwZjItN2FlYi00MDBmLTkzYjQtZTJiZGRlMDRjN2EwP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "5739e247-6f75-4fe2-8198-6d3e9d4ecf6b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "a6c46f54-ee47-41cf-9615-06ce20d7a3b4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T171952Z:a6c46f54-ee47-41cf-9615-06ce20d7a3b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:19:52 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f1a990f2-7aeb-400f-93b4-e2bdde04c7a0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:19:22.257Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ps778/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/f1a990f2-7aeb-400f-93b4-e2bdde04c7a0?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL3BzNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjFhOTkwZjItN2FlYi00MDBmLTkzYjQtZTJiZGRlMDRjN2EwP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf1710c3-f854-4bf2-a3dd-f6fb282a65a1" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ab1aa1b0-b3ca-499e-916d-7c1daa7c06b5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "a999923f-6a39-4e24-b982-65ae5f253965" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T172007Z:a999923f-6a39-4e24-b982-65ae5f253965" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:20:07 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f1a990f2-7aeb-400f-93b4-e2bdde04c7a0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:19:22.257Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ps778?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL3BzNzc4P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a124b3f-a891-4901-ba9d-6e4bd89edb1d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "b9151e71-da41-4f94-a5b7-e45fa06b2812" + ], + "x-ms-correlation-request-id": [ + "b9151e71-da41-4f94-a5b7-e45fa06b2812" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172008Z:b9151e71-da41-4f94-a5b7-e45fa06b2812" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:20:07 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "b96b8f95-2936-4656-9d6e-86e5df0a0b5e" + ], + "x-ms-correlation-request-id": [ + "b96b8f95-2936-4656-9d6e-86e5df0a0b5e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172023Z:b96b8f95-2936-4656-9d6e-86e5df0a0b5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:20:22 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "c76eac48-ccb5-4820-b65d-fab69a2f8c2f" + ], + "x-ms-correlation-request-id": [ + "c76eac48-ccb5-4820-b65d-fab69a2f8c2f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172038Z:c76eac48-ccb5-4820-b65d-fab69a2f8c2f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:20:38 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "4d60097a-1295-498b-95ff-12e2bd2112f6" + ], + "x-ms-correlation-request-id": [ + "4d60097a-1295-498b-95ff-12e2bd2112f6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172053Z:4d60097a-1295-498b-95ff-12e2bd2112f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:20:53 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "85a5910d-60c2-4658-aba0-f1769c5bd860" + ], + "x-ms-correlation-request-id": [ + "85a5910d-60c2-4658-aba0-f1769c5bd860" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172108Z:85a5910d-60c2-4658-aba0-f1769c5bd860" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:21:08 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "cca9f261-fb2e-412a-b53a-4bcd8c861efa" + ], + "x-ms-correlation-request-id": [ + "cca9f261-fb2e-412a-b53a-4bcd8c861efa" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172123Z:cca9f261-fb2e-412a-b53a-4bcd8c861efa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:21:23 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "7ec343ea-34aa-4376-9a2b-9d9bd871b002" + ], + "x-ms-correlation-request-id": [ + "7ec343ea-34aa-4376-9a2b-9d9bd871b002" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172138Z:7ec343ea-34aa-4376-9a2b-9d9bd871b002" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:21:38 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "55c8a138-0c72-47aa-bd7a-810e504c7a10" + ], + "x-ms-correlation-request-id": [ + "55c8a138-0c72-47aa-bd7a-810e504c7a10" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172153Z:55c8a138-0c72-47aa-bd7a-810e504c7a10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:21:52 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzc3OC1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpjM09DMVhSVk5VUTBWT1ZGSkJURlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMFkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "f702d5ef-15ac-420a-b154-7d0beecaf930" + ], + "x-ms-correlation-request-id": [ + "f702d5ef-15ac-420a-b154-7d0beecaf930" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T172153Z:f702d5ef-15ac-420a-b154-7d0beecaf930" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:21:53 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-DatabaseCreateWithLedgerEnabled": [ + "ps778", + "ps160", + "ps5364" + ] + }, + "Variables": { + "SubscriptionId": "e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4" + } +} \ No newline at end of file diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestGetDefaultLedgerDigestUpload.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestGetDefaultLedgerDigestUpload.json new file mode 100644 index 000000000000..1ba32152667a --- /dev/null +++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestGetDefaultLedgerDigestUpload.json @@ -0,0 +1,2052 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps2453?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1Mz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ffd8b431-9b49-4d04-9ca1-a27619ffdfdc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "8969bfc0-74e4-4f5e-8e97-a2a36391ebac" + ], + "x-ms-correlation-request-id": [ + "8969bfc0-74e4-4f5e-8e97-a2a36391ebac" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173143Z:8969bfc0-74e4-4f5e-8e97-a2a36391ebac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:43 GMT" + ], + "Content-Length": [ + "212" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453\",\r\n \"name\": \"ledger-cmdlet-test-rgps2453\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "a0e7fd37-f3ab-4561-aa1b-2a1f86d32622" + ], + "x-ms-correlation-request-id": [ + "a0e7fd37-f3ab-4561-aa1b-2a1f86d32622" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173144Z:a0e7fd37-f3ab-4561-aa1b-2a1f86d32622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:43 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "247" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps2453' under resource group 'ledger-cmdlet-test-rgps2453' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "44ce4015-0157-4c9f-bbac-1cc38697182f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "05758480-9bfc-4dc9-86d3-74a730a8909f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173253Z:05758480-9bfc-4dc9-86d3-74a730a8909f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:52 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps2453.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453\",\r\n \"name\": \"ledger-cmdlet-serverps2453\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a7df67c2-40df-4ad0-9df3-f96955c99390" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "c8c4a1b4-1008-4f68-95af-84a7e65e21fc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173253Z:c8c4a1b4-1008-4f68-95af-84a7e65e21fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:52 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps2453.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453\",\r\n \"name\": \"ledger-cmdlet-serverps2453\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a6c3c278-ca4a-4a6a-bfd9-f31a3afa3936" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "9022fb81-dff1-4954-ba8d-48af0ed1e5b7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173253Z:9022fb81-dff1-4954-ba8d-48af0ed1e5b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:53 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps2453.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453\",\r\n \"name\": \"ledger-cmdlet-serverps2453\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": \"t357ingP@s5w0rd!ledger\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "185" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverOperationResults/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview" + ], + "x-ms-request-id": [ + "74b6fe37-77dc-4567-9671-08b4a72d1b35" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5af37b33-cfda-4a75-af0b-f64dc55a0248" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173147Z:5af37b33-cfda-4a75-af0b-f64dc55a0248" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:46 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "b8d68fc0-e0c3-4d82-8182-9039a7592da7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "d0e038eb-7ef1-4af7-9392-fa1b3eeb9afc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173148Z:d0e038eb-7ef1-4af7-9392-fa1b3eeb9afc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "fba6124b-c414-46d1-b9ae-1c113f37ebdf" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "eb3421d4-7b81-4883-b5aa-f51a82c6a7c7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173149Z:eb3421d4-7b81-4883-b5aa-f51a82c6a7c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:49 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "0c790d0e-6419-4391-a04b-40f8ae66d60a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "462a37b0-e46f-4114-98d7-5bfdc8a58893" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173150Z:462a37b0-e46f-4114-98d7-5bfdc8a58893" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:50 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "9fde5470-92b6-46a7-a5dd-682a13f48ce0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "e490ab39-67ca-4506-9a19-5b729595461c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173151Z:e490ab39-67ca-4506-9a19-5b729595461c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:51 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "c05395b3-fb73-492d-bd9f-6726361043a4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "9ae65568-4f5c-4cf9-99b0-fa865a1e491c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173152Z:9ae65568-4f5c-4cf9-99b0-fa865a1e491c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:31:52 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "93e408cc-7c18-4cc3-a9dc-47155701ff30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "f80e5672-13e7-4165-a67c-776cc72c307e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173212Z:f80e5672-13e7-4165-a67c-776cc72c307e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:12 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "7814a046-c95e-4198-a632-c743265e3115" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "cc023007-373c-471e-bcfd-3d4e9f886bd6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173233Z:cc023007-373c-471e-bcfd-3d4e9f886bd6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:32 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/74b6fe37-77dc-4567-9671-08b4a72d1b35?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83NGI2ZmUzNy03N2RjLTQ1NjctOTY3MS0wOGI0YTcyZDFiMzU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76b73dff-9136-49be-be65-1abec63fb81a" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "24545eca-9d99-47e6-8edf-f76ad2932e17" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "1ae5f5ac-6de5-4871-861f-1efd1019a16c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173253Z:1ae5f5ac-6de5-4871-861f-1efd1019a16c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:52 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"74b6fe37-77dc-4567-9671-08b4a72d1b35\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:31:46.923Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHMyNDUzP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "da99e22a-c29f-42f0-bbdd-6a3eb699289c" + ], + "x-ms-correlation-request-id": [ + "da99e22a-c29f-42f0-bbdd-6a3eb699289c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173253Z:da99e22a-c29f-42f0-bbdd-6a3eb699289c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:53 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "280" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453' under resource group 'ledger-cmdlet-test-rgps2453' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHMyNDUzP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "368a5ab4-17bc-4f30-90c2-fe2418cc378f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "bd7488c8-5108-4cff-8266-108138372397" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173341Z:bd7488c8-5108-4cff-8266-108138372397" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:40 GMT" + ], + "Content-Length": [ + "1125" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"2307b011-8ead-4a6b-a215-631e2a5b0db9\",\r\n \"creationDate\": \"2021-05-14T17:33:37.913Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453\",\r\n \"name\": \"ledger-cmdlet-dbps2453\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHMyNDUzP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21040515-d0f6-4936-9537-7b29bb1683fa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2a40c9d5-9061-4400-82b8-69ab7775b140" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "a95fda8a-c5d1-463e-8437-3750244291bf" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173341Z:a95fda8a-c5d1-463e-8437-3750244291bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:40 GMT" + ], + "Content-Length": [ + "1125" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"2307b011-8ead-4a6b-a215-631e2a5b0db9\",\r\n \"creationDate\": \"2021-05-14T17:33:37.913Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453\",\r\n \"name\": \"ledger-cmdlet-dbps2453\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHMyNDUzP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"maxSizeBytes\": 0,\r\n \"readScale\": \"\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "164" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/databaseOperationResults/bc377ba7-cbb0-4ab3-9875-bf2e32748436?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/bc377ba7-cbb0-4ab3-9875-bf2e32748436?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "bc377ba7-cbb0-4ab3-9875-bf2e32748436" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "f72425a2-3b25-4f52-9f35-0aa5c3711221" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173255Z:f72425a2-3b25-4f52-9f35-0aa5c3711221" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:32:54 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-05-14T17:32:55.347Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/bc377ba7-cbb0-4ab3-9875-bf2e32748436?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjMzc3YmE3LWNiYjAtNGFiMy05ODc1LWJmMmUzMjc0ODQzNj9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "c7512572-5f5d-4b62-a994-68ab774e6967" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "8df38f84-b5eb-4434-a39b-8f61ab9e7984" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173310Z:8df38f84-b5eb-4434-a39b-8f61ab9e7984" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:10 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc377ba7-cbb0-4ab3-9875-bf2e32748436\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:32:55.347Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/bc377ba7-cbb0-4ab3-9875-bf2e32748436?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjMzc3YmE3LWNiYjAtNGFiMy05ODc1LWJmMmUzMjc0ODQzNj9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "df429c42-1bb4-47b2-97e1-6913a729b822" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "35202521-16f2-4d9d-a2bb-0dcaae173284" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173325Z:35202521-16f2-4d9d-a2bb-0dcaae173284" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:25 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc377ba7-cbb0-4ab3-9875-bf2e32748436\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:32:55.347Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/bc377ba7-cbb0-4ab3-9875-bf2e32748436?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjMzc3YmE3LWNiYjAtNGFiMy05ODc1LWJmMmUzMjc0ODQzNj9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a7e3ac6-7304-457a-94d3-d6dae3b5adea" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9e9ed455-302e-448d-9168-7a3669ae1aee" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "dbc2e3b1-af9e-42fa-8ff5-d01c44e78a42" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173340Z:dbc2e3b1-af9e-42fa-8ff5-d01c44e78a42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:40 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc377ba7-cbb0-4ab3-9875-bf2e32748436\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:32:55.347Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHMyNDUzL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e064d74a-046d-4fcd-830d-e2dd0563a39a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "de034b73-80c2-4d85-beb0-d69039d17efa" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "ba6ff8f6-285b-4eb7-ad2e-e0341973b31f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173341Z:ba6ff8f6-285b-4eb7-ad2e-e0341973b31f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:40 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHMyNDUzL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b3e07c6e-cfb1-4c98-a593-5726e998bf25" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6497169c-756e-48cd-919f-168c9c7a4ec0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "cf9354ce-81c6-4cd4-8209-0af31115c0a9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173341Z:cf9354ce-81c6-4cd4-8209-0af31115c0a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:40 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1My9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHMyNDUzL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHMyNDUzL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bcb0ad7b-400e-4fbf-835b-57f0746e4506" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "506fdefb-9dde-4acc-86bf-5b09b06a7d60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "844afb21-ae81-4c78-9420-3ad4e992f8a2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173341Z:844afb21-ae81-4c78-9420-3ad4e992f8a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:40 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps2453/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps2453/databases/ledger-cmdlet-dbps2453/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps2453?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzMjQ1Mz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d77dd924-dc15-4fe2-986a-e8bb851a76ea" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "116f24d8-bdc9-485e-87ee-63a0ae043444" + ], + "x-ms-correlation-request-id": [ + "116f24d8-bdc9-485e-87ee-63a0ae043444" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173342Z:116f24d8-bdc9-485e-87ee-63a0ae043444" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:42 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "3e2faa29-6783-4a73-861f-b8a44358213f" + ], + "x-ms-correlation-request-id": [ + "3e2faa29-6783-4a73-861f-b8a44358213f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173358Z:3e2faa29-6783-4a73-861f-b8a44358213f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:33:57 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "df1244af-2d5c-402f-98cf-e5c5058d3933" + ], + "x-ms-correlation-request-id": [ + "df1244af-2d5c-402f-98cf-e5c5058d3933" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173413Z:df1244af-2d5c-402f-98cf-e5c5058d3933" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:34:12 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "79c19e2b-9175-40af-b5d4-0b3e6a30eec1" + ], + "x-ms-correlation-request-id": [ + "79c19e2b-9175-40af-b5d4-0b3e6a30eec1" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173428Z:79c19e2b-9175-40af-b5d4-0b3e6a30eec1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:34:27 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "0079f758-7daa-4942-a1f8-ab7bf1b2414a" + ], + "x-ms-correlation-request-id": [ + "0079f758-7daa-4942-a1f8-ab7bf1b2414a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173443Z:0079f758-7daa-4942-a1f8-ab7bf1b2414a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:34:43 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "5ed0eb5f-a89e-45f9-86ba-0a06c38cfd98" + ], + "x-ms-correlation-request-id": [ + "5ed0eb5f-a89e-45f9-86ba-0a06c38cfd98" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173458Z:5ed0eb5f-a89e-45f9-86ba-0a06c38cfd98" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:34:58 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-request-id": [ + "3dfd76ff-9dec-494e-aa59-5cb395338c2e" + ], + "x-ms-correlation-request-id": [ + "3dfd76ff-9dec-494e-aa59-5cb395338c2e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173513Z:3dfd76ff-9dec-494e-aa59-5cb395338c2e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:13 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-request-id": [ + "f5397b3b-29bd-4323-8989-1cbbddc4f8a9" + ], + "x-ms-correlation-request-id": [ + "f5397b3b-29bd-4323-8989-1cbbddc4f8a9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173528Z:f5397b3b-29bd-4323-8989-1cbbddc4f8a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:28 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzI0NTMtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpJME5UTXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-request-id": [ + "90ff8400-204f-4a98-9d97-98e8ac2a66aa" + ], + "x-ms-correlation-request-id": [ + "90ff8400-204f-4a98-9d97-98e8ac2a66aa" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173528Z:90ff8400-204f-4a98-9d97-98e8ac2a66aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:28 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-GetDefaultLedgerDigestUpload": [ + "ps2453" + ] + }, + "Variables": { + "SubscriptionId": "e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4" + } +} \ No newline at end of file diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByDatabaseObject.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByDatabaseObject.json new file mode 100644 index 000000000000..32baab8c31da --- /dev/null +++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByDatabaseObject.json @@ -0,0 +1,2328 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps5247?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Nz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0801d9d9-90ab-43d0-8e21-f6260fb01ae8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c0265ea1-b5e6-4293-9da0-0e67bfb9c336" + ], + "x-ms-correlation-request-id": [ + "c0265ea1-b5e6-4293-9da0-0e67bfb9c336" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174321Z:c0265ea1-b5e6-4293-9da0-0e67bfb9c336" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:20 GMT" + ], + "Content-Length": [ + "212" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247\",\r\n \"name\": \"ledger-cmdlet-test-rgps5247\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "119f8860-0252-45a8-abfa-2e34969a3536" + ], + "x-ms-correlation-request-id": [ + "119f8860-0252-45a8-abfa-2e34969a3536" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174321Z:119f8860-0252-45a8-abfa-2e34969a3536" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:21 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "247" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps5247' under resource group 'ledger-cmdlet-test-rgps5247' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "53991ae3-f125-458c-b1cf-5c697170959f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "b2ad1983-c531-479a-ad3f-707514148216" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174430Z:b2ad1983-c531-479a-ad3f-707514148216" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:30 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps5247.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247\",\r\n \"name\": \"ledger-cmdlet-serverps5247\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "114430bd-66dc-4b87-a6b2-eb82d3ceff46" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "ce1ba6eb-4c1d-4ad1-8a66-83481b94cf4e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174430Z:ce1ba6eb-4c1d-4ad1-8a66-83481b94cf4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:30 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps5247.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247\",\r\n \"name\": \"ledger-cmdlet-serverps5247\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4c06f79e-9d67-4058-a745-a3a625014f48" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "1ac218f2-8164-4f1f-8fb0-94dbf33f5292" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174431Z:1ac218f2-8164-4f1f-8fb0-94dbf33f5292" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:30 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps5247.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247\",\r\n \"name\": \"ledger-cmdlet-serverps5247\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": \"t357ingP@s5w0rd!ledger\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "185" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverOperationResults/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview" + ], + "x-ms-request-id": [ + "e6e69bda-91e1-456a-bb80-81872506e71c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "876f3e6a-ee71-4ed5-979b-127bdcab90ec" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174324Z:876f3e6a-ee71-4ed5-979b-127bdcab90ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:23 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "89bd3fcd-963f-4741-a66f-2a08b75623ee" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "d5147636-58e1-4c23-8d03-36c8a8db71ad" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174325Z:d5147636-58e1-4c23-8d03-36c8a8db71ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:25 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "02b748da-fe17-4fdb-b279-6a12704440af" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "cb8ff8a5-a3fc-414b-8b34-90aff9c0c9d5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174326Z:cb8ff8a5-a3fc-414b-8b34-90aff9c0c9d5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:26 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "da9e7f7a-bfbc-45a9-a5bb-402321dcc495" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "7d4c773f-5ca8-4976-a96a-fea4d7425619" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174327Z:7d4c773f-5ca8-4976-a96a-fea4d7425619" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:27 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "83055e43-1136-4615-b9c7-060ee133c338" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "a55fd209-1fe3-49a7-a8e4-dee7d6b3b8b8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174328Z:a55fd209-1fe3-49a7-a8e4-dee7d6b3b8b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:28 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "4e3b2180-41f2-4024-8617-a04e954e5bfb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "2787953c-520f-4b79-bf30-9c4579a96fd9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174330Z:2787953c-520f-4b79-bf30-9c4579a96fd9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:29 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "21034d22-c320-4eff-9c5a-6f6778c18dac" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "bcc46325-fca9-4933-a33d-2473bdcc373a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174350Z:bcc46325-fca9-4933-a33d-2473bdcc373a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:49 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "57c6f9c0-e55b-4f00-a766-cae8a2cd0bad" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "2544907e-6c67-4fb2-8247-beda0330815e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174410Z:2544907e-6c67-4fb2-8247-beda0330815e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:10 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/e6e69bda-91e1-456a-bb80-81872506e71c?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNmU2OWJkYS05MWUxLTQ1NmEtYmI4MC04MTg3MjUwNmU3MWM/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb6868a3-7fb4-4673-8cfb-1f6c28949a7f" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "b2f2d30d-00ce-4d92-a0d8-c82dbe67acdf" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "c4719191-926a-4449-a26d-30335a72e51a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174430Z:c4719191-926a-4449-a26d-30335a72e51a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:30 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6e69bda-91e1-456a-bb80-81872506e71c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:43:24.177Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "98b3a3ad-0e4f-4a62-a076-2d1e7f05ba11" + ], + "x-ms-correlation-request-id": [ + "98b3a3ad-0e4f-4a62-a076-2d1e7f05ba11" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174430Z:98b3a3ad-0e4f-4a62-a076-2d1e7f05ba11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "280" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247' under resource group 'ledger-cmdlet-test-rgps5247' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a5f5eeef-2113-46c8-9bdb-ae112c754ca0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "81443edd-f289-478e-aaef-19de43bd34f8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174533Z:81443edd-f289-478e-aaef-19de43bd34f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:33 GMT" + ], + "Content-Length": [ + "1125" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"e3e4f688-3efc-4777-8591-631fee21ed2e\",\r\n \"creationDate\": \"2021-05-14T17:45:20.473Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247\",\r\n \"name\": \"ledger-cmdlet-dbps5247\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6fcbe4d9-aac7-4962-ace0-0a5507e518d8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e12a84e2-1c4e-49e3-adc8-aa2befba172f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "8d8e2f49-d70a-4abe-94e5-12bd5229c9b1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174533Z:8d8e2f49-d70a-4abe-94e5-12bd5229c9b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:33 GMT" + ], + "Content-Length": [ + "1125" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"e3e4f688-3efc-4777-8591-631fee21ed2e\",\r\n \"creationDate\": \"2021-05-14T17:45:20.473Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247\",\r\n \"name\": \"ledger-cmdlet-dbps5247\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"maxSizeBytes\": 0,\r\n \"readScale\": \"\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "164" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/databaseOperationResults/aeede84d-18a6-40c6-a323-1c60767c954a?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/aeede84d-18a6-40c6-a323-1c60767c954a?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "aeede84d-18a6-40c6-a323-1c60767c954a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "bb7194b5-2ed2-4d42-b716-1040bcb42919" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174433Z:bb7194b5-2ed2-4d42-b716-1040bcb42919" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:32 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-05-14T17:44:32.953Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/aeede84d-18a6-40c6-a323-1c60767c954a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FlZWRlODRkLTE4YTYtNDBjNi1hMzIzLTFjNjA3NjdjOTU0YT9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "831e64f3-8fe3-4d40-ba8d-e0b379cf9d46" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "6702faf1-140b-4527-8d62-70a05f371aba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174448Z:6702faf1-140b-4527-8d62-70a05f371aba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:44:47 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aeede84d-18a6-40c6-a323-1c60767c954a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:44:32.953Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/aeede84d-18a6-40c6-a323-1c60767c954a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FlZWRlODRkLTE4YTYtNDBjNi1hMzIzLTFjNjA3NjdjOTU0YT9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "dda30a86-be4f-405d-a890-64f31fde3611" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "7a1b3093-1eef-4e98-83b8-f75d2c141578" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174503Z:7a1b3093-1eef-4e98-83b8-f75d2c141578" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:03 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aeede84d-18a6-40c6-a323-1c60767c954a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:44:32.953Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/aeede84d-18a6-40c6-a323-1c60767c954a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FlZWRlODRkLTE4YTYtNDBjNi1hMzIzLTFjNjA3NjdjOTU0YT9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "62c56b46-00f9-4329-98b0-22ceabcf60ba" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "4770a714-067c-4fa0-b0d0-2e716232e633" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174518Z:4770a714-067c-4fa0-b0d0-2e716232e633" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:18 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aeede84d-18a6-40c6-a323-1c60767c954a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:44:32.953Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/aeede84d-18a6-40c6-a323-1c60767c954a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FlZWRlODRkLTE4YTYtNDBjNi1hMzIzLTFjNjA3NjdjOTU0YT9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21749d4a-a1f1-4d9c-a35b-962e00eaf217" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "21ef2e9e-4d03-49e1-84a1-5fa1048ce604" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "41699ab2-be18-4382-b7e2-d128dd2f494d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174533Z:41699ab2-be18-4382-b7e2-d128dd2f494d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:33 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aeede84d-18a6-40c6-a323-1c60767c954a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:44:32.953Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "08dce684-6a71-4016-b21a-18907adbbb80" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fa7305c3-bd5f-4498-8731-922d12a44e9e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "8bcc9043-6b54-400a-aab4-c8f82a0fe4fc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174534Z:8bcc9043-6b54-400a-aab4-c8f82a0fe4fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:33 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2014fc1-d767-46d9-ba3f-1d5f110b0994" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cd6e4005-0780-4ae0-a3f6-0d0dd449a42d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "b1d8366b-6eb3-46e0-90ad-6ac1895ddbd5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174534Z:b1d8366b-6eb3-46e0-90ad-6ac1895ddbd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:34 GMT" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\",\r\n \"state\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9a7d22b-d526-452d-920e-48bb6871b39f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "304d8bfc-4ca8-4ccf-9142-1673d671de60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "fae71cfe-f908-4277-8268-cbacee55acbb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174534Z:fae71cfe-f908-4277-8268-cbacee55acbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:34 GMT" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\",\r\n \"state\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d5bd73a4-3d29-48df-a65a-7259202be6a5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7c94253c-c512-47ee-997d-0963933693d6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "60c167af-482e-4c6d-8d4d-efeec46f17e1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174534Z:60c167af-482e-4c6d-8d4d-efeec46f17e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:34 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "08dce684-6a71-4016-b21a-18907adbbb80" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "103" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsOperationResults/ea9625b7-8fbc-4f05-9b3e-05cde29567b0?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsAzureAsyncOperation/ea9625b7-8fbc-4f05-9b3e-05cde29567b0?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "ea9625b7-8fbc-4f05-9b3e-05cde29567b0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "680e7fd9-b245-48b3-a1cb-f6ba06b008f8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174534Z:680e7fd9-b245-48b3-a1cb-f6ba06b008f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:33 GMT" + ], + "Content-Length": [ + "77" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLedgerTargetAsync\",\r\n \"startTime\": \"2021-05-14T17:45:34.27Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps5247/databases/ledger-cmdlet-dbps5247/ledgerDigestUploads/current/disable?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM1MjQ3L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM1MjQ3L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudC9kaXNhYmxlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9a7d22b-d526-452d-920e-48bb6871b39f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsOperationResults/2a9af054-cce1-416e-9480-ba13e5a1d2ec?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps5247/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsAzureAsyncOperation/2a9af054-cce1-416e-9480-ba13e5a1d2ec?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "2a9af054-cce1-416e-9480-ba13e5a1d2ec" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "75c4fcac-c57c-4737-aea9-8239bed37c80" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174534Z:75c4fcac-c57c-4737-aea9-8239bed37c80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:34 GMT" + ], + "Content-Length": [ + "78" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLedgerTargetAsync\",\r\n \"startTime\": \"2021-05-14T17:45:34.813Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps5247?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzNTI0Nz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70ae69dd-a1dd-4cce-821d-6f9680027e19" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "2ca64283-a532-48f8-a65b-42216f76f961" + ], + "x-ms-correlation-request-id": [ + "2ca64283-a532-48f8-a65b-42216f76f961" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174536Z:2ca64283-a532-48f8-a65b-42216f76f961" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:36 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "eae1de85-ddc9-4068-b8cc-79b970a10610" + ], + "x-ms-correlation-request-id": [ + "eae1de85-ddc9-4068-b8cc-79b970a10610" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174551Z:eae1de85-ddc9-4068-b8cc-79b970a10610" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:45:51 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "192ed478-dc75-4229-a8dd-b135743ae8ec" + ], + "x-ms-correlation-request-id": [ + "192ed478-dc75-4229-a8dd-b135743ae8ec" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174607Z:192ed478-dc75-4229-a8dd-b135743ae8ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:46:06 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "31955ca7-37f1-4bf8-a4c1-296ac7b47ee2" + ], + "x-ms-correlation-request-id": [ + "31955ca7-37f1-4bf8-a4c1-296ac7b47ee2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174622Z:31955ca7-37f1-4bf8-a4c1-296ac7b47ee2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:46:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "52d74724-3235-4cfb-8051-b6a6060c775b" + ], + "x-ms-correlation-request-id": [ + "52d74724-3235-4cfb-8051-b6a6060c775b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174637Z:52d74724-3235-4cfb-8051-b6a6060c775b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:46:36 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "22b2046a-e40c-4c5e-9d31-096db978ea27" + ], + "x-ms-correlation-request-id": [ + "22b2046a-e40c-4c5e-9d31-096db978ea27" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174652Z:22b2046a-e40c-4c5e-9d31-096db978ea27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:46:51 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "8fc6b5b9-fcda-4933-8f1d-e33be878b5f1" + ], + "x-ms-correlation-request-id": [ + "8fc6b5b9-fcda-4933-8f1d-e33be878b5f1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174707Z:8fc6b5b9-fcda-4933-8f1d-e33be878b5f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:47:06 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "8c7b7b8c-bbc5-47fa-babe-8604c5bf6626" + ], + "x-ms-correlation-request-id": [ + "8c7b7b8c-bbc5-47fa-babe-8604c5bf6626" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174722Z:8c7b7b8c-bbc5-47fa-babe-8604c5bf6626" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:47:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzUyNDctRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpVeU5EY3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "c9bef5e3-0e91-486f-951a-f022b2a42e7d" + ], + "x-ms-correlation-request-id": [ + "c9bef5e3-0e91-486f-951a-f022b2a42e7d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T174723Z:c9bef5e3-0e91-486f-951a-f022b2a42e7d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:47:22 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-SetLedgerDigestUploadByDatabaseObject": [ + "ps5247" + ] + }, + "Variables": { + "SubscriptionId": "e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4" + } +} \ No newline at end of file diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByName.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByName.json new file mode 100644 index 000000000000..06d7f8c428a9 --- /dev/null +++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByName.json @@ -0,0 +1,2202 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps8089?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1c43d2d7-9e76-4aca-baea-147726d69787" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "69c2d052-cdc9-4856-8f9d-0eaf94d0db61" + ], + "x-ms-correlation-request-id": [ + "69c2d052-cdc9-4856-8f9d-0eaf94d0db61" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173930Z:69c2d052-cdc9-4856-8f9d-0eaf94d0db61" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:29 GMT" + ], + "Content-Length": [ + "212" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089\",\r\n \"name\": \"ledger-cmdlet-test-rgps8089\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "e6e03e9b-d87b-4a4a-98b0-421299441369" + ], + "x-ms-correlation-request-id": [ + "e6e03e9b-d87b-4a4a-98b0-421299441369" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173931Z:e6e03e9b-d87b-4a4a-98b0-421299441369" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "247" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps8089' under resource group 'ledger-cmdlet-test-rgps8089' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ee9bf795-54d6-4c18-a20e-7fe2fa07cb6d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "a5ed70ad-318d-49ac-8b56-6fa124f23ff8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174039Z:a5ed70ad-318d-49ac-8b56-6fa124f23ff8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:39 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps8089.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089\",\r\n \"name\": \"ledger-cmdlet-serverps8089\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "698e0447-64c2-4d1f-bba7-338b0cde2790" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "e2bffd0c-2c75-43f9-bc73-efdab9a7750f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174039Z:e2bffd0c-2c75-43f9-bc73-efdab9a7750f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:39 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps8089.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089\",\r\n \"name\": \"ledger-cmdlet-serverps8089\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6d77c5b4-45f6-443f-8af8-1ab6ece8e285" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "ebc191d0-90a5-4ae8-b757-2286edad8eec" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174039Z:ebc191d0-90a5-4ae8-b757-2286edad8eec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:39 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps8089.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089\",\r\n \"name\": \"ledger-cmdlet-serverps8089\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": \"t357ingP@s5w0rd!ledger\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "185" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverOperationResults/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview" + ], + "x-ms-request-id": [ + "c982deaa-bb65-43ab-99d6-86a5d7e3053e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "bf9002b5-6b1c-4795-9fd7-b7eda4b7a7d7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173933Z:bf9002b5-6b1c-4795-9fd7-b7eda4b7a7d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:32 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "ab665365-00f2-41b3-83df-27ec475f47dd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "73dba227-2801-4a6b-8e86-2bdf77e9737e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173934Z:73dba227-2801-4a6b-8e86-2bdf77e9737e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:33 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "d6926cd7-0cbe-4771-ae99-a74e7d4ef17a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "c3edfa4d-3fbc-44f2-8b6c-66a6d626b205" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173935Z:c3edfa4d-3fbc-44f2-8b6c-66a6d626b205" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:35 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "046e7ce0-e81d-47f9-b974-2dc5775f0071" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "22f51e9d-2d70-49be-a353-5fdbbfa63fd2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173936Z:22f51e9d-2d70-49be-a353-5fdbbfa63fd2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:36 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "79f55a55-2bfc-48ad-83fe-0c536238574f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "b49f305d-ef21-4551-9993-8750beb9c679" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173937Z:b49f305d-ef21-4551-9993-8750beb9c679" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:37 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "c6b5d081-b682-4532-8ae2-4734ba0ad242" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "de3bb6f1-611d-4f0f-91cd-d64e414d1710" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173939Z:de3bb6f1-611d-4f0f-91cd-d64e414d1710" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:38 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "44ba6e25-84c5-4973-ac2d-9e85c959302e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "1a2e07e9-8097-4760-a7c1-8adb62ffbd23" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T173959Z:1a2e07e9-8097-4760-a7c1-8adb62ffbd23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:58 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "da44d174-962f-49d1-9eb2-476919e2e9fd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "273e2d0c-ad41-444b-b19d-82627a4b50a4" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174019Z:273e2d0c-ad41-444b-b19d-82627a4b50a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:18 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/c982deaa-bb65-43ab-99d6-86a5d7e3053e?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jOTgyZGVhYS1iYjY1LTQzYWItOTlkNi04NmE1ZDdlMzA1M2U/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93587ceb-cc34-44fa-8c62-d7eb0fda6488" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "52edeb4f-2df3-4370-8c71-d448d5df91ff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "9530aac1-6ec7-4689-abfd-01ef8a1d327a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174039Z:9530aac1-6ec7-4689-abfd-01ef8a1d327a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:39 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c982deaa-bb65-43ab-99d6-86a5d7e3053e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:39:33.303Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "015aa127-4c1d-496d-8c48-22aa4840f685" + ], + "x-ms-correlation-request-id": [ + "015aa127-4c1d-496d-8c48-22aa4840f685" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174039Z:015aa127-4c1d-496d-8c48-22aa4840f685" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:39 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "280" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089' under resource group 'ledger-cmdlet-test-rgps8089' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e742370f-3ea7-4336-a755-bae2b0e06317" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "19b01e13-461d-469a-852f-693be5405f19" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174127Z:19b01e13-461d-469a-852f-693be5405f19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:26 GMT" + ], + "Content-Length": [ + "1125" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"a7883d1a-ba0b-4dea-a61c-44cb9270495a\",\r\n \"creationDate\": \"2021-05-14T17:41:24.953Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089\",\r\n \"name\": \"ledger-cmdlet-dbps8089\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"maxSizeBytes\": 0,\r\n \"readScale\": \"\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "164" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/databaseOperationResults/6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "19ff554d-4238-4d0c-b861-d0c7786b16d3" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174041Z:19ff554d-4238-4d0c-b861-d0c7786b16d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:41 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-05-14T17:40:41.577Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjZiYmM0LWQxN2YtNDBhZi1hZDRmLWI1MGE4YTFhYzNmND9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a1f5319b-7d51-4f2f-81ff-3eb574dfc81f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "e10f88d8-cdb4-4f76-92a1-0b3ad8f11202" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174056Z:e10f88d8-cdb4-4f76-92a1-0b3ad8f11202" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:40:56 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:40:41.577Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjZiYmM0LWQxN2YtNDBhZi1hZDRmLWI1MGE4YTFhYzNmND9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ab47de5e-b1c1-4df8-8df8-9d87e72c42bd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "7018d9c2-8419-439f-828c-2b29de0b3de7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174112Z:7018d9c2-8419-439f-828c-2b29de0b3de7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:11 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:40:41.577Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjZiYmM0LWQxN2YtNDBhZi1hZDRmLWI1MGE4YTFhYzNmND9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f0eddf1-0fe0-4af6-835b-af3831d769f2" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "d648ab88-2b6d-4d6d-8ec5-4a60fa013bc2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "0de7e831-2c9d-415e-9ea8-52ecd89a13e3" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174127Z:0de7e831-2c9d-415e-9ea8-52ecd89a13e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:26 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6726bbc4-d17f-40af-ad4f-b50a8a1ac3f4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:40:41.577Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23e15ab7-7092-41bb-b6d2-5fd0619ae950" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "91c37cba-e5ab-4d46-867c-4ca65ecf9f64" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "34167834-fd01-44cb-b2d8-6439dc335f57" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174127Z:34167834-fd01-44cb-b2d8-6439dc335f57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:26 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "62e8d24e-a6e6-46a3-b620-eb576a2eb893" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "848a314f-d85a-452e-8e4e-6837f6f9478c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "dd8f21be-0940-49de-8469-56ebf6f1c1cf" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174127Z:dd8f21be-0940-49de-8469-56ebf6f1c1cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:27 GMT" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\",\r\n \"state\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b3d309f7-eb8d-43c5-9b98-89e8b6196b0e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1482cfed-8f15-46aa-9bf0-f8ce8f63f65c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "1e10a849-fdee-422c-aec5-90635309200b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174127Z:1e10a849-fdee-422c-aec5-90635309200b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:27 GMT" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\",\r\n \"state\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "40a9791b-deea-4bd2-a801-86d81e3dfd0d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d66892f5-2304-4dc9-a3bc-2538f75a24a7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "9e193125-6449-4ef7-a613-8e8523b93815" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174128Z:9e193125-6449-4ef7-a613-8e8523b93815" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:27 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23e15ab7-7092-41bb-b6d2-5fd0619ae950" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "103" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsOperationResults/7ae330d8-428e-4063-8f21-f89511504eba?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsAzureAsyncOperation/7ae330d8-428e-4063-8f21-f89511504eba?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "7ae330d8-428e-4063-8f21-f89511504eba" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "854419ce-df6d-41d1-be5c-99dc7a0a5a70" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174127Z:854419ce-df6d-41d1-be5c-99dc7a0a5a70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:27 GMT" + ], + "Content-Length": [ + "78" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLedgerTargetAsync\",\r\n \"startTime\": \"2021-05-14T17:41:27.633Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8089/databases/ledger-cmdlet-dbps8089/ledgerDigestUploads/current/disable?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OS9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4MDg5L2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4MDg5L2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudC9kaXNhYmxlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b3d309f7-eb8d-43c5-9b98-89e8b6196b0e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsOperationResults/d58cd270-054a-47cf-acda-4ef65c0c303d?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8089/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsAzureAsyncOperation/d58cd270-054a-47cf-acda-4ef65c0c303d?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "d58cd270-054a-47cf-acda-4ef65c0c303d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "886a4bc6-142c-4fc5-a26f-38f886099615" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174128Z:886a4bc6-142c-4fc5-a26f-38f886099615" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:27 GMT" + ], + "Content-Length": [ + "77" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLedgerTargetAsync\",\r\n \"startTime\": \"2021-05-14T17:41:28.11Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps8089?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODA4OT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ec0dcc1d-0c7f-46d8-9961-bef19370050c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "d44ffd39-3768-4e6e-84f1-25d29d8565ca" + ], + "x-ms-correlation-request-id": [ + "d44ffd39-3768-4e6e-84f1-25d29d8565ca" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174129Z:d44ffd39-3768-4e6e-84f1-25d29d8565ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:28 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "372b2a5b-164c-42b4-bf7b-5f45a35901ab" + ], + "x-ms-correlation-request-id": [ + "372b2a5b-164c-42b4-bf7b-5f45a35901ab" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174144Z:372b2a5b-164c-42b4-bf7b-5f45a35901ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:44 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "87b3e92b-db42-4f13-bca2-8615b42296af" + ], + "x-ms-correlation-request-id": [ + "87b3e92b-db42-4f13-bca2-8615b42296af" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174159Z:87b3e92b-db42-4f13-bca2-8615b42296af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:41:59 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "451cc863-8853-4b7b-8e6b-132ad5b7ab79" + ], + "x-ms-correlation-request-id": [ + "451cc863-8853-4b7b-8e6b-132ad5b7ab79" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174214Z:451cc863-8853-4b7b-8e6b-132ad5b7ab79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:42:14 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "61e25d2f-3fa2-46e4-80c4-3f437d4b5c95" + ], + "x-ms-correlation-request-id": [ + "61e25d2f-3fa2-46e4-80c4-3f437d4b5c95" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174229Z:61e25d2f-3fa2-46e4-80c4-3f437d4b5c95" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:42:29 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "ea416978-624a-4986-aa48-d13fc43076ed" + ], + "x-ms-correlation-request-id": [ + "ea416978-624a-4986-aa48-d13fc43076ed" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174245Z:ea416978-624a-4986-aa48-d13fc43076ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:42:44 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "22c8a7ae-9365-435f-82fe-21d58ad3a5e2" + ], + "x-ms-correlation-request-id": [ + "22c8a7ae-9365-435f-82fe-21d58ad3a5e2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174300Z:22c8a7ae-9365-435f-82fe-21d58ad3a5e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:42:59 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "d2d5daee-fea7-4e60-8d5f-21bd791a500e" + ], + "x-ms-correlation-request-id": [ + "d2d5daee-fea7-4e60-8d5f-21bd791a500e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174315Z:d2d5daee-fea7-4e60-8d5f-21bd791a500e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:14 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzgwODktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnd09Ea3RSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "344c41b4-146c-485e-9af9-8876d47c0ed1" + ], + "x-ms-correlation-request-id": [ + "344c41b4-146c-485e-9af9-8876d47c0ed1" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210514T174315Z:344c41b4-146c-485e-9af9-8876d47c0ed1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:43:14 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-SetLedgerDigestUploadByName": [ + "ps8089" + ] + }, + "Variables": { + "SubscriptionId": "e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4" + } +} \ No newline at end of file diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByResourceId.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByResourceId.json new file mode 100644 index 000000000000..3519cfd912a6 --- /dev/null +++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LedgerDigestUploadTests/TestSetLedgerDigestUploadByResourceId.json @@ -0,0 +1,2202 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps8572?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b8cd6b9d-5991-4198-b0f5-6754e0044ad8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "502dde42-51b2-420e-a47e-ad337485f07c" + ], + "x-ms-correlation-request-id": [ + "502dde42-51b2-420e-a47e-ad337485f07c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173534Z:502dde42-51b2-420e-a47e-ad337485f07c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:33 GMT" + ], + "Content-Length": [ + "212" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572\",\r\n \"name\": \"ledger-cmdlet-test-rgps8572\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "1847199d-5332-4e36-a71f-43e5ab871bb4" + ], + "x-ms-correlation-request-id": [ + "1847199d-5332-4e36-a71f-43e5ab871bb4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173535Z:1847199d-5332-4e36-a71f-43e5ab871bb4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:35 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "247" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps8572' under resource group 'ledger-cmdlet-test-rgps8572' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8ab87c34-f102-43ed-9794-905eaa72f07d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "28b9bb47-4aa9-4a32-851c-70d4b7dcca43" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173644Z:28b9bb47-4aa9-4a32-851c-70d4b7dcca43" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:44 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps8572.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572\",\r\n \"name\": \"ledger-cmdlet-serverps8572\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3c318eed-ed7f-4078-bb2c-cef2474db43f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "d50f8a3d-2617-4f40-92f4-2a541758123f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173645Z:d50f8a3d-2617-4f40-92f4-2a541758123f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:44 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps8572.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572\",\r\n \"name\": \"ledger-cmdlet-serverps8572\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1e52c1c0-128d-40b4-8d30-3d54d11bbe88" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "58f712f1-a166-4109-b3eb-0edbf85e60f9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173645Z:58f712f1-a166-4109-b3eb-0edbf85e60f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:44 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"ledger-cmdlet-serverps8572.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572\",\r\n \"name\": \"ledger-cmdlet-serverps8572\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": \"t357ingP@s5w0rd!ledger\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "185" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverOperationResults/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview" + ], + "x-ms-request-id": [ + "6b85cf8e-f4f8-4fd5-90b7-e074fce262de" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d7cf27a9-812d-40cd-bebc-41eaf36d09ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173538Z:d7cf27a9-812d-40cd-bebc-41eaf36d09ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:38 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "8b1d33f4-fa71-4da0-b0d4-c67034744ac5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "2212fd53-dab9-4360-abc0-890060311b42" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173539Z:2212fd53-dab9-4360-abc0-890060311b42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:39 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "e25cdce5-3c99-40d7-a8f6-8d04bb0099ce" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "4d2573a4-a8f5-49fe-b432-42b3f97bbf35" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173541Z:4d2573a4-a8f5-49fe-b432-42b3f97bbf35" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:40 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "8a887178-d7d2-48d0-a893-2e4c67d9c088" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "d1a69c2f-44eb-4d3f-9fea-ce664fb1f86f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173542Z:d1a69c2f-44eb-4d3f-9fea-ce664fb1f86f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:41 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "c31c6de7-380c-4aa3-97b2-6359c45d29c6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "51052fad-a1f8-4906-b894-7bba6542a991" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173543Z:51052fad-a1f8-4906-b894-7bba6542a991" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:42 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "da31b6d2-34ff-4e46-81de-c047dbd8f94a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "90ca2583-ceb5-4e8c-b43c-129860f09714" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173544Z:90ca2583-ceb5-4e8c-b43c-129860f09714" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:35:43 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "5a72697c-a679-4516-bedc-d74f7ad7e9c5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "379f51ad-7bc8-4361-943a-f42e3223ce1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173604Z:379f51ad-7bc8-4361-943a-f42e3223ce1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:03 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "226d3597-a05a-4145-b8a0-19af6fa7517c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "db46a178-5052-4790-a504-6ab7fbc1ac40" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173624Z:db46a178-5052-4790-a504-6ab7fbc1ac40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:23 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/serverAzureAsyncOperation/6b85cf8e-f4f8-4fd5-90b7-e074fce262de?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82Yjg1Y2Y4ZS1mNGY4LTRmZDUtOTBiNy1lMDc0ZmNlMjYyZGU/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba11c8e-4b7a-4dff-b42f-21910665c8e0" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "2004aa84-7632-4284-a91d-75d516f23ab6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "b87bb220-a075-44d5-93cc-0cb0be1065f4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173644Z:b87bb220-a075-44d5-93cc-0cb0be1065f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:43 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6b85cf8e-f4f8-4fd5-90b7-e074fce262de\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:35:38.603Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "92eebdb2-08af-4be3-97ab-2915ab8850e4" + ], + "x-ms-correlation-request-id": [ + "92eebdb2-08af-4be3-97ab-2915ab8850e4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173645Z:92eebdb2-08af-4be3-97ab-2915ab8850e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:44 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "280" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572' under resource group 'ledger-cmdlet-test-rgps8572' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "febc85fe-1ef5-4c20-9943-2b588f5a5f4a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "d4801640-784a-4413-bb6d-cb816c0af538" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173732Z:d4801640-784a-4413-bb6d-cb816c0af538" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:32 GMT" + ], + "Content-Length": [ + "1125" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "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\": \"64dfaf2d-ece5-4db8-ac95-1cc992e1900a\",\r\n \"creationDate\": \"2021-05-14T17:37:31.537Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"centraluseuap\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572\",\r\n \"name\": \"ledger-cmdlet-dbps8572\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"maxSizeBytes\": 0,\r\n \"readScale\": \"\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "164" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/databaseOperationResults/a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "f3dc7768-08ab-49b3-903a-be80ed6fe057" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173647Z:f3dc7768-08ab-49b3-903a-be80ed6fe057" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:36:46 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-05-14T17:36:47.063Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ExY2QxOWQ5LWE0ZDYtNGNmZC05M2JjLWM4ODJkMmZkYWE2MT9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f749954c-1f25-4572-81ce-3988c3e08953" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "072465e9-2af4-4720-ad26-6cfc4528d5ee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173702Z:072465e9-2af4-4720-ad26-6cfc4528d5ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:01 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:36:47.063Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ExY2QxOWQ5LWE0ZDYtNGNmZC05M2JjLWM4ODJkMmZkYWE2MT9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "009dafe5-e5b5-406b-a44f-47da3eee8293" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "0b663045-c493-4dd7-b926-07da61d2eeef" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173717Z:0b663045-c493-4dd7-b926-07da61d2eeef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:17 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-05-14T17:36:47.063Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/databaseAzureAsyncOperation/a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ExY2QxOWQ5LWE0ZDYtNGNmZC05M2JjLWM4ODJkMmZkYWE2MT9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d3201b40-3700-43d1-bf78-0c8c533c4ef6" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "ef7bb330-e118-46e8-bfe3-930273627c85" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "33e0db7a-e0de-4db1-8935-9ee9989a010c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173732Z:33e0db7a-e0de-4db1-8935-9ee9989a010c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:32 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a1cd19d9-a4d6-4cfd-93bc-c882d2fdaa61\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-05-14T17:36:47.063Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ffc77ed-7c10-4e0a-a02b-42b672d8e5dc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "0ed40409-9dc7-4d6d-8cbe-c8332eca2e37" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "ec4ec330-0ea2-4f3a-9404-aad1d90b5cd7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173732Z:ec4ec330-0ea2-4f3a-9404-aad1d90b5cd7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:32 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "54208ae1-4afb-496e-bc05-6e9cbe349526" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1696a177-748d-44d3-a6a0-7fa306ae2691" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "2ce2d428-8728-4c0e-ac4b-1416cadb1bf5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173733Z:2ce2d428-8728-4c0e-ac4b-1416cadb1bf5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:33 GMT" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\",\r\n \"state\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7e7af31e-a6dc-404e-9581-50e4908fecfa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "eecfa076-387b-498a-82b9-f1bad3ec8f5d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "b2e62f22-ba87-49de-9c45-30306f584ba2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173733Z:b2e62f22-ba87-49de-9c45-30306f584ba2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:33 GMT" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\",\r\n \"state\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "abeb4a25-b816-4fef-885c-8b69a075d477" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c774a07c-6e2a-4967-8a37-36ad30a80913" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "c51e415c-f629-4000-b37b-cfbae308e996" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173733Z:c51e415c-f629-4000-b37b-cfbae308e996" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:33 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"state\": \"Disabled\"\r\n },\r\n \"id\": \"/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/Current\",\r\n \"name\": \"Current\",\r\n \"type\": \"Microsoft.Sql/servers/databases/ledgerDigestUploads\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/current?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"digestStorageEndpoint\": \"https://test.confidential-ledger.azure.com\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ffc77ed-7c10-4e0a-a02b-42b672d8e5dc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "103" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsOperationResults/868b2665-43c3-4ac1-ab93-e5b5844953d7?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsAzureAsyncOperation/868b2665-43c3-4ac1-ab93-e5b5844953d7?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "868b2665-43c3-4ac1-ab93-e5b5844953d7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "d0197b99-789a-45ba-ab33-dfad7fd2448d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173733Z:d0197b99-789a-45ba-ab33-dfad7fd2448d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:33 GMT" + ], + "Content-Length": [ + "78" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLedgerTargetAsync\",\r\n \"startTime\": \"2021-05-14T17:37:33.207Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/servers/ledger-cmdlet-serverps8572/databases/ledger-cmdlet-dbps8572/ledgerDigestUploads/current/disable?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlR3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL2xlZGdlci1jbWRsZXQtc2VydmVycHM4NTcyL2RhdGFiYXNlcy9sZWRnZXItY21kbGV0LWRicHM4NTcyL2xlZGdlckRpZ2VzdFVwbG9hZHMvY3VycmVudC9kaXNhYmxlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7e7af31e-a6dc-404e-9581-50e4908fecfa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.52.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsOperationResults/7aa20d3b-6995-4027-96a4-b2a6ac747f21?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourceGroups/ledger-cmdlet-test-rgps8572/providers/Microsoft.Sql/locations/eastus2euap/ledgerDigestUploadsAzureAsyncOperation/7aa20d3b-6995-4027-96a4-b2a6ac747f21?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "7aa20d3b-6995-4027-96a4-b2a6ac747f21" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "246f1a6a-cb05-4079-87e6-0801e8292e54" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173733Z:246f1a6a-cb05-4079-87e6-0801e8292e54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:33 GMT" + ], + "Content-Length": [ + "78" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLedgerTargetAsync\",\r\n \"startTime\": \"2021-05-14T17:37:33.727Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/resourcegroups/ledger-cmdlet-test-rgps8572?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L3Jlc291cmNlZ3JvdXBzL2xlZGdlci1jbWRsZXQtdGVzdC1yZ3BzODU3Mj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3339483a-b90d-441a-95ce-3a61e50dfa41" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "48d0399f-9eea-43e8-a42b-7c8dbf7eb72c" + ], + "x-ms-correlation-request-id": [ + "48d0399f-9eea-43e8-a42b-7c8dbf7eb72c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173735Z:48d0399f-9eea-43e8-a42b-7c8dbf7eb72c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "a7562290-dcf2-4b53-98c7-35d91d815a3b" + ], + "x-ms-correlation-request-id": [ + "a7562290-dcf2-4b53-98c7-35d91d815a3b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173750Z:a7562290-dcf2-4b53-98c7-35d91d815a3b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:37:50 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "bd7895bd-9278-43af-90c5-33bb037ff6c6" + ], + "x-ms-correlation-request-id": [ + "bd7895bd-9278-43af-90c5-33bb037ff6c6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173805Z:bd7895bd-9278-43af-90c5-33bb037ff6c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:38:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "2640d79f-bfbf-4cd9-a570-2a1c73ac6995" + ], + "x-ms-correlation-request-id": [ + "2640d79f-bfbf-4cd9-a570-2a1c73ac6995" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173820Z:2640d79f-bfbf-4cd9-a570-2a1c73ac6995" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:38:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "b537b426-99fc-4332-8f14-3f966a186034" + ], + "x-ms-correlation-request-id": [ + "b537b426-99fc-4332-8f14-3f966a186034" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173836Z:b537b426-99fc-4332-8f14-3f966a186034" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:38:35 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "deae3e12-5d65-41f0-b61f-c4dc570ad9c3" + ], + "x-ms-correlation-request-id": [ + "deae3e12-5d65-41f0-b61f-c4dc570ad9c3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173851Z:deae3e12-5d65-41f0-b61f-c4dc570ad9c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:38:50 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "cd87944e-231a-47c0-83c6-d7e01785564f" + ], + "x-ms-correlation-request-id": [ + "cd87944e-231a-47c0-83c6-d7e01785564f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173906Z:cd87944e-231a-47c0-83c6-d7e01785564f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "650806ea-3b47-4f4e-9b62-612b0f2962be" + ], + "x-ms-correlation-request-id": [ + "650806ea-3b47-4f4e-9b62-612b0f2962be" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173921Z:650806ea-3b47-4f4e-9b62-612b0f2962be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1MRURHRVI6MkRDTURMRVQ6MkRURVNUOjJEUkdQUzg1NzItRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY0ZjNlOGUtYWI5MS00YTY1LThjZGQtNWNkMmY0N2QwMGI0L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFNUlVSSFJWSTZNa1JEVFVSTVJWUTZNa1JVUlZOVU9qSkVVa2RRVXpnMU56SXRSVUZUVkZWVE1rVlZRVkFpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SmxkV0Z3SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "ab4f4551-1752-4f7a-8a14-6a8c8ac0b838" + ], + "x-ms-correlation-request-id": [ + "ab4f4551-1752-4f7a-8a14-6a8c8ac0b838" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210514T173921Z:ab4f4551-1752-4f7a-8a14-6a8c8ac0b838" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 14 May 2021 17:39:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-SetLedgerDigestUploadByResourceId": [ + "ps8572" + ] + }, + "Variables": { + "SubscriptionId": "e64f3e8e-ab91-4a65-8cdd-5cd2f47d00b4" + } +} \ No newline at end of file diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs index 3013658192e5..623fb3c0b68e 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/AzureSqlDatabaseLedgerDigestUploadBase.cs @@ -104,7 +104,7 @@ protected override AzureSqlDatabaseLedgerDigestUploadModel GetEntity() ResourceIdentifier identifier = new ResourceIdentifier(ResourceId); DatabaseName = identifier.ResourceName; ResourceGroupName = identifier.ResourceGroupName; - ServerName = identifier.ParentResource; + ServerName = identifier.ParentResource.Split('/')[1]; } else if (ParameterSetName == InputObjectSet) { diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs index c274cb5d727b..9b3c1904cd90 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/DisableAzSqlDatabaseLedgerDigestUpload.cs @@ -29,23 +29,6 @@ namespace Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Cmdlet [Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseLedgerDigestUpload", ConfirmImpact = ConfirmImpact.Low, SupportsShouldProcess = true), OutputType(typeof(AzureSqlDatabaseLedgerDigestLocationModel))] public class DisableAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDigestUploadBase { - /// - /// Create the model from user input - /// - /// Model retrieved from service - /// The model that was passed in - protected override AzureSqlDatabaseLedgerDigestUploadModel ApplyUserInputToModel(AzureSqlDatabaseLedgerDigestUploadModel model) - { - return new AzureSqlDatabaseLedgerDigestUploadModel( - ResourceGroupName, - ServerName, - DatabaseName, - new Management.Sql.Models.LedgerDigestUploads - { - DigestStorageEndpoint = null - }); - } - /// /// Update the entity /// @@ -55,7 +38,7 @@ protected override AzureSqlDatabaseLedgerDigestUploadModel PersistChanges(AzureS { if (!ShouldProcess(DatabaseName)) return null; - return ModelAdapter.DisableLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName); + return ModelAdapter.DisableLedgerDigestUpload(entity); } } } \ No newline at end of file diff --git a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs index b9fe70b2ce5b..e4405dc2fade 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Cmdlet/EnableAzSqlDatabaseLedgerDigestUpload.cs @@ -45,14 +45,9 @@ public class EnableAzSqlDatabaseLedgerDigestUpload : AzureSqlDatabaseLedgerDiges /// The model that was passed in protected override AzureSqlDatabaseLedgerDigestUploadModel ApplyUserInputToModel(AzureSqlDatabaseLedgerDigestUploadModel model) { - return new AzureSqlDatabaseLedgerDigestUploadModel( - ResourceGroupName, - ServerName, - DatabaseName, - new Management.Sql.Models.LedgerDigestUploads - { - DigestStorageEndpoint = Endpoint - }); + model.Endpoint = Endpoint; + + return model; } /// @@ -64,7 +59,7 @@ protected override AzureSqlDatabaseLedgerDigestUploadModel PersistChanges(AzureS { if (!ShouldProcess(DatabaseName)) return null; - return ModelAdapter.SetLedgerDigestUpload(this.ResourceGroupName, this.ServerName, this.DatabaseName, entity); + return ModelAdapter.SetLedgerDigestUpload(entity); } } } \ No newline at end of file diff --git a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs index 67f9ca638223..75fe28b4dfdd 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadAdapter.cs @@ -61,7 +61,10 @@ internal AzureSqlDatabaseLedgerDigestUploadModel GetLedgerDigestUpload( string serverName, string databaseName) { - var configuration = Communicator.GetLedgerDigestUpload(resourceGroup, serverName, databaseName); + Management.Sql.Models.LedgerDigestUploads configuration = Communicator.GetLedgerDigestUpload( + resourceGroup, + serverName, + databaseName); return new AzureSqlDatabaseLedgerDigestUploadModel(resourceGroup, serverName, databaseName, configuration); } @@ -74,22 +77,20 @@ internal AzureSqlDatabaseLedgerDigestUploadModel GetLedgerDigestUpload( /// The name of the Azure SQL Database /// AzureSqlDatabaseLedgerDigestUploadModel model /// A ledger digest upload - internal AzureSqlDatabaseLedgerDigestUploadModel SetLedgerDigestUpload( - string resourceGroup, - string serverName, - string databaseName, - AzureSqlDatabaseLedgerDigestUploadModel model) + internal AzureSqlDatabaseLedgerDigestUploadModel SetLedgerDigestUpload(AzureSqlDatabaseLedgerDigestUploadModel model) { - var configuration = Communicator.SetLedgerDigestUpload( + Management.Sql.Models.LedgerDigestUploads config = new Management.Sql.Models.LedgerDigestUploads() + { + DigestStorageEndpoint = model.Endpoint + }; + + Communicator.SetLedgerDigestUpload( model.ResourceGroupName, model.ServerName, - model.DatabaseName, - new Management.Sql.Models.LedgerDigestUploads() - { - DigestStorageEndpoint = model.Endpoint - }); + model.DatabaseName, + config); - return new AzureSqlDatabaseLedgerDigestUploadModel(resourceGroup, serverName, databaseName, configuration); + return new AzureSqlDatabaseLedgerDigestUploadModel(model.ResourceGroupName, model.ServerName, model.DatabaseName, config); } /// @@ -99,27 +100,19 @@ internal AzureSqlDatabaseLedgerDigestUploadModel SetLedgerDigestUpload( /// The name of the Azure SQL Server /// The name of the Azure SQL Database /// A ledger digest upload - internal AzureSqlDatabaseLedgerDigestUploadModel DisableLedgerDigestUpload( - string resourceGroup, - string serverName, - string databaseName) + internal AzureSqlDatabaseLedgerDigestUploadModel DisableLedgerDigestUpload(AzureSqlDatabaseLedgerDigestUploadModel model) { - var configuration = Communicator.DisableLedgerDigestUpload( - resourceGroup, - serverName, - databaseName); - - return new AzureSqlDatabaseLedgerDigestUploadModel(resourceGroup, serverName, databaseName, configuration); - } + Management.Sql.Models.LedgerDigestUploads config = new Management.Sql.Models.LedgerDigestUploads() + { + DigestStorageEndpoint = null + }; + Communicator.DisableLedgerDigestUpload( + model.ResourceGroupName, + model.ServerName, + model.DatabaseName); - private string GetResourceGroupNameFromResourceId(string resourceId) - { - if (resourceId.Contains("/resourceGroups/")) - { - return resourceId.Split('/')[4]; - } - return null; + return new AzureSqlDatabaseLedgerDigestUploadModel(model.ResourceGroupName, model.ServerName, model.DatabaseName, config); } } } diff --git a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs index 25a515736262..05323daf8864 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Services/AzureSqlDatabaseLedgerDigestUploadCommunicator.cs @@ -83,13 +83,13 @@ public Management.Sql.Models.LedgerDigestUploads GetLedgerDigestUpload( /// The database name. /// Ledger digest upload parameters /// - public Management.Sql.Models.LedgerDigestUploads SetLedgerDigestUpload( + public void SetLedgerDigestUpload( string resourceGroupName, string serverName, string databaseName, Management.Sql.Models.LedgerDigestUploads parameters) { - return GetCurrentSqlClient().LedgerDigestUploads.CreateOrUpdate(resourceGroupName, serverName, databaseName, parameters); + GetCurrentSqlClient().LedgerDigestUploads.CreateOrUpdate(resourceGroupName, serverName, databaseName, parameters); } /// @@ -99,12 +99,12 @@ public Management.Sql.Models.LedgerDigestUploads SetLedgerDigestUpload( /// The server name. /// The database name. /// - public Management.Sql.Models.LedgerDigestUploads DisableLedgerDigestUpload( + public void DisableLedgerDigestUpload( string resourceGroupName, string serverName, string databaseName) { - return GetCurrentSqlClient().LedgerDigestUploads.Disable(resourceGroupName, serverName, databaseName); + GetCurrentSqlClient().LedgerDigestUploads.Disable(resourceGroupName, serverName, databaseName); } /// From 2b207e52c15948891f680e1ca9b7942310619fa0 Mon Sep 17 00:00:00 2001 From: Reilly Wong Date: Fri, 14 May 2021 11:01:40 -0700 Subject: [PATCH 4/6] adding comments to locations model --- .../Model/AzureSqlDatabaseLedgerDigestLocationModel.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs b/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs index 794115614c51..4d7e57714e48 100644 --- a/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs +++ b/src/Sql/Sql/LedgerDigestUploads/Model/AzureSqlDatabaseLedgerDigestLocationModel.cs @@ -26,8 +26,14 @@ class AzureSqlDatabaseLedgerDigestLocationModel /// public string Endpoint { get; set; } + /// + /// Gets or sets the last digest block id for this location + /// public Int64 LastDigestBlockId { get; set; } + /// + /// Gets or sets whether this is the current location + /// public bool IsCurrent { get; set; } } } From e79386fea087985bff922c5bf50d077e987f3263 Mon Sep 17 00:00:00 2001 From: Reilly Wong Date: Fri, 14 May 2021 11:23:38 -0700 Subject: [PATCH 5/6] adding to changelog.md --- src/Sql/Sql/ChangeLog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md index b79b087e85ed..8be4cddbc3f8 100644 --- a/src/Sql/Sql/ChangeLog.md +++ b/src/Sql/Sql/ChangeLog.md @@ -19,6 +19,8 @@ --> ## Upcoming Release * Updated `Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline` documentation to include example of define array of array with one inner array. +* Added new cmdlets `Get-AzSqlDatabaseLedgerDigestUpload`, `Disable-AzSqlDatabaseLedgerDigestUpload`, and `Enable-AzSqlDatabaseLedgerDigestUpload` +* Added -EnableLedger parameter to `New-AzSqlDatabase` ## Version 2.17.1 * Added cmdlet output breaking change warnings to the following: From 158666643a81c2f1b65431eebfa75dee9b8ee598 Mon Sep 17 00:00:00 2001 From: Reilly Wong Date: Fri, 14 May 2021 12:06:36 -0700 Subject: [PATCH 6/6] adding markdowe help files --- src/Sql/Sql/help/Az.Sql.md | 9 + ...Disable-AzSqlDatabaseLedgerDigestUpload.md | 185 ++++++++++++++++ .../Enable-AzSqlDatabaseLedgerDigestUpload.md | 201 ++++++++++++++++++ .../Get-AzSqlDatabaseLedgerDigestUpload.md | 185 ++++++++++++++++ 4 files changed, 580 insertions(+) create mode 100644 src/Sql/Sql/help/Disable-AzSqlDatabaseLedgerDigestUpload.md create mode 100644 src/Sql/Sql/help/Enable-AzSqlDatabaseLedgerDigestUpload.md create mode 100644 src/Sql/Sql/help/Get-AzSqlDatabaseLedgerDigestUpload.md diff --git a/src/Sql/Sql/help/Az.Sql.md b/src/Sql/Sql/help/Az.Sql.md index a6c0fd89146f..0852ce04f9d0 100644 --- a/src/Sql/Sql/help/Az.Sql.md +++ b/src/Sql/Sql/help/Az.Sql.md @@ -65,6 +65,9 @@ Converts a vulnerability assessment scan results to Excel format. ### [Convert-AzSqlInstanceDatabaseVulnerabilityAssessmentScan](Convert-AzSqlInstanceDatabaseVulnerabilityAssessmentScan.md) Converts a vulnerability assessment scan results to Excel format. +### [Disable-AzSqlDatabaseLedgerDigestUpload](Disable-AzSqlDatabaseLedgerDigestUpload.md) +Disables uploading ledger digests to Azure Blob storage or to Azure Confidential Ledger. + ### [Disable-AzSqlDatabaseSensitivityRecommendation](Disable-AzSqlDatabaseSensitivityRecommendation.md) Disables (dismisses) sensitivity recommendations on columns in the database. @@ -104,6 +107,9 @@ Enables Azure AD only authentication for a specific SQL Server. ### [Enable-AzSqlServerAdvancedDataSecurity](Enable-AzSqlServerAdvancedDataSecurity.md) Enables Advanced Data Security on a server. +### [Enable-AzSqlDatabaseLedgerDigestUpload](Enable-AzSqlDatabaseLedgerDigestUpload.md) +Enables uploading ledger digests to an Azure Storage account or to Azure Confidential Ledger. + ### [Enable-AzSqlServerAdvancedThreatProtection](Enable-AzSqlServerAdvancedThreatProtection.md) Enables Advanced Threat Protection on a server. @@ -158,6 +164,9 @@ Gets the recommended index operations for a server or database. ### [Get-AzSqlDatabaseInstanceFailoverGroup](Get-AzSqlDatabaseInstanceFailoverGroup.md) Gets or lists Instance Failover Groups. +### [Get-AzSqlDatabaseLedgerDigestUpload](Get-AzSqlDatabaseLedgerDigestUpload.md) +Gets the ledger digest upload settings of an Azure SQL database. + ### [Get-AzSqlDatabaseLongTermRetentionBackup](Get-AzSqlDatabaseLongTermRetentionBackup.md) Gets one or more long term retention backups. diff --git a/src/Sql/Sql/help/Disable-AzSqlDatabaseLedgerDigestUpload.md b/src/Sql/Sql/help/Disable-AzSqlDatabaseLedgerDigestUpload.md new file mode 100644 index 000000000000..17f55fc33798 --- /dev/null +++ b/src/Sql/Sql/help/Disable-AzSqlDatabaseLedgerDigestUpload.md @@ -0,0 +1,185 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml +Module Name: Az.Sql +online version: https://docs.microsoft.com/en-us/powershell/module/az.sql/Disable-AzSqlDatabaseLedgerDigestUpload +schema: 2.0.0 +--- + +# Disable-AzSqlDatabaseLedgerDigestUpload + +## SYNOPSIS +Disables uploading ledger digests to Azure Blob storage or to Azure Confidential Ledger. + +## SYNTAX + +### DatabaseParameterSet +``` +Disable-AzSqlDatabaseLedgerDigestUpload [-ResourceGroupName] [-ServerName] + [-DatabaseName] [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### InputObjectParameterSet +``` +Disable-AzSqlDatabaseLedgerDigestUpload -InputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ResourceIdParameterSet +``` +Disable-AzSqlDatabaseLedgerDigestUpload [-ResourceId] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +The Disable-AzSqlDatabaseLedgerDigestUpload cmdlet disables uploading ledger digests to Azure Blob storage or Azure Confidental Ledger. To use the cmdlet, identify the database. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Disable-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" +``` + +ResourceGroupName ServerName DatabaseName State Endpoint +----------------- ---------- ------------ ----- -------- +ResourceGroup01 Server01 Database01 Disabled + +## PARAMETERS + +### -DatabaseName +SQL Database name. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The database object to disable digest uploads for. + +```yaml +Type: Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel +Parameter Sets: InputObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +The resource id of the database to disable digest uploads for. + +```yaml +Type: System.String +Parameter Sets: ResourceIdParameterSet +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -ServerName +SQL server name. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel + +### System.String + +## OUTPUTS + +### Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model.AzureSqlDatabaseLedgerDigestLocationModel + +## NOTES + +## RELATED LINKS diff --git a/src/Sql/Sql/help/Enable-AzSqlDatabaseLedgerDigestUpload.md b/src/Sql/Sql/help/Enable-AzSqlDatabaseLedgerDigestUpload.md new file mode 100644 index 000000000000..c878d1fdbceb --- /dev/null +++ b/src/Sql/Sql/help/Enable-AzSqlDatabaseLedgerDigestUpload.md @@ -0,0 +1,201 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml +Module Name: Az.Sql +online version: https://docs.microsoft.com/en-us/powershell/module/az.sql/Enable-AzSqlDatabaseLedgerDigestUpload +schema: 2.0.0 +--- + +# Enable-AzSqlDatabaseLedgerDigestUpload + +## SYNOPSIS +Enables uploading ledger digests to an Azure Storage account or to Azure Confidential Ledger. + +## SYNTAX + +### DatabaseParameterSet +``` +Enable-AzSqlDatabaseLedgerDigestUpload [-Endpoint] [-ResourceGroupName] + [-ServerName] [-DatabaseName] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### InputObjectParameterSet +``` +Enable-AzSqlDatabaseLedgerDigestUpload [-Endpoint] -InputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ResourceIdParameterSet +``` +Enable-AzSqlDatabaseLedgerDigestUpload [-Endpoint] [-ResourceId] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +The Enable-AzSqlDatabaseLedgerDigestUpload cmdlet enables uploading ledger digests to Azure Blob storage or Azure Confidential Ledger. To use the cmdlet, specify the endpoint of an Azure Blob storage account or a ledger in Azure Confidential Ledger, and identify the database. If uploading ledger digests is already enabled, the cmdlet resets the digest storage endpoint to a new value. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Enable-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" -Endpoint "https://mystorage.blob.core.windows.net" +``` + +ResourceGroupName ServerName DatabaseName State Endpoint +----------------- ---------- ------------ ----- -------- +ResourceGroup01 Server01 Database01 Enabled https://mystorage.blob.core.windows.net + +## PARAMETERS + +### -DatabaseName +SQL Database name. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The Azure Sql Database Ledger Digest Uploads endpoint. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The database object to disable digest uploads for. + +```yaml +Type: Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel +Parameter Sets: InputObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +The resource id of the database to disable digest uploads for. + +```yaml +Type: System.String +Parameter Sets: ResourceIdParameterSet +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -ServerName +SQL server name. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel + +### System.String + +## OUTPUTS + +### Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model.AzureSqlDatabaseLedgerDigestLocationModel + +## NOTES + +## RELATED LINKS diff --git a/src/Sql/Sql/help/Get-AzSqlDatabaseLedgerDigestUpload.md b/src/Sql/Sql/help/Get-AzSqlDatabaseLedgerDigestUpload.md new file mode 100644 index 000000000000..50cdb1d6fc68 --- /dev/null +++ b/src/Sql/Sql/help/Get-AzSqlDatabaseLedgerDigestUpload.md @@ -0,0 +1,185 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml +Module Name: Az.Sql +online version: +schema: 2.0.0 +--- + +# Get-AzSqlDatabaseLedgerDigestUpload + +## SYNOPSIS +Gets the ledger digest upload settings of an Azure SQL database. + +## SYNTAX + +### DatabaseParameterSet +``` +Get-AzSqlDatabaseLedgerDigestUpload [-ResourceGroupName] [-ServerName] + [-DatabaseName] [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### InputObjectParameterSet +``` +Get-AzSqlDatabaseLedgerDigestUpload -InputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ResourceIdParameterSet +``` +Get-AzSqlDatabaseLedgerDigestUpload [-ResourceId] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +The Get-AzSqlDatabaseLedgerDigestUpload cmdlet gets the ledger digest upload settings of the specified Azure SQL database. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Get-AzSqlDatabaseLedgerDigestUpload -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" +``` + +ResourceGroupName ServerName DatabaseName State Endpoint +----------------- ---------- ------------ ----- -------- +ResourceGroup01 Server01 Database01 Enabled https://mystorage.blob.core.windows.net + +## PARAMETERS + +### -DatabaseName +SQL Database name. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The database object to disable digest uploads for. + +```yaml +Type: Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel +Parameter Sets: InputObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +The resource id of the database to disable digest uploads for. + +```yaml +Type: System.String +Parameter Sets: ResourceIdParameterSet +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -ServerName +SQL server name. + +```yaml +Type: System.String +Parameter Sets: DatabaseParameterSet +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel + +### System.String + +## OUTPUTS + +### Microsoft.Azure.Commands.Sql.LedgerDigestUploads.Model.AzureSqlDatabaseLedgerDigestUploadModel + +## NOTES + +## RELATED LINKS