From 46708c69103155928d26a7574ce01195da6bd45d Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:18:18 -0700 Subject: [PATCH 01/25] generate client code and add tests for vbs elastic pools --- .../Azure.ResourceManager.Sql.sln | 6 +- .../src/Generated/ElasticPoolCollection.cs | 4 +- .../src/Generated/ElasticPoolData.cs | 18 +- .../src/Generated/ElasticPoolResource.cs | 88 +- .../Models/ElasticPoolData.Serialization.cs | 47 +- .../Models/ElasticPoolPatch.Serialization.cs | 15 + .../src/Generated/Models/ElasticPoolPatch.cs | 6 + .../ElasticPoolsRestOperations.cs | 2 +- .../Azure.ResourceManager.Sql/src/autorest.md | 3 +- .../Azure.ResourceManager.Sql.Tests.csproj | 3 + .../tests/Scenario/ElasticPoolTests.cs | 165 ++ .../ElasticPoolTests/ElasticPoolApiTests.json | 1463 ++++++++++ .../ElasticPoolApiTestsAsync.json | 1462 ++++++++++ .../ElasticPoolApiTestsWithEnclaves.json | 2386 ++++++++++++++++ .../ElasticPoolApiTestsWithEnclavesAsync.json | 2415 +++++++++++++++++ .../ElasticPoolTests(False).json | 94 + .../ElasticPoolTests(True)Async.json | 93 + 17 files changed, 8213 insertions(+), 57 deletions(-) create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln b/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln index 548f9c4a58a79..be90089f65e50 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln @@ -24,7 +24,6 @@ Global {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|Any CPU.Build.0 = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x64.ActiveCfg = Debug|Any CPU - {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x64.Build.0 = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x86.ActiveCfg = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x86.Build.0 = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -36,7 +35,6 @@ Global {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|Any CPU.Build.0 = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x64.ActiveCfg = Debug|Any CPU - {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x64.Build.0 = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x86.ActiveCfg = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x86.Build.0 = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -47,8 +45,7 @@ Global {89796B68-A3DB-4298-B59B-17A8EF781021}.Release|x86.Build.0 = Release|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x64.ActiveCfg = Debug|Any CPU - {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x64.Build.0 = Debug|Any CPU + {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x64.ActiveCfg = Debug|x64 {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x86.ActiveCfg = Debug|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x86.Build.0 = Debug|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -60,7 +57,6 @@ Global {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|Any CPU.Build.0 = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x64.ActiveCfg = Debug|Any CPU - {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x64.Build.0 = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x86.ActiveCfg = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x86.Build.0 = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolCollection.cs index 0ffbf4505ff6a..1753abab2d07b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolCollection.cs @@ -81,7 +81,7 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _elasticPoolRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, elasticPoolName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(new ElasticPoolOperationSource(Client), _elasticPoolClientDiagnostics, Pipeline, _elasticPoolRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, elasticPoolName, data).Request, response, OperationFinalStateVia.Location); + var operation = new SqlArmOperation(new ElasticPoolOperationSource(Client), _elasticPoolClientDiagnostics, Pipeline, _elasticPoolRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, elasticPoolName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -122,7 +122,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _elasticPoolRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, elasticPoolName, data, cancellationToken); - var operation = new SqlArmOperation(new ElasticPoolOperationSource(Client), _elasticPoolClientDiagnostics, Pipeline, _elasticPoolRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, elasticPoolName, data).Request, response, OperationFinalStateVia.Location); + var operation = new SqlArmOperation(new ElasticPoolOperationSource(Client), _elasticPoolClientDiagnostics, Pipeline, _elasticPoolRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, elasticPoolName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs index 3c3aecd562d57..90529d2362a93 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs @@ -46,23 +46,29 @@ public ElasticPoolData(AzureLocation location) : base(location) /// The state of the elastic pool. /// The creation date of the elastic pool (ISO8601 format). /// The storage limit for the database elastic pool in bytes. + /// Minimal capacity that serverless pool will not shrink below, if not paused. /// The per database settings for the elastic pool. /// Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. /// The license type to apply for this elastic pool. /// Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. - /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. - internal ElasticPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, SqlSku sku, string kind, ElasticPoolState? state, DateTimeOffset? createdOn, long? maxSizeBytes, ElasticPoolPerDatabaseSettings perDatabaseSettings, bool? isZoneRedundant, ElasticPoolLicenseType? licenseType, ResourceIdentifier maintenanceConfigurationId, int? highAvailabilityReplicaCount) : base(id, name, resourceType, systemData, tags, location) + /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. + /// Type of enclave requested on the elastic pool. + /// Specifies the availability zone the pool's primary replica is pinned to. + internal ElasticPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, SqlSku sku, string kind, ElasticPoolState? state, DateTimeOffset? createdOn, long? maxSizeBytes, double? minCapacity, ElasticPoolPerDatabaseSettings perDatabaseSettings, bool? isZoneRedundant, ElasticPoolLicenseType? licenseType, ResourceIdentifier maintenanceConfigurationId, int? highAvailabilityReplicaCount, SqlAlwaysEncryptedEnclaveType? preferredEnclaveType, SqlAvailabilityZoneType? availabilityZone) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Kind = kind; State = state; CreatedOn = createdOn; MaxSizeBytes = maxSizeBytes; + MinCapacity = minCapacity; PerDatabaseSettings = perDatabaseSettings; IsZoneRedundant = isZoneRedundant; LicenseType = licenseType; MaintenanceConfigurationId = maintenanceConfigurationId; HighAvailabilityReplicaCount = highAvailabilityReplicaCount; + PreferredEnclaveType = preferredEnclaveType; + AvailabilityZone = availabilityZone; } /// @@ -84,6 +90,8 @@ internal ElasticPoolData(ResourceIdentifier id, string name, ResourceType resour public DateTimeOffset? CreatedOn { get; } /// The storage limit for the database elastic pool in bytes. public long? MaxSizeBytes { get; set; } + /// Minimal capacity that serverless pool will not shrink below, if not paused. + public double? MinCapacity { get; set; } /// The per database settings for the elastic pool. public ElasticPoolPerDatabaseSettings PerDatabaseSettings { get; set; } /// Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. @@ -92,7 +100,11 @@ internal ElasticPoolData(ResourceIdentifier id, string name, ResourceType resour public ElasticPoolLicenseType? LicenseType { get; set; } /// Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. public ResourceIdentifier MaintenanceConfigurationId { get; set; } - /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. + /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. public int? HighAvailabilityReplicaCount { get; set; } + /// Type of enclave requested on the elastic pool. + public SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get; set; } + /// Specifies the availability zone the pool's primary replica is pinned to. + public SqlAvailabilityZoneType? AvailabilityZone { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolResource.cs index 76b4ae2658c61..944f65f0b5eb3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolResource.cs @@ -603,6 +603,50 @@ public virtual Pageable GetElasticPoolOperations(Cance return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, ElasticPoolOperationData.DeserializeElasticPoolOperationData, _elasticPoolOperationsClientDiagnostics, Pipeline, "ElasticPoolResource.GetElasticPoolOperations", "value", "nextLink", cancellationToken); } + /// + /// Gets a list of databases in an elastic pool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases + /// + /// + /// Operation Id + /// Databases_ListByElasticPool + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetDatabasesAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SqlDatabaseResource(Client, SqlDatabaseData.DeserializeSqlDatabaseData(e)), _sqlDatabaseDatabasesClientDiagnostics, Pipeline, "ElasticPoolResource.GetDatabases", "value", "nextLink", cancellationToken); + } + + /// + /// Gets a list of databases in an elastic pool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases + /// + /// + /// Operation Id + /// Databases_ListByElasticPool + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetDatabases(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SqlDatabaseResource(Client, SqlDatabaseData.DeserializeSqlDatabaseData(e)), _sqlDatabaseDatabasesClientDiagnostics, Pipeline, "ElasticPoolResource.GetDatabases", "value", "nextLink", cancellationToken); + } + /// /// Failovers an elastic pool. /// @@ -671,50 +715,6 @@ public virtual ArmOperation Failover(WaitUntil waitUntil, CancellationToken canc } } - /// - /// Gets a list of databases in an elastic pool. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases - /// - /// - /// Operation Id - /// Databases_ListByElasticPool - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetDatabasesAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SqlDatabaseResource(Client, SqlDatabaseData.DeserializeSqlDatabaseData(e)), _sqlDatabaseDatabasesClientDiagnostics, Pipeline, "ElasticPoolResource.GetDatabases", "value", "nextLink", cancellationToken); - } - - /// - /// Gets a list of databases in an elastic pool. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases - /// - /// - /// Operation Id - /// Databases_ListByElasticPool - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetDatabases(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sqlDatabaseDatabasesRestClient.CreateListByElasticPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SqlDatabaseResource(Client, SqlDatabaseData.DeserializeSqlDatabaseData(e)), _sqlDatabaseDatabasesClientDiagnostics, Pipeline, "ElasticPoolResource.GetDatabases", "value", "nextLink", cancellationToken); - } - /// /// Add a tag to the current resource. /// diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs index 902e5a1b6fe3e..f27d59ad162bf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs @@ -44,6 +44,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("maxSizeBytes"u8); writer.WriteNumberValue(MaxSizeBytes.Value); } + if (Optional.IsDefined(MinCapacity)) + { + writer.WritePropertyName("minCapacity"u8); + writer.WriteNumberValue(MinCapacity.Value); + } if (Optional.IsDefined(PerDatabaseSettings)) { writer.WritePropertyName("perDatabaseSettings"u8); @@ -69,6 +74,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("highAvailabilityReplicaCount"u8); writer.WriteNumberValue(HighAvailabilityReplicaCount.Value); } + if (Optional.IsDefined(PreferredEnclaveType)) + { + writer.WritePropertyName("preferredEnclaveType"u8); + writer.WriteStringValue(PreferredEnclaveType.Value.ToString()); + } + if (Optional.IsDefined(AvailabilityZone)) + { + writer.WritePropertyName("availabilityZone"u8); + writer.WriteStringValue(AvailabilityZone.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -90,11 +105,14 @@ internal static ElasticPoolData DeserializeElasticPoolData(JsonElement element) Optional state = default; Optional creationDate = default; Optional maxSizeBytes = default; + Optional minCapacity = default; Optional perDatabaseSettings = default; Optional zoneRedundant = default; Optional licenseType = default; Optional maintenanceConfigurationId = default; Optional highAvailabilityReplicaCount = default; + Optional preferredEnclaveType = default; + Optional availabilityZone = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sku"u8)) @@ -190,6 +208,15 @@ internal static ElasticPoolData DeserializeElasticPoolData(JsonElement element) maxSizeBytes = property0.Value.GetInt64(); continue; } + if (property0.NameEquals("minCapacity"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + minCapacity = property0.Value.GetDouble(); + continue; + } if (property0.NameEquals("perDatabaseSettings"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -235,11 +262,29 @@ internal static ElasticPoolData DeserializeElasticPoolData(JsonElement element) highAvailabilityReplicaCount = property0.Value.GetInt32(); continue; } + if (property0.NameEquals("preferredEnclaveType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + preferredEnclaveType = new SqlAlwaysEncryptedEnclaveType(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("availabilityZone"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + availabilityZone = new SqlAvailabilityZoneType(property0.Value.GetString()); + continue; + } } continue; } } - return new ElasticPoolData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, kind.Value, Optional.ToNullable(state), Optional.ToNullable(creationDate), Optional.ToNullable(maxSizeBytes), perDatabaseSettings.Value, Optional.ToNullable(zoneRedundant), Optional.ToNullable(licenseType), maintenanceConfigurationId.Value, Optional.ToNullable(highAvailabilityReplicaCount)); + return new ElasticPoolData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, kind.Value, Optional.ToNullable(state), Optional.ToNullable(creationDate), Optional.ToNullable(maxSizeBytes), Optional.ToNullable(minCapacity), perDatabaseSettings.Value, Optional.ToNullable(zoneRedundant), Optional.ToNullable(licenseType), maintenanceConfigurationId.Value, Optional.ToNullable(highAvailabilityReplicaCount), Optional.ToNullable(preferredEnclaveType), Optional.ToNullable(availabilityZone)); } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.Serialization.cs index e9134f1c9645c..6028e031ec7fc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.Serialization.cs @@ -38,6 +38,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("maxSizeBytes"u8); writer.WriteNumberValue(MaxSizeBytes.Value); } + if (Optional.IsDefined(MinCapacity)) + { + writer.WritePropertyName("minCapacity"u8); + writer.WriteNumberValue(MinCapacity.Value); + } if (Optional.IsDefined(PerDatabaseSettings)) { writer.WritePropertyName("perDatabaseSettings"u8); @@ -63,6 +68,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("highAvailabilityReplicaCount"u8); writer.WriteNumberValue(HighAvailabilityReplicaCount.Value); } + if (Optional.IsDefined(PreferredEnclaveType)) + { + writer.WritePropertyName("preferredEnclaveType"u8); + writer.WriteStringValue(PreferredEnclaveType.Value.ToString()); + } + if (Optional.IsDefined(AvailabilityZone)) + { + writer.WritePropertyName("availabilityZone"u8); + writer.WriteStringValue(AvailabilityZone.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs index 524fbabd9bb03..c5280dcfee0ae 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs @@ -25,6 +25,8 @@ public ElasticPoolPatch() public IDictionary Tags { get; } /// The storage limit for the database elastic pool in bytes. public long? MaxSizeBytes { get; set; } + /// Minimal capacity that serverless pool will not shrink below, if not paused. + public double? MinCapacity { get; set; } /// The per database settings for the elastic pool. public ElasticPoolPerDatabaseSettings PerDatabaseSettings { get; set; } /// Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. @@ -35,5 +37,9 @@ public ElasticPoolPatch() public ResourceIdentifier MaintenanceConfigurationId { get; set; } /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. public int? HighAvailabilityReplicaCount { get; set; } + /// Type of enclave requested on the elastic pool. + public SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get; set; } + /// Specifies the availability zone the pool's primary replica is pinned to. + public SqlAvailabilityZoneType? AvailabilityZone { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs index 8f0dd906f64d8..a4f73581469b9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs @@ -33,7 +33,7 @@ public ElasticPoolsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-08-01-preview"; + _apiVersion = apiVersion ?? "2022-08-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md index c59cf5fc93fd3..e3596cb71c18a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md @@ -4,7 +4,8 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -require: https://github.com/Azure/azure-rest-api-specs/blob/67527326606bd3c71700e2b96ff3c9ce9e655e29/specification/sql/resource-manager/readme.md +tag: package-composite-v5 +require: https://github.com/Azure/azure-rest-api-specs/blob/4c49a05d22106119afd2078a982f30855b91a010/specification/sql/resource-manager/readme.md namespace: Azure.ResourceManager.Sql output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj index 7b342b877094b..8c9c1be772202 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj @@ -1,4 +1,7 @@  + + AnyCPU;x64 + diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs new file mode 100644 index 0000000000000..f0815969b4957 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Linq; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.Sql.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Sql.Tests.Scenario +{ + public class ElasticPoolTests : SqlManagementTestBase + { + private ResourceGroupResource _resourceGroup; + private ResourceIdentifier _resourceGroupIdentifier; + private static AzureLocation Location = new AzureLocation("uksouth", "UK South"); + + public ElasticPoolTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [OneTimeSetUp] + public async Task GlobalSetUp() + { + var rgLro = await GlobalClient.GetDefaultSubscriptionAsync().Result.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, SessionRecording.GenerateAssetName("Sql-RG-"), new ResourceGroupData(Location)); + ResourceGroupResource rg = rgLro.Value; + _resourceGroupIdentifier = rg.Id; + await StopSessionRecordingAsync(); + } + + [SetUp] + public async Task TestSetUp() + { + ArmClientOptions options = new ArmClientOptions(); + var client = GetArmClient(options); + _resourceGroup = await client.GetResourceGroupResource(_resourceGroupIdentifier).GetAsync(); + } + + [TearDown] + public async Task TearDown() + { + var sqlServerList = await _resourceGroup.GetSqlServers().GetAllAsync().ToEnumerableAsync(); + foreach (var item in sqlServerList) + { + await item.DeleteAsync(WaitUntil.Completed); + } + } + + [Test] + [RecordedTest] + public async Task ElasticPoolApiTests() + { + // create Sql Server + string serverName = Recording.GenerateAssetName("sql-server-"); + var sqlServer = await CreateDefaultSqlServer(serverName, Location, _resourceGroup); + var collection = sqlServer.GetElasticPools(); + + string poolName1 = Recording.GenerateAssetName("sql-pool-"); + string poolName2 = Recording.GenerateAssetName("sql-pool-"); + + // 1.CreateOrUpdate + ElasticPoolData data = new ElasticPoolData(Location) { }; + var pool1 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName1, data); + Assert.IsNotNull(pool1.Value.Data); + Assert.AreEqual(poolName1, pool1.Value.Data.Name); + + // 2.CheckIfExist + Assert.IsTrue(await collection.ExistsAsync(poolName1)); + Assert.IsFalse(await collection.ExistsAsync(poolName2)); + + // 3.Get + var getPool = await collection.GetAsync(poolName1); + Assert.IsNotNull(getPool.Value.Data); + Assert.AreEqual(poolName1, getPool.Value.Data.Name); + + var pool2 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName2, data); + Assert.IsNotNull(pool2.Value.Data); + Assert.AreEqual(poolName2, pool2.Value.Data.Name); + + // 4.GetAll + var list = await collection.GetAllAsync().ToEnumerableAsync(); + Assert.IsNotEmpty(list); + Assert.AreEqual(2, list.Count); + string[] poolNamesList = { list.First().Data.Name, list.Last().Data.Name }; + Assert.Contains(poolName1, poolNamesList); + Assert.Contains(poolName2, poolNamesList); + + // 5.Delete + var deletePool1 = await collection.GetAsync(poolName1); + await deletePool1.Value.DeleteAsync(WaitUntil.Completed); + + var deletePool2 = await collection.GetAsync(poolName2); + await deletePool2.Value.DeleteAsync(WaitUntil.Completed); + + list = await collection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(0, list.Count); + } + + [Test] + [RecordedTest] + public async Task ElasticPoolApiTestsWithEnclaves() + { + // create Sql Server + string serverName = Recording.GenerateAssetName("sql-server-"); + var sqlServer = await CreateDefaultSqlServer(serverName, Location, _resourceGroup); + SqlAlwaysEncryptedEnclaveType[] enclaveTypes = { SqlAlwaysEncryptedEnclaveType.Default, SqlAlwaysEncryptedEnclaveType.Vbs }; + + foreach (SqlAlwaysEncryptedEnclaveType enclaveType in enclaveTypes) + { + string preferredEnclaveType = enclaveType.ToString(); + string poolName1 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); + string poolName2 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); + var collection = sqlServer.GetElasticPools(); + + // 1.CreateOrUpdate + ElasticPoolData data = new ElasticPoolData(Location) + { + PreferredEnclaveType = preferredEnclaveType + }; + + var pool1 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName1, data); + Assert.IsNotNull(pool1.Value.Data); + Assert.AreEqual(poolName1, pool1.Value.Data.Name); + Assert.AreEqual(enclaveType, pool1.Value.Data.PreferredEnclaveType); + + // 2.CheckIfExist + Assert.IsTrue(await collection.ExistsAsync(poolName1)); + Assert.IsFalse(await collection.ExistsAsync(poolName2)); + + // 3.Get + var getPool = await collection.GetAsync(poolName1); + Assert.IsNotNull(getPool.Value.Data); + Assert.AreEqual(poolName1, getPool.Value.Data.Name); + Assert.AreEqual(enclaveType, getPool.Value.Data.PreferredEnclaveType); + + var pool2 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName2, data); + Assert.IsNotNull(pool2.Value.Data); + Assert.AreEqual(poolName2, pool2.Value.Data.Name); + + // 4.GetAll + var list = await collection.GetAllAsync().ToEnumerableAsync(); + Assert.IsNotEmpty(list); + Assert.AreEqual(2, list.Count); + string[] poolNamesList = { list.First().Data.Name, list.Last().Data.Name }; + Assert.Contains(poolName1, poolNamesList); + Assert.Contains(poolName2, poolNamesList); + + // 5.Delete + var deletePool1 = await collection.GetAsync(poolName1); + await deletePool1.Value.DeleteAsync(WaitUntil.Completed); + + var deletePool2 = await collection.GetAsync(poolName2); + await deletePool2.Value.DeleteAsync(WaitUntil.Completed); + + list = await collection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(0, list.Count); + } + } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json new file mode 100644 index 0000000000000..ee615c3782288 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json @@ -0,0 +1,1463 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-1560?api-version=**", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-940aff586e3f7f469c3f11e732d1e033-a059771db8b02e44-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "81711dec73b9f883b538f7ee1acfde49", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "220", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae52b222-0fd4-4bd8-b67f-7669f47cb580", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "ae52b222-0fd4-4bd8-b67f-7669f47cb580", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193349Z:ae52b222-0fd4-4bd8-b67f-7669f47cb580" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560", + "name": "Sql-RG-1560", + "type": "Microsoft.Resources/resourceGroups", + "location": "uksouth", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "140", + "Content-Type": "application/json", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-7e8c27c4b5408b49-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c136f30df21527c51b30782e30b885f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "administratorLogin": "admin-sql-server-2346", + "administratorLoginPassword": "HvVJ%paVC@%GBKmi" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "73", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "60369350-a22d-4292-a03f-729bc6ad8cd0", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193352Z:60369350-a22d-4292-a03f-729bc6ad8cd0" + }, + "ResponseBody": { + "operation": "UpsertLogicalServer", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-11894aa32b8e9f4d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "125be3aa6d232bd6ab599d420ac9857f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a878aed8-6eb0-434c-8130-d059b96a9958", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "b5fc282b-2f0a-4393-aeb4-9e0e38c6a2c9", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193352Z:a878aed8-6eb0-434c-8130-d059b96a9958" + }, + "ResponseBody": { + "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "status": "InProgress", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-33c85b0ffdc8104e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2dc8fb712ca1315832808abe5713fccf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "91b85a60-0bca-4b9a-8c42-4ac2f1273901", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "9a0a3d41-608b-48d2-9471-a1a1d0578b36", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193353Z:91b85a60-0bca-4b9a-8c42-4ac2f1273901" + }, + "ResponseBody": { + "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "status": "InProgress", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-761d1aea0ec54141-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "4d83306c735de4cfcc11702b3e7dab6c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "70598200-1a04-45bc-934a-3bc5fc87e626", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "1f699ce3-da64-42c7-ad66-dec482164324", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193355Z:70598200-1a04-45bc-934a-3bc5fc87e626" + }, + "ResponseBody": { + "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "status": "InProgress", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-939dfd3fc6ca2640-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2f3f1bd196847ea68b2adfa2e317d498", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8bf6a121-bef2-4d1d-a49e-15daf3895bb3", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "afdc4382-f8fc-4bc5-9105-f5c4ce8f2afb", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193356Z:8bf6a121-bef2-4d1d-a49e-15daf3895bb3" + }, + "ResponseBody": { + "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "status": "InProgress", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-25e0a5a1e901b74d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "dad6ce5c3746fe222be46190bc2df3b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94703de4-90bb-437e-a199-248fc7a81060", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "b811e6f0-d30a-4560-81fc-5513e1282594", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193358Z:94703de4-90bb-437e-a199-248fc7a81060" + }, + "ResponseBody": { + "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "status": "InProgress", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-af219ec635525041-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "3bec1dd4cdd4d64a8905c132932c00b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:34:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6dfa3f60-84b1-478f-90c5-a4421b5c2b88", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "e6261ede-e6ce-41be-bbf8-4c26bccfc166", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193418Z:6dfa3f60-84b1-478f-90c5-a4421b5c2b88" + }, + "ResponseBody": { + "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "status": "InProgress", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-01cf5daf32433543-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6fced83cd1a79a26f840039f3516c15d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:34:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2fa2381-cd47-480c-aa03-39651f1cd5b1", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "85479dec-a1ae-46a5-8e73-e13545792c8c", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193438Z:a2fa2381-cd47-480c-aa03-39651f1cd5b1" + }, + "ResponseBody": { + "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", + "status": "Succeeded", + "startTime": "2023-06-29T19:33:52.34Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-aa6fdd9d18534d43-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c5cd2a36982b8fc383ff514176ef6bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "568", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:34:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c66ef032-36c6-47a3-b9e5-53a7506c08d8", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "aa13389b-eee3-4caa-ba5b-6da35f87aa56", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193439Z:c66ef032-36c6-47a3-b9e5-53a7506c08d8" + }, + "ResponseBody": { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-2346", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-2346.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346", + "name": "sql-server-2346", + "type": "Microsoft.Sql/servers" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "48", + "Content-Type": "application/json", + "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-44ec703db30fb042-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "845fe353030d52f74293c9aba1734364", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:34:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a23f5b4e-55b6-4819-8fee-deb2acfa73c2", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "29fde036-e04f-48cf-9924-e09f7df0b3f4", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193441Z:a23f5b4e-55b6-4819-8fee-deb2acfa73c2" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:34:41.293Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-b1d142f50bd56b41-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "dec288bcb2feca1dced85530c5d85ede", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:34:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8080ab9f-dc7a-4240-ba7e-7392e5b591c4", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "393e54a0-864e-4897-ab20-41cecda9d63c", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193441Z:8080ab9f-dc7a-4240-ba7e-7392e5b591c4" + }, + "ResponseBody": { + "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", + "status": "InProgress", + "startTime": "2023-06-29T19:34:41.293Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-f989acc225c7404e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "02f311fda8a0af23ce20986582122e39", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:34:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0d76837d-19cf-43fc-8bb6-24e8283ebfe0", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "a2c6396f-48c7-4d8d-aac8-b43ae56d4771", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193456Z:0d76837d-19cf-43fc-8bb6-24e8283ebfe0" + }, + "ResponseBody": { + "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", + "status": "InProgress", + "startTime": "2023-06-29T19:34:41.293Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-93b29e87ee395e42-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "18eec5be64b049654b946cb04ee47913", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ee98d65f-28d3-4c7d-9a51-7de13d9d2a1c", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "7b925ff4-bb5c-44a3-9bce-323db046aa90", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193512Z:ee98d65f-28d3-4c7d-9a51-7de13d9d2a1c" + }, + "ResponseBody": { + "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", + "status": "InProgress", + "startTime": "2023-06-29T19:34:41.293Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-56eeb791f23cc549-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "12e6a249d315136465130fde1ab747bb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fed16e6e-acee-401d-a3fb-d6e768f0c879", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "b52f1a54-444d-404f-a98f-524df9e56180", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193527Z:fed16e6e-acee-401d-a3fb-d6e768f0c879" + }, + "ResponseBody": { + "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", + "status": "Succeeded", + "startTime": "2023-06-29T19:34:41.293Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-1639bf373d1ce947-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "00711baa46e9992dacaab70b3b7260e9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "770", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "623f9bf5-ed79-4fef-aa4a-c04ceb8c0714", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "04209c4c-4750-4769-822b-d8bb21ceb31a", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193527Z:623f9bf5-ed79-4fef-aa4a-c04ceb8c0714" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:34:41.42Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", + "name": "sql-pool-4814", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7c2490e308ebf547b0f4206abfae1834-73ce300c221f7f46-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e01c85a71c2bea2460dab29d55872e93", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "770", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ee09546a-410c-4973-8dc4-06ad890c3aef", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "136356ab-15e0-433f-8478-71d2fbe92c99", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193528Z:ee09546a-410c-4973-8dc4-06ad890c3aef" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:34:41.42Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", + "name": "sql-pool-4814", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8b3636833d1ae34588e2f830cde463eb-963ff2e6f0ffec4e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "3206b04c78720229744d656a1b58d8f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "247", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd1f24d9-aafe-4e6d-946f-c51b4120e78f", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "cd1f24d9-aafe-4e6d-946f-c51b4120e78f", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193528Z:cd1f24d9-aafe-4e6d-946f-c51b4120e78f" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-2346/elasticpools/sql-pool-5442\u0027 under resource group \u0027Sql-RG-1560\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d67bfdf625a0a74f84cbcbca28fc013d-bc2518cae083bb47-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "943626b2679b8d90f7879f0e93904325", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "770", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a6d827ef-0da9-4792-8cea-34035f360e02", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "84a34884-ca84-454e-a287-c4c2688bc2c2", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193528Z:a6d827ef-0da9-4792-8cea-34035f360e02" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:34:41.42Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", + "name": "sql-pool-4814", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "48", + "Content-Type": "application/json", + "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-7054c40d8c2bf04f-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "8abf237b2d6c2e765c196bddb7b9cf07", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "993eb1bb-ffea-4bbb-8107-b096253790ee", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "1cc940e2-9731-494f-bf6b-447f01412929", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193530Z:993eb1bb-ffea-4bbb-8107-b096253790ee" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:35:30.183Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-abf4fe6f854c2c47-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f8ee40094d998486af083881fbb2d63d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5f212c8-f93c-46d1-b87e-8b0a9c36064d", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "107a7e82-e703-4fc3-9c94-6b8d2b021509", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193530Z:d5f212c8-f93c-46d1-b87e-8b0a9c36064d" + }, + "ResponseBody": { + "name": "1cc940e2-9731-494f-bf6b-447f01412929", + "status": "InProgress", + "startTime": "2023-06-29T19:35:30.183Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-c26f0d145e2e2348-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "d30c98b715a5e1d42bda69f3f28a5541", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:35:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c471dc9e-1740-4366-aaae-83a0f1da4677", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "9c483d1b-823f-43e3-9690-a0c5e57793c5", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193545Z:c471dc9e-1740-4366-aaae-83a0f1da4677" + }, + "ResponseBody": { + "name": "1cc940e2-9731-494f-bf6b-447f01412929", + "status": "InProgress", + "startTime": "2023-06-29T19:35:30.183Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-1fabe2fdaedc7f42-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "76d387aad6cab46d39657f486176e96e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b7a66858-7478-4c1c-a6b3-bd49b8de7ee3", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "7672e0e3-42b1-4cf6-b48e-c3e23b91d248", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193600Z:b7a66858-7478-4c1c-a6b3-bd49b8de7ee3" + }, + "ResponseBody": { + "name": "1cc940e2-9731-494f-bf6b-447f01412929", + "status": "InProgress", + "startTime": "2023-06-29T19:35:30.183Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-d2511a92454e104c-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "4133fda29c0ef43e6b0dccbfe3929224", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1072f37c-e4ba-47bc-994a-d19bdfb7255f", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "395c2a74-fb7d-473c-affb-36f2f4232358", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193616Z:1072f37c-e4ba-47bc-994a-d19bdfb7255f" + }, + "ResponseBody": { + "name": "1cc940e2-9731-494f-bf6b-447f01412929", + "status": "InProgress", + "startTime": "2023-06-29T19:35:30.183Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-1cbaddee15e59f40-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "74d7f6b25fdee1722a57993f958b7fb4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5b661ba2-6cb6-4833-ac85-39b187134e8b", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "7af25ee2-e48f-4188-ae77-dedae9d3e011", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193631Z:5b661ba2-6cb6-4833-ac85-39b187134e8b" + }, + "ResponseBody": { + "name": "1cc940e2-9731-494f-bf6b-447f01412929", + "status": "Succeeded", + "startTime": "2023-06-29T19:35:30.183Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-32a82c07b5a17a42-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f451fbf014560d3348de0bbd09add0a7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "02592ca2-89b8-4fcf-96ba-445eae33b382", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "17403425-7601-4a1f-9ee0-99d9c2d1ee8a", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193631Z:02592ca2-89b8-4fcf-96ba-445eae33b382" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:35:30.327Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442", + "name": "sql-pool-5442", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d3b054e80ec6a448831caefe8829b4dd-0fd94513ebd63a4a-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6a955ad3749f428f8b5216b603fe5fdf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1554", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b8d5e46-5e8c-40fc-afc6-37842bb328ab", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "4564514c-a1ac-452a-8a2c-ed050df17bf1", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193631Z:9b8d5e46-5e8c-40fc-afc6-37842bb328ab" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:34:41.42Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", + "name": "sql-pool-4814", + "type": "Microsoft.Sql/servers/elasticPools" + }, + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:35:30.327Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442", + "name": "sql-pool-5442", + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d50d49ce06ad5c4a91f032732b92cc94-fb3cfa916b852846-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e8ce188d9e419ecec3c92c0054b5d77c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "770", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6775f204-f60b-44a8-8b12-1af459f1f8cd", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "2751f9c8-4d1a-481d-b71d-abd472f5a5af", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193632Z:6775f204-f60b-44a8-8b12-1af459f1f8cd" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:34:41.42Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", + "name": "sql-pool-4814", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2f7551d7e0a484d94fe18b8bbf8de91-104201aca622c047-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "3b6cf28615f57c156c0e6903fd7c0a49", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:36:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc18646d-4c3f-4441-a03a-852ddbac9342", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "3c8eda04-5b3d-4f0b-93a8-2ae6d79a271a", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193637Z:cc18646d-4c3f-4441-a03a-852ddbac9342" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-19cd9888864fa84ca405383582f9f6bd-2bc7fd6ef855da4a-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "11309a7b249278e902527b3234caa047", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d47519a3-e5d4-4519-abfe-777ac034fbb8", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "13663ea6-c8a9-4373-9342-e9d3fe21d4ed", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193637Z:d47519a3-e5d4-4519-abfe-777ac034fbb8" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:35:30.327Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442", + "name": "sql-pool-5442", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-819ba62c3938184ea528ed94b465f8a2-ff82e0057bd52e43-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2980e2bfe5859d9d8c37aefe6e4034dd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:36:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "511a7414-dc7c-4fea-9b68-33644e2ee4b7", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "c159bbe3-2837-4027-882c-46f41f4f0b1a", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193640Z:511a7414-dc7c-4fea-9b68-33644e2ee4b7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-60763c47207f794ba61c93904ebeb257-41a89279df7dd34b-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "65155f56c40e9650fc92845a75eb0ac2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a90e393a-d13a-4251-a8ba-91cd9d7ad22f", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "f2844589-842e-4bab-9f50-8ea6b8a87e6e", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193640Z:a90e393a-d13a-4251-a8ba-91cd9d7ad22f" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-89f5ee53c32aac47922f6eca3759e9f2-c5177e7a2309df49-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a2119d1e3d41c6fb2b25e7cef6113059", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "580", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c0e64730-4664-403a-8d57-500d64297d13", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "5793a38f-23ba-42b4-911b-031d40f7b175", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193641Z:c0e64730-4664-403a-8d57-500d64297d13" + }, + "ResponseBody": { + "value": [ + { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-2346", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-2346.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346", + "name": "sql-server-2346", + "type": "Microsoft.Sql/servers" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-28a8c7b9f618fd45b05d8b3d47ac1594-1a403f54b16c4a4e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0ea7ec37ce2a5ccf41f266b9745ce556", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "72", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b21a2ca6-ce7e-4a75-aabf-6694537a0157", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "a124bf3c-e9fa-4033-8d3b-678bbd506246", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193641Z:b21a2ca6-ce7e-4a75-aabf-6694537a0157" + }, + "ResponseBody": { + "operation": "DropLogicalServer", + "startTime": "2023-06-29T19:36:41.763Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-28a8c7b9f618fd45b05d8b3d47ac1594-be1559a6dd486047-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "89232a61fb434f97ceb5604fd74252cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ab38a9b-afbf-4bb8-a4a7-68f0de4e6b92", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "203dbdb6-188e-4cac-8cd4-406a0064ef9d", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193642Z:2ab38a9b-afbf-4bb8-a4a7-68f0de4e6b92" + }, + "ResponseBody": { + "name": "a124bf3c-e9fa-4033-8d3b-678bbd506246", + "status": "InProgress", + "startTime": "2023-06-29T19:36:41.763Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-28a8c7b9f618fd45b05d8b3d47ac1594-3e2482b16f0d1f48-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c822913f61a3d8386b8fabdb95e67ebf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "20bc0f3f-0ed4-4f0a-964e-4b6706e5002d", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "258192f6-fd26-494c-9122-242972737eb8", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193657Z:20bc0f3f-0ed4-4f0a-964e-4b6706e5002d" + }, + "ResponseBody": { + "name": "a124bf3c-e9fa-4033-8d3b-678bbd506246", + "status": "Succeeded", + "startTime": "2023-06-29T19:36:41.763Z" + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "1590744437", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json new file mode 100644 index 0000000000000..8a0606b76f132 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json @@ -0,0 +1,1462 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-2241?api-version=**", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-22cf7c81a2408b488b38d6826530bda5-521f7f5c29d46742-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f0fee70be409d7591676d5168ec3f036", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "220", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5e2a1f6-1f46-44dd-bb46-2637ce6c69eb", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "d5e2a1f6-1f46-44dd-bb46-2637ce6c69eb", + "x-ms-routing-request-id": "WESTUS:20230629T194205Z:d5e2a1f6-1f46-44dd-bb46-2637ce6c69eb" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241", + "name": "Sql-RG-2241", + "type": "Microsoft.Resources/resourceGroups", + "location": "uksouth", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "140", + "Content-Type": "application/json", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-383b1dcdfbc38143-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b3c07cb5e4cf0b61e003440463d36fe7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "administratorLogin": "admin-sql-server-6633", + "administratorLoginPassword": "HvVJ%paVC@%GBKmi" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "74", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f6e4c73c-f044-4d6f-ab4f-0b7f67c4ac26", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "68d44100-6f70-49cc-827a-e66cac18b84d", + "x-ms-routing-request-id": "WESTUS:20230629T194206Z:f6e4c73c-f044-4d6f-ab4f-0b7f67c4ac26" + }, + "ResponseBody": { + "operation": "UpsertLogicalServer", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-344c25f1f8520446-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "9e93b8feed7d033b9de428e015d3b3a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "089ae9f6-3700-49e3-91bd-e6ee742a21e3", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "7126321e-1ae6-44e4-90c7-f3bd4d9e4721", + "x-ms-routing-request-id": "WESTUS:20230629T194207Z:089ae9f6-3700-49e3-91bd-e6ee742a21e3" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "InProgress", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-bc466e0f00f25d44-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "7a0a2e65aa826f784f5da3fce043b987", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6b0ed80-8bd7-45c7-8094-0a254fab8210", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "66888322-a094-4e10-a0ce-d56ee736926f", + "x-ms-routing-request-id": "WESTUS:20230629T194208Z:e6b0ed80-8bd7-45c7-8094-0a254fab8210" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "InProgress", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-8baeb1912b274540-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "ab053aa4d03f966a0d6aef391d4c4d3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0e6ae889-6144-4f2a-8c5d-17779f439c80", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "32add4ea-6d9b-453e-978a-1d96dd8411bd", + "x-ms-routing-request-id": "WESTUS:20230629T194209Z:0e6ae889-6144-4f2a-8c5d-17779f439c80" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "InProgress", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-14c11454acde6145-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "23b85f20e54e54873f234f1f493f225a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3330243a-c480-4868-92ea-cac9c984f002", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "463ec28f-cb11-4119-a7cd-dc49571b1bd2", + "x-ms-routing-request-id": "WESTUS:20230629T194210Z:3330243a-c480-4868-92ea-cac9c984f002" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "InProgress", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-c96812ce125dbc4e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "da3ca12b08cd9563c4746c18bb3e5202", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8446b747-1a40-491e-b88e-2e6e5b0f6d03", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "653eb947-5a31-45c0-9c73-19906c47ba17", + "x-ms-routing-request-id": "WESTUS:20230629T194213Z:8446b747-1a40-491e-b88e-2e6e5b0f6d03" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "InProgress", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-eba99ef88a4b6349-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "80dc670f958abf38b3b16b1c804a4cce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8283da9-58b4-4312-8826-d3bc0519b66d", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "3c12e0fe-286d-4797-864f-1f9d5b802e47", + "x-ms-routing-request-id": "WESTUS:20230629T194233Z:b8283da9-58b4-4312-8826-d3bc0519b66d" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "InProgress", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-994b791c08d21143-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "7b0e94487310186ffc235fd9786f9900", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ab066624-6729-4703-916a-bf76ce7b23aa", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "5a3f3733-5ac0-413f-b88a-cb3e147b70ab", + "x-ms-routing-request-id": "WESTUS:20230629T194253Z:ab066624-6729-4703-916a-bf76ce7b23aa" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "InProgress", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-31bb0599e1334f40-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e20f4dd1a16396cf687c271c9c471479", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:43:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0141a089-5398-4094-a502-20f48f80b5e8", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "e028edd5-3fbc-4b7d-8503-e4bbf3a6f422", + "x-ms-routing-request-id": "WESTUS:20230629T194314Z:0141a089-5398-4094-a502-20f48f80b5e8" + }, + "ResponseBody": { + "name": "68d44100-6f70-49cc-827a-e66cac18b84d", + "status": "Succeeded", + "startTime": "2023-06-29T19:42:06.853Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-4b3882181d2fc247-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "26d09d28d6309cf1f7c38467355f4644", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "568", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:43:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9617f1ec-9cc5-4a59-bc98-a414dd018846", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "68358257-169d-4c8d-b7c3-45735c67a73c", + "x-ms-routing-request-id": "WESTUS:20230629T194314Z:9617f1ec-9cc5-4a59-bc98-a414dd018846" + }, + "ResponseBody": { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-6633", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-6633.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633", + "name": "sql-server-6633", + "type": "Microsoft.Sql/servers" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "48", + "Content-Type": "application/json", + "traceparent": "00-930b447bc59b454d8f774d5231497c15-78f3a5a79e562b41-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "693a334aa66b78c513934b527bb40ee5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:43:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d4327d49-c98b-4d05-915a-5cbc02c414c5", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "095e5896-ad9b-4e31-956a-d92651cf9383", + "x-ms-routing-request-id": "WESTUS:20230629T194317Z:d4327d49-c98b-4d05-915a-5cbc02c414c5" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:43:16.997Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-930b447bc59b454d8f774d5231497c15-bb2edf3401fbed47-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e1fc3104be3e2a3161b7c35d50a548d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:43:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2a597abe-27c0-4ad7-8709-43d4d03a68b0", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "058e1f91-c463-4ae9-b199-b82d3c89924d", + "x-ms-routing-request-id": "WESTUS:20230629T194317Z:2a597abe-27c0-4ad7-8709-43d4d03a68b0" + }, + "ResponseBody": { + "name": "095e5896-ad9b-4e31-956a-d92651cf9383", + "status": "InProgress", + "startTime": "2023-06-29T19:43:16.997Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-930b447bc59b454d8f774d5231497c15-6a856ad082b01041-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6bae4f58a4a5509ad7c77fcc885d180a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:43:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e43c18c6-5278-4d1f-bbec-8663309be9b2", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "b4f15aab-444f-4285-af3b-e73ef5264ab4", + "x-ms-routing-request-id": "WESTUS:20230629T194332Z:e43c18c6-5278-4d1f-bbec-8663309be9b2" + }, + "ResponseBody": { + "name": "095e5896-ad9b-4e31-956a-d92651cf9383", + "status": "InProgress", + "startTime": "2023-06-29T19:43:16.997Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-930b447bc59b454d8f774d5231497c15-c193257daaaf7b4e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "494d685d2db8f2a6a974111937fe2245", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:43:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "13ce872d-93a7-47fa-b6b6-5b14c0ec406b", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "e9f85677-f685-412f-9eec-b9fcfa2cfca7", + "x-ms-routing-request-id": "WESTUS:20230629T194347Z:13ce872d-93a7-47fa-b6b6-5b14c0ec406b" + }, + "ResponseBody": { + "name": "095e5896-ad9b-4e31-956a-d92651cf9383", + "status": "InProgress", + "startTime": "2023-06-29T19:43:16.997Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "Connection": "close", + "traceparent": "00-930b447bc59b454d8f774d5231497c15-afe36c2b7a3e6b44-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "100f4d56ca5a5f3e97ac0a773f64a104", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Connection": "close", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0620b900-b9d9-4f25-b26d-c25a124ae075", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "0e70ce00-86e5-478a-a3f2-27e2976a5959", + "x-ms-routing-request-id": "WESTUS:20230629T194403Z:0620b900-b9d9-4f25-b26d-c25a124ae075" + }, + "ResponseBody": { + "name": "095e5896-ad9b-4e31-956a-d92651cf9383", + "status": "Succeeded", + "startTime": "2023-06-29T19:43:16.997Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-930b447bc59b454d8f774d5231497c15-ac67c1697f44a04a-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e8ffb89ffe572a18a9bcc130928118d8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d7359577-4885-4958-be27-3fab6742dc53", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "61a6a7f7-7f4c-47a3-a72e-25a1328fa7c4", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194403Z:d7359577-4885-4958-be27-3fab6742dc53" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:43:17.187Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", + "name": "sql-pool-7573", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-5020d631a0ad8f4187942d6696233759-ff6c6b54eb55674c-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "3b763aa5074d92b029edb20b232fb244", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5c0ff4d-c9f5-42c5-970d-07fc64eb7e2e", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "8b3c9209-19a5-4d70-a320-ee6ac000549a", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194404Z:b5c0ff4d-c9f5-42c5-970d-07fc64eb7e2e" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:43:17.187Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", + "name": "sql-pool-7573", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-90aeea6c8dbdd64eb054d14980685151-cc7535e32be3e048-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "7f790dd339fe58ed35e4679e080dcd16", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "247", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "68849c57-e0e1-4de2-8c0d-eb319c613b9d", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "68849c57-e0e1-4de2-8c0d-eb319c613b9d", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194404Z:68849c57-e0e1-4de2-8c0d-eb319c613b9d" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-6633/elasticpools/sql-pool-8774\u0027 under resource group \u0027Sql-RG-2241\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-688ab76f190ab34ca7dd9924a29acb72-45799165011d234e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "05d1319366ee98b6086dbf694b0c0779", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ee35f642-52a9-41d3-99c3-42f08662873a", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "f5061909-987d-451e-b2ff-e44670798013", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194404Z:ee35f642-52a9-41d3-99c3-42f08662873a" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:43:17.187Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", + "name": "sql-pool-7573", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "48", + "Content-Type": "application/json", + "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-62f02ff50a0b634f-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "855d7d0999076cda4c1d0669a011891b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f035bcca-b73e-4685-8f50-451bdfe3a341", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "939dfe12-3507-4495-9685-05fbaaa5aac0", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194406Z:f035bcca-b73e-4685-8f50-451bdfe3a341" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:44:06.697Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-1ba65dc70b60d943-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "8b95eedc47b0fa0e5764b9d05f4cf8f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e0954c38-f127-4170-96af-71d045ae478a", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "88f52533-1e90-4db2-a495-a52b79b93423", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194407Z:e0954c38-f127-4170-96af-71d045ae478a" + }, + "ResponseBody": { + "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", + "status": "InProgress", + "startTime": "2023-06-29T19:44:06.697Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-d0033be7f0e54048-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "af48a3e315945c1a27ef2d262248f2c8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aaefdf51-cd1e-4a70-86fe-cae2d4b4b6d3", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "9aac6854-6f61-41c6-8439-bfc4c8e72f52", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194422Z:aaefdf51-cd1e-4a70-86fe-cae2d4b4b6d3" + }, + "ResponseBody": { + "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", + "status": "InProgress", + "startTime": "2023-06-29T19:44:06.697Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-ec1922296bb6134e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b18cdd11fe7cd86a8d7c9bf9f4850d0b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ac82403-e773-4e71-b982-ecf9d3cca125", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "f421e60e-a898-47bf-b25e-7da8fcc442ec", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194437Z:8ac82403-e773-4e71-b982-ecf9d3cca125" + }, + "ResponseBody": { + "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", + "status": "InProgress", + "startTime": "2023-06-29T19:44:06.697Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-849336b7be25bc4e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "d6ae80e95c3ac794d33864c11ae7d80e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "278193f6-40a2-499e-870e-b63d4399ce68", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "73bea436-5401-4f99-949a-ed6a1cd933b4", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194452Z:278193f6-40a2-499e-870e-b63d4399ce68" + }, + "ResponseBody": { + "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", + "status": "Succeeded", + "startTime": "2023-06-29T19:44:06.697Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-9235d6f2e879814f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "82bff07246c0e57a387021177a2168a1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1bb2bdf9-3267-4b2d-b85c-1702e53acac9", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "f4dc0d81-6a52-4d76-92d4-2cd686099bdb", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194453Z:1bb2bdf9-3267-4b2d-b85c-1702e53acac9" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:44:06.853Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774", + "name": "sql-pool-8774", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a23d22e21b9ab48d49c4de4399a9bea6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1555", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18f77ccc-b7a1-456b-8511-76f14f487de2", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "d7e14dd5-84b2-4d1b-95bf-14980dcb1a1f", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194453Z:18f77ccc-b7a1-456b-8511-76f14f487de2" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:43:17.187Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", + "name": "sql-pool-7573", + "type": "Microsoft.Sql/servers/elasticPools" + }, + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:44:06.853Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774", + "name": "sql-pool-8774", + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-300cbaf60f77aa4cbdf48701d77f5591-bee19c870c1ee34e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "03868ca48bc6a34b05c99eca3b7c4db1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e25b91a7-23a2-48cc-a3ad-34bbf78a4956", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "bf1dbd59-8c14-4eb7-82a2-8d584c6257b0", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194453Z:e25b91a7-23a2-48cc-a3ad-34bbf78a4956" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:43:17.187Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", + "name": "sql-pool-7573", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-53250906f250f74a895908e7eab2490e-dfe60f1d4d3c0945-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f7dfc3d036aa5773620a39fb67364c8e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:44:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0b7d1e26-7112-4633-b08e-084568f7030d", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "2b96ee98-ae4a-42ef-9221-25abb6c80ce8", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194458Z:0b7d1e26-7112-4633-b08e-084568f7030d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-dcea4895d408ad4aa07a793f43c28a3f-ecded82bf3585b43-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "d6732c76c6ca6dfb182fa0bb514f3bcf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "771", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:44:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8a1c3d8d-ddc5-4bce-838a-42c49f58e61d", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "c5513faa-3e51-42f6-bf8d-991da53932d2", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194459Z:8a1c3d8d-ddc5-4bce-838a-42c49f58e61d" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:44:06.853Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774", + "name": "sql-pool-8774", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-41445fd18aa4f441b5ebc61c517c8ce7-71ff0f895543d147-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c0190f7d60086b17e78720109aa2daa0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:45:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c91d35e9-492b-455c-8e3e-b6df66907e6f", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "2dd10326-7eaa-4be1-9897-4b4a935888dd", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194501Z:c91d35e9-492b-455c-8e3e-b6df66907e6f" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6d54cc5eb9a916c41507ee42a6ebd376", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fe19728a-bdfa-4d55-8151-bb2600fca3d6", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "9d814d52-9c73-4e37-92d7-40eddf0fd780", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194501Z:fe19728a-bdfa-4d55-8151-bb2600fca3d6" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e52a005500cb070c4b2d40028baca7c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "580", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f962b902-d82c-4abf-968d-a58b2098c482", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "310b6642-c9a1-4e25-9621-fe7e5f76c348", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194502Z:f962b902-d82c-4abf-968d-a58b2098c482" + }, + "ResponseBody": { + "value": [ + { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-6633", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-6633.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633", + "name": "sql-server-6633", + "type": "Microsoft.Sql/servers" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8cc7554612e4734ab237814ef760e785-89d0a94754b47049-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "ceb198826c4dd8f6a76d24bb87814594", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "72", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "32b44a25-5148-48ed-b568-0d49aad3d629", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "51fa3294-a28d-493f-bc5a-498b9cf73679", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194502Z:32b44a25-5148-48ed-b568-0d49aad3d629" + }, + "ResponseBody": { + "operation": "DropLogicalServer", + "startTime": "2023-06-29T19:45:02.777Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8cc7554612e4734ab237814ef760e785-dd2a42a54a846742-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0dc0275f0439e82809523e5ddc5080ca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ba5a25f-13ad-4588-bf77-7c574a43b731", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "f6665b58-6d96-4ecf-87c2-baa280d76c59", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194503Z:2ba5a25f-13ad-4588-bf77-7c574a43b731" + }, + "ResponseBody": { + "name": "51fa3294-a28d-493f-bc5a-498b9cf73679", + "status": "InProgress", + "startTime": "2023-06-29T19:45:02.777Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8cc7554612e4734ab237814ef760e785-c254b95b3b70114d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2dceabe8e39762d1dc530e004b7a5ee4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d14596b8-2d36-472a-863e-994acb1510bf", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "7a432228-5435-409d-9119-6c403087f6d3", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194518Z:d14596b8-2d36-472a-863e-994acb1510bf" + }, + "ResponseBody": { + "name": "51fa3294-a28d-493f-bc5a-498b9cf73679", + "status": "Succeeded", + "startTime": "2023-06-29T19:45:02.777Z" + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "1615394464", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json new file mode 100644 index 0000000000000..87ad682489a30 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json @@ -0,0 +1,2386 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-1560?api-version=**", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-06f3824cd2d28d468467169be93c5f77-ec21fb49e7d53644-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "4533db0358d05ac1c26492abb5410645", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "220", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "24c7bdf8-7098-470e-818f-556aba3f9d87", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "24c7bdf8-7098-470e-818f-556aba3f9d87", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193658Z:24c7bdf8-7098-470e-818f-556aba3f9d87" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560", + "name": "Sql-RG-1560", + "type": "Microsoft.Resources/resourceGroups", + "location": "uksouth", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "140", + "Content-Type": "application/json", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-2e7e41e8a1e1054f-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e9cd3a52ce33a6ca34790e3fc9f26f93", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "administratorLogin": "admin-sql-server-4530", + "administratorLoginPassword": "HvVJ%paVC@%GBKmi" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "74", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aedf0676-5701-4073-aaa8-aab2382d2e91", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "e82554ff-1076-4636-ae95-c747ccad887a", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193659Z:aedf0676-5701-4073-aaa8-aab2382d2e91" + }, + "ResponseBody": { + "operation": "UpsertLogicalServer", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-7ead39d02f485045-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6301cee1bcaa0cd0689e9cdeb31bf972", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:36:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49d8dd77-b956-48f4-be41-a59b6d560c8c", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "9160d75b-9d8d-4c43-ba8f-4fbe834ac841", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193659Z:49d8dd77-b956-48f4-be41-a59b6d560c8c" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "InProgress", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-5af8ed2fb078ca4f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "3c0b17238369a700267f4cffd47efbb7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:37:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "059c8cb0-da4a-44b6-b691-d3aaf0baa464", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "5cbacf46-04be-457c-a6b8-5e3caf551433", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193700Z:059c8cb0-da4a-44b6-b691-d3aaf0baa464" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "InProgress", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-c8a0287096ad754c-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "fb5e158b0bf1ede93590599a0e349b81", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:37:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85e99ddb-6e1a-4ba7-82f3-d6df8dab6af1", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "40284db8-d775-48f4-a8de-4515b9484b07", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193702Z:85e99ddb-6e1a-4ba7-82f3-d6df8dab6af1" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "InProgress", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-463c82d1e3d16040-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "9329883bb2725d8fcd593c2b6fd138e9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:37:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1e0e4453-8012-4cfc-8c8b-6c0bab822282", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "227609f3-883a-4c9a-8180-5f65d6890a78", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193703Z:1e0e4453-8012-4cfc-8c8b-6c0bab822282" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "InProgress", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-058b4f1ea37d694e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "9d53e4a3febc17812e1e06d92a6699f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:37:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "35bfe8f8-f65d-48f8-9d04-e3f43c901c1f", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "f1df3627-7c21-4d83-ad02-379a14cfd543", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193705Z:35bfe8f8-f65d-48f8-9d04-e3f43c901c1f" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "InProgress", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-1a23a4cf29ba284a-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "4cc3cbe36755d94586012d97cebe7d63", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:37:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4ce59c5c-96bb-4cad-b6ad-ab866555054e", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "882d8b44-beb9-4973-abf2-225685904fe3", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193725Z:4ce59c5c-96bb-4cad-b6ad-ab866555054e" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "InProgress", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-ffb77c0ade6d2b45-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "29f76f57fee03cc507116553abb53267", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:37:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10459325-4b5c-46a7-8b18-aa27e3112579", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "663d230b-4832-4862-935d-0f67729d8738", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193746Z:10459325-4b5c-46a7-8b18-aa27e3112579" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "InProgress", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-718c692dcc73a844-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a4474ac0ec0d3b949f7a16bbd1e94970", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6cf34e86-65bd-4597-83c7-6de69d234cf9", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "17eaf9c9-0108-4c8e-a71f-20629727c0ac", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193806Z:6cf34e86-65bd-4597-83c7-6de69d234cf9" + }, + "ResponseBody": { + "name": "e82554ff-1076-4636-ae95-c747ccad887a", + "status": "Succeeded", + "startTime": "2023-06-29T19:36:59.577Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-fd75aa28681e7043-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "ba81a3a06f6ee5120586454401f12ed1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "568", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d0c8440-cc7b-407c-be3b-c21cffac4d02", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "ce81c0ff-6b29-4e0a-8b0a-9ac993989169", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193806Z:8d0c8440-cc7b-407c-be3b-c21cffac4d02" + }, + "ResponseBody": { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-4530", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-4530.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530", + "name": "sql-server-4530", + "type": "Microsoft.Sql/servers" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "80", + "Content-Type": "application/json", + "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-78eeff227b41a044-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "d97684d66b56bbdb8965e80a6b1dc7f5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "Default" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "78", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3ac6c5c0-c91c-4ddb-bbd4-78e5f094787f", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "d99c5795-0f74-43eb-9354-6f4732ca5a17", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193809Z:3ac6c5c0-c91c-4ddb-bbd4-78e5f094787f" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:38:09.75Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-f1ca9f7f1fccd641-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c5120becc7f9164cdfb3e5acfdfb1a27", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bfff1667-3ebc-426d-b9fd-ea6a398eee4d", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "a7811874-155f-465b-a5c7-1820796103a9", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193810Z:bfff1667-3ebc-426d-b9fd-ea6a398eee4d" + }, + "ResponseBody": { + "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", + "status": "InProgress", + "startTime": "2023-06-29T19:38:09.75Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-193cbada1847df43-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "263d0b7c579c86cc4c153acfc48b81da", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "63fe810b-90b5-4816-9ce1-c8fb013f5dcb", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "d99c938a-4889-4951-b3ce-2ac6c44d2b81", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193825Z:63fe810b-90b5-4816-9ce1-c8fb013f5dcb" + }, + "ResponseBody": { + "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", + "status": "InProgress", + "startTime": "2023-06-29T19:38:09.75Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-9c944964d9bec242-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "601da219020aecfcbb1e98456b8b64a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ce860777-ab7a-40d6-9d34-8e4fb00f7ffd", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "d7fbe277-6fe1-4523-95f5-53e27b2f4a46", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193840Z:ce860777-ab7a-40d6-9d34-8e4fb00f7ffd" + }, + "ResponseBody": { + "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", + "status": "InProgress", + "startTime": "2023-06-29T19:38:09.75Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "Connection": "close", + "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-0dcb3c89d23ed24d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2ed37f6b267195a83f8c78e48c7c5153", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Connection": "close", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d434a55b-cbd9-4cc5-8eae-1ff194588ab2", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "9311b81a-31f6-476e-81fb-9440c2106116", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193855Z:d434a55b-cbd9-4cc5-8eae-1ff194588ab2" + }, + "ResponseBody": { + "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", + "status": "Succeeded", + "startTime": "2023-06-29T19:38:09.75Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-951d0bc433d22f46-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "5a930a31bade791c0f516a7ebf861bc1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "819", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "76b233df-7fc3-4168-9dc6-257c4aac6693", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "02fb97f5-3c29-4458-87d8-e420a98a2b6d", + "x-ms-routing-request-id": "WESTUS:20230629T193857Z:76b233df-7fc3-4168-9dc6-257c4aac6693" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:38:09.89Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", + "name": "sql-pool-Default-8332", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-317ee51e53ea714fa9d4659a9521a972-2b0602d428a77545-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "446497b053b8f269fa88207e8a185f3e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "819", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a559aa8a-7e71-4995-bd44-88ee39ac88d8", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "c5d26f24-6dcb-46ed-9ea4-6e6fcf845958", + "x-ms-routing-request-id": "WESTUS:20230629T193857Z:a559aa8a-7e71-4995-bd44-88ee39ac88d8" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:38:09.89Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", + "name": "sql-pool-Default-8332", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7f6c25f371ee6344a713d66964214f46-3e0628984a8d7141-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "601344cc0af7b0c4625a1e1fbb29d6b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "255", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f62ec90f-7c5d-44d6-a18c-c69978db1d3b", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "f62ec90f-7c5d-44d6-a18c-c69978db1d3b", + "x-ms-routing-request-id": "WESTUS:20230629T193858Z:f62ec90f-7c5d-44d6-a18c-c69978db1d3b" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4530/elasticpools/sql-pool-Default-2785\u0027 under resource group \u0027Sql-RG-1560\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-99804e87589a2a478a5ab109a878df3e-2d32fceb6fef1c40-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f433b7710c18de9ba1a05f559a9eeff7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "819", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:38:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bbe7748a-0f48-46b6-971b-dd832a637df9", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "a3e4bb91-a666-434d-a7b8-b97447c17ade", + "x-ms-routing-request-id": "WESTUS:20230629T193858Z:bbe7748a-0f48-46b6-971b-dd832a637df9" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:38:09.89Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", + "name": "sql-pool-Default-8332", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "80", + "Content-Type": "application/json", + "traceparent": "00-2a3b67899aab974ea113490997013241-3598eff6430c4844-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "7ab22bf1ba72a6c9d3b3e25e344a36d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "Default" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "78", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "98257005-9fef-4112-9d78-47a9efdd5b30", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", + "x-ms-routing-request-id": "WESTUS:20230629T193901Z:98257005-9fef-4112-9d78-47a9efdd5b30" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:39:01.24Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a3b67899aab974ea113490997013241-9634526c4c65cb48-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "902d276a5b77b645ed8d21642a3da956", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3a54a80-9399-48aa-b8f2-627a9a9c9abc", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "27f9a4bb-93cd-4707-bcad-6ead7243bd47", + "x-ms-routing-request-id": "WESTUS:20230629T193901Z:f3a54a80-9399-48aa-b8f2-627a9a9c9abc" + }, + "ResponseBody": { + "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", + "status": "InProgress", + "startTime": "2023-06-29T19:39:01.24Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a3b67899aab974ea113490997013241-4ec53dc626d80e42-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "32a28e6a1c92861205f2d13dfc72fb63", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14a1d33f-26aa-4082-9080-a7b6ae65b815", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "18416072-5301-4fd6-a5dd-2b11e504ba7f", + "x-ms-routing-request-id": "WESTUS:20230629T193916Z:14a1d33f-26aa-4082-9080-a7b6ae65b815" + }, + "ResponseBody": { + "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", + "status": "InProgress", + "startTime": "2023-06-29T19:39:01.24Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a3b67899aab974ea113490997013241-78262a7c5ed4984b-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0df31d9ca61c57592155e55649c1956b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a7a74a3-f26e-4757-98b5-48387ba35302", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "bd692d71-df23-4b54-8266-ea0556d0cf6e", + "x-ms-routing-request-id": "WESTUS:20230629T193932Z:5a7a74a3-f26e-4757-98b5-48387ba35302" + }, + "ResponseBody": { + "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", + "status": "InProgress", + "startTime": "2023-06-29T19:39:01.24Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a3b67899aab974ea113490997013241-ccc36125e75a9b40-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "1cec688be4cc4e3215a78a858908ba7b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "42cf236b-0cd7-46c6-b019-53b5f1d78153", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "5826427e-258d-4604-96dd-9f26f0abb795", + "x-ms-routing-request-id": "WESTUS:20230629T193947Z:42cf236b-0cd7-46c6-b019-53b5f1d78153" + }, + "ResponseBody": { + "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", + "status": "Succeeded", + "startTime": "2023-06-29T19:39:01.24Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a3b67899aab974ea113490997013241-2889bbeb4b5baf48-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0cc8be929c4ac33a344b103c37bb3d43", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a3e31bc-f32a-45c8-a69f-190413ecbb79", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "929f6ddb-62af-4452-b208-955f2e4525de", + "x-ms-routing-request-id": "WESTUS:20230629T193947Z:5a3e31bc-f32a-45c8-a69f-190413ecbb79" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:01.383Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785", + "name": "sql-pool-Default-2785", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b53ebfab5e56fe4291db14294b2ee061-eace9c505144dd45-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "93b2665cde86b896eba4f8751bd4cd19", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1652", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9a1d6d16-6730-4d83-8eda-b40bc6e383b7", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "610c59c3-d952-4800-a41c-72ea467db0c7", + "x-ms-routing-request-id": "WESTUS:20230629T193948Z:9a1d6d16-6730-4d83-8eda-b40bc6e383b7" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:38:09.89Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", + "name": "sql-pool-Default-8332", + "type": "Microsoft.Sql/servers/elasticPools" + }, + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:01.383Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785", + "name": "sql-pool-Default-2785", + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-dbff79995bbdb54cb1462d2fca0a624f-3472f43b93e39347-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "8bc46a9b89f9ee202d28e880d4f51759", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "819", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "54a8e7b9-0578-4bf7-8e46-813cbfeeaf25", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "080a7e43-5bd2-43e6-b742-e0b8fbb03a76", + "x-ms-routing-request-id": "WESTUS:20230629T193948Z:54a8e7b9-0578-4bf7-8e46-813cbfeeaf25" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:38:09.89Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", + "name": "sql-pool-Default-8332", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a78098fe521fa4d989dffe4075de7db-9bed9b03dd1a1c43-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "232846692655b3f4271020a5a4c5a85f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:39:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d6e3968-dc25-4640-970e-6597317502f0", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "13d9d2e1-39e0-4812-82bd-51ef50cfa645", + "x-ms-routing-request-id": "WESTUS:20230629T193953Z:8d6e3968-dc25-4640-970e-6597317502f0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d79c682bfb290447868b5b2677625e36-9fec0d9f0be47f4f-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "d40b9e8da9ac74c4751063e9687a4968", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1b37a169-2034-4408-a6e7-6b1df6ea855e", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "e36a235b-526b-4b32-9d8c-91d7be68ab03", + "x-ms-routing-request-id": "WESTUS:20230629T193954Z:1b37a169-2034-4408-a6e7-6b1df6ea855e" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:01.383Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785", + "name": "sql-pool-Default-2785", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c1377ed3ae1e0e4ab19c3323d337a1aa-8a97d69854d6c34e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "dd0288804a54b762fc55dd90c097bc11", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:39:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d79833df-efed-4023-a556-4bf9ed88d6fd", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "57cacd80-3ce8-4320-aef4-ac95be82a6c1", + "x-ms-routing-request-id": "WESTUS:20230629T193956Z:d79833df-efed-4023-a556-4bf9ed88d6fd" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f5fe550b2a802342ba3e01987d8a2e12-e9a8ff50cd8c5345-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6dddfd7a061343a13c54d857cc34b4de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14f60919-177a-4355-9d0b-c5a58c21ad6c", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "5976df61-ef55-447c-90be-25da1595f745", + "x-ms-routing-request-id": "WESTUS:20230629T193957Z:14f60919-177a-4355-9d0b-c5a58c21ad6c" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "76", + "Content-Type": "application/json", + "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-cdc21fbc42252843-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "43623ebdadaf2dd5ab27f27c689bea12", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "VBS" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c97cdfd-3b11-49d4-9134-22503667bd68", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", + "x-ms-routing-request-id": "WESTUS:20230629T193958Z:4c97cdfd-3b11-49d4-9134-22503667bd68" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:39:58.787Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-fc5eefa65b0f754e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2ca3fb9237682f4e97e55b7951c0eb3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:39:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8e8a1105-33ea-467a-946b-892fcb18f5bc", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "a8aca265-38e9-4022-a823-892771cdc20f", + "x-ms-routing-request-id": "WESTUS:20230629T193959Z:8e8a1105-33ea-467a-946b-892fcb18f5bc" + }, + "ResponseBody": { + "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", + "status": "InProgress", + "startTime": "2023-06-29T19:39:58.787Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-6ce691dbe9e3ab40-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f11eb96c04239854b68d7a4ab27924ad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "68bfa1a5-b381-4bdd-81c4-fb0280e9337b", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "859b5065-ae47-4bdf-97ce-7cbb0fa0f269", + "x-ms-routing-request-id": "WESTUS:20230629T194014Z:68bfa1a5-b381-4bdd-81c4-fb0280e9337b" + }, + "ResponseBody": { + "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", + "status": "InProgress", + "startTime": "2023-06-29T19:39:58.787Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-60cf685bb351c848-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6cea78afbef7deaa748ab717c90e8409", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c10de1bc-09f9-4e53-9719-f72f301137d9", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "47eafdb1-3fea-4c19-8515-74eeed595e72", + "x-ms-routing-request-id": "WESTUS:20230629T194029Z:c10de1bc-09f9-4e53-9719-f72f301137d9" + }, + "ResponseBody": { + "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", + "status": "InProgress", + "startTime": "2023-06-29T19:39:58.787Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-fcb8a60452b9144a-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "4fefbd7886df8d55a70b75dabc037c1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75d72c34-b3d0-4e47-9dc7-e72ceb5bf861", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "32d2a608-4f33-4ff3-a30c-af18b60f3f15", + "x-ms-routing-request-id": "WESTUS:20230629T194044Z:75d72c34-b3d0-4e47-9dc7-e72ceb5bf861" + }, + "ResponseBody": { + "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", + "status": "Succeeded", + "startTime": "2023-06-29T19:39:58.787Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-4fd4ddf4269fe445-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "d8caaec07fd5ae450e407d994d3dcfa8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "804", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "42e201b5-04f0-4b33-8989-755dc53beef3", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "fcfe5ced-1f48-4857-8dd5-0558a60a2fa9", + "x-ms-routing-request-id": "WESTUS:20230629T194045Z:42e201b5-04f0-4b33-8989-755dc53beef3" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:58.897Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", + "name": "sql-pool-VBS-33", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-472260895e58ad42a636a0e28abd349e-c67cdb7eee915546-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f5d17009d58a28cd225cc5ec48d02170", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "804", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "23607615-a18f-40a1-88a5-5ace50deaa02", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "2bf71ee3-c007-491d-b678-bdc32bc93707", + "x-ms-routing-request-id": "WESTUS:20230629T194045Z:23607615-a18f-40a1-88a5-5ace50deaa02" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:58.897Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", + "name": "sql-pool-VBS-33", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-980e6061e22441419372152ae767b73e-a84923915220c644-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "1a56990dab43f9337840419f09bc3f69", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "251", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49112ff9-aa3a-4448-b2d6-d7596d4c17e3", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "49112ff9-aa3a-4448-b2d6-d7596d4c17e3", + "x-ms-routing-request-id": "WESTUS:20230629T194045Z:49112ff9-aa3a-4448-b2d6-d7596d4c17e3" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4530/elasticpools/sql-pool-VBS-5705\u0027 under resource group \u0027Sql-RG-1560\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8aedd4d14554b44ea628522d048bc55e-0916f67fe27a154e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "4cd1cd3c8732eb93e1a1b578b958653e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "804", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b1e47dc9-9cc5-40a7-9ffa-011480ba8903", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "cc376fd3-ec80-46f8-be83-2f47af413de4", + "x-ms-routing-request-id": "WESTUS:20230629T194045Z:b1e47dc9-9cc5-40a7-9ffa-011480ba8903" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:58.897Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", + "name": "sql-pool-VBS-33", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "76", + "Content-Type": "application/json", + "traceparent": "00-2a9959383f28234aa433fbbf47115401-0a5f7690f8fd994e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b48b0c1eb4e65d643cd77c49942d1f66", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "VBS" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2dc57e6-6fd8-4cc5-9001-0fb7379bc748", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", + "x-ms-routing-request-id": "WESTUS:20230629T194047Z:a2dc57e6-6fd8-4cc5-9001-0fb7379bc748" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:40:47.883Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a9959383f28234aa433fbbf47115401-d5144b54d7544c48-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "fc8003db8b30878369730f5a0b4957b3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:40:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "41261f53-8836-4e53-8d6c-67ac3c38ac69", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "ff800f94-4656-4675-8118-382d5556f62f", + "x-ms-routing-request-id": "WESTUS:20230629T194048Z:41261f53-8836-4e53-8d6c-67ac3c38ac69" + }, + "ResponseBody": { + "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", + "status": "InProgress", + "startTime": "2023-06-29T19:40:47.883Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a9959383f28234aa433fbbf47115401-5c1a5eaa6b38f54c-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "5d5b4f81eaa7493ecd05ae7b7bc16781", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "af25f072-7ed9-4df7-aac2-8c40deea0765", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "07e110c3-9119-4f20-933f-45a42647fb3c", + "x-ms-routing-request-id": "WESTUS:20230629T194103Z:af25f072-7ed9-4df7-aac2-8c40deea0765" + }, + "ResponseBody": { + "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", + "status": "InProgress", + "startTime": "2023-06-29T19:40:47.883Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a9959383f28234aa433fbbf47115401-2c355a21bc956247-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "916e5c9622ad9135d828118bc5e47abc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9f22ab60-d478-4240-bd92-e8248a8f5c59", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "48d05a30-882f-4ae9-a75b-d8c73a084def", + "x-ms-routing-request-id": "WESTUS:20230629T194118Z:9f22ab60-d478-4240-bd92-e8248a8f5c59" + }, + "ResponseBody": { + "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", + "status": "InProgress", + "startTime": "2023-06-29T19:40:47.883Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a9959383f28234aa433fbbf47115401-098328133b66aa4f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a6208514e35ff178c4372f2bdd080ca8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2bc5440f-24a2-4e8d-821f-8ab817f9a074", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "4ad5020c-e481-4402-aa83-9f7348aeab02", + "x-ms-routing-request-id": "WESTUS:20230629T194133Z:2bc5440f-24a2-4e8d-821f-8ab817f9a074" + }, + "ResponseBody": { + "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", + "status": "Succeeded", + "startTime": "2023-06-29T19:40:47.883Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a9959383f28234aa433fbbf47115401-7a3cc773de95b64d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "afc38d0bc6db5f0619ca847ed8b383e9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "808", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "764fc0f8-c86d-4349-9cfa-44bc110db6c0", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "a2dbdb74-8269-46c7-8be8-5ab65b6cb686", + "x-ms-routing-request-id": "WESTUS:20230629T194134Z:764fc0f8-c86d-4349-9cfa-44bc110db6c0" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:40:47.977Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705", + "name": "sql-pool-VBS-5705", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-133ff48720c35a438fa94fa077eaf02d-f6adb5750d00e244-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f567f18bc1a0b322e37dcc75f30ab3d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1625", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84694e1c-c824-4ac9-977b-1e69d05fdce0", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "3499eb69-04dc-46a7-8094-8fc4e88982d8", + "x-ms-routing-request-id": "WESTUS:20230629T194134Z:84694e1c-c824-4ac9-977b-1e69d05fdce0" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:40:47.977Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705", + "name": "sql-pool-VBS-5705", + "type": "Microsoft.Sql/servers/elasticPools" + }, + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:58.897Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", + "name": "sql-pool-VBS-33", + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7a91cc9d284fe4449992c10aaaf3c935-62874d5cbe581c4a-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "3880691ccb204de17fc18d955ef91810", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "804", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6533e11a-084b-42bc-b391-004922e8755f", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "46588ce8-9751-4844-82d1-50717bb35101", + "x-ms-routing-request-id": "WESTUS:20230629T194134Z:6533e11a-084b-42bc-b391-004922e8755f" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:39:58.897Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", + "name": "sql-pool-VBS-33", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dc75aee768964e46808439459d3471b3-d111a3988ea00340-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "eb9f45b317a049076b0fcb5ef9906b0f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:41:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "984c28b9-edf4-4ef3-adcf-2e9022ef8d14", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "fbc0c2c8-6f4f-4354-8fe6-1bf09f5c4ceb", + "x-ms-routing-request-id": "WESTUS:20230629T194138Z:984c28b9-edf4-4ef3-adcf-2e9022ef8d14" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-0d9f5099d78ed54f8faf44519b618f7a-e4ec862129db8849-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "adc2bb64c76a052f6136cc10ff8254ee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "808", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f1c9a1c8-7a84-45c0-a27e-1d2b3389db45", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "f1c8e984-d525-414a-af8e-94ee1b83aeb0", + "x-ms-routing-request-id": "WESTUS:20230629T194138Z:f1c9a1c8-7a84-45c0-a27e-1d2b3389db45" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:40:47.977Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705", + "name": "sql-pool-VBS-5705", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1fdf81b9b5f54eae7239138e3d9096-1f2ecf67b6829c42-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a97e7d55a99767de7ce0db87a12815de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:41:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "11e36bb8-064e-4063-b42b-f2983e290515", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-request-id": "998c8067-89e3-49de-afef-d8c494e74eb2", + "x-ms-routing-request-id": "WESTUS:20230629T194140Z:11e36bb8-064e-4063-b42b-f2983e290515" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1beb002beb3f19489e2453fd17349f54-00053532f7b91645-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b68886c4ab0ebb53dd5a308aeca76338", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9d15386c-7742-4f24-92b7-bbb50aed8d24", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "5cd8e4fa-39d4-4ccb-9e90-f2067c675a05", + "x-ms-routing-request-id": "WESTUS:20230629T194141Z:9d15386c-7742-4f24-92b7-bbb50aed8d24" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-22bd6d8be4fe3f40a7ef4f7e49ac6418-7110d6ccb6220943-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "1f56ee2017899720d92f24399be1e8c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "580", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ce2bf1c7-1357-4b0b-aecc-460baf12ac20", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "65059582-75bd-4d0c-8193-5e2ef098417c", + "x-ms-routing-request-id": "WESTUS:20230629T194142Z:ce2bf1c7-1357-4b0b-aecc-460baf12ac20" + }, + "ResponseBody": { + "value": [ + { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-4530", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-4530.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530", + "name": "sql-server-4530", + "type": "Microsoft.Sql/servers" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ff712571a83f1d4ca6d1fb3870268b10-8c9b3f5efed8ad44-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "1ac34d205f9f0ecf8d3e5f748d1962dd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "72", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "238487cc-aec6-4880-9af4-4916a3bf65ea", + "x-ms-ratelimit-remaining-subscription-deletes": "14994", + "x-ms-request-id": "7d954163-efaf-4088-8c72-fd46f664b82b", + "x-ms-routing-request-id": "WESTUS:20230629T194142Z:238487cc-aec6-4880-9af4-4916a3bf65ea" + }, + "ResponseBody": { + "operation": "DropLogicalServer", + "startTime": "2023-06-29T19:41:42.413Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ff712571a83f1d4ca6d1fb3870268b10-a106cb54af7d2e4c-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "9e6a6b7148e4c1981f47914bb8ac0abf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f47f0eb-8d81-4b8e-bb86-48f6991523fa", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "78835587-1e99-4a35-9a16-b2c65c36847f", + "x-ms-routing-request-id": "WESTUS:20230629T194142Z:7f47f0eb-8d81-4b8e-bb86-48f6991523fa" + }, + "ResponseBody": { + "name": "7d954163-efaf-4088-8c72-fd46f664b82b", + "status": "InProgress", + "startTime": "2023-06-29T19:41:42.413Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ff712571a83f1d4ca6d1fb3870268b10-c10431149cab0a44-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c63f46cd58067f634916b4ae82f08774", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:41:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ebe9ed05-5ce5-4f64-99d0-b24ec2ac96ce", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "9efec6ac-5d91-44d2-b594-84da26760dbb", + "x-ms-routing-request-id": "WESTUS:20230629T194157Z:ebe9ed05-5ce5-4f64-99d0-b24ec2ac96ce" + }, + "ResponseBody": { + "name": "7d954163-efaf-4088-8c72-fd46f664b82b", + "status": "Succeeded", + "startTime": "2023-06-29T19:41:42.413Z" + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "2071916993", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json new file mode 100644 index 0000000000000..57d1eab6b5d05 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json @@ -0,0 +1,2415 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-2241?api-version=**", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-4894c2666f8c254b9b52c0fbe3774dc3-32a9e785e4057d48-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "059080fed1adb9d0e6b526d58e6bfbe1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "220", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18123e59-4a2f-478d-a450-843ea06b8532", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "18123e59-4a2f-478d-a450-843ea06b8532", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194519Z:18123e59-4a2f-478d-a450-843ea06b8532" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241", + "name": "Sql-RG-2241", + "type": "Microsoft.Resources/resourceGroups", + "location": "uksouth", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "140", + "Content-Type": "application/json", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-db4cb7bcd2a47f4d-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f98dfb7f0e00501845b6241332a39d34", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "administratorLogin": "admin-sql-server-4273", + "administratorLoginPassword": "HvVJ%paVC@%GBKmi" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "72", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3cc7cd7-2c5c-45e5-a494-4bb864278d4d", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "f66124f0-dc8c-4143-a263-7afda11fac31", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194520Z:a3cc7cd7-2c5c-45e5-a494-4bb864278d4d" + }, + "ResponseBody": { + "operation": "UpsertLogicalServer", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-acfd457de563a641-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "527bb04f1b0f72fd78b4681aaca6b311", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6bc9a15a-b8b2-4792-ac02-184e93cba7a2", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "464ae9ed-02e2-4553-b4c4-11bd1b30af68", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194520Z:6bc9a15a-b8b2-4792-ac02-184e93cba7a2" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "InProgress", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-a2d63ac2b272ba45-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "ce36a188f8d1e775648e70a5db12815b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "afc261f7-ff76-4d81-a093-1abb4ebbce67", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "95976be8-9088-4742-b520-2ec826794d1f", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194521Z:afc261f7-ff76-4d81-a093-1abb4ebbce67" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "InProgress", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-1d6ce7a38480b348-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "82c3cfd24a273b249fb670d72f7c52e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3936eaaf-b8d8-4e6e-95d3-a9323c83e36a", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "2bd81273-2914-44b7-8737-0dba14945624", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194523Z:3936eaaf-b8d8-4e6e-95d3-a9323c83e36a" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "InProgress", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-b441cde0f664d241-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2d7d21a715b357833a93ed81ab589665", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "1", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1a62b052-f091-4ee3-9503-06c7a4444e51", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "d7975b92-ca6d-4136-a3b6-b405993451c1", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194524Z:1a62b052-f091-4ee3-9503-06c7a4444e51" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "InProgress", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-3bdcf16fd22a3147-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "dc470c3331e33ee97dfa2f1a889eb7e8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "453fd78f-9aff-45c4-963c-7c89cecfc7a6", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "fb899e15-c826-4a87-baba-73b2cc72d92c", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194526Z:453fd78f-9aff-45c4-963c-7c89cecfc7a6" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "InProgress", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-283149f7daad6448-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "bafd8e3c5395bca74c6c48945ca39046", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:45:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "299d4be1-276e-4f3b-80e1-0364c7af120b", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "20bc8d02-ebdd-4888-9bd0-a52e80d5fd70", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194546Z:299d4be1-276e-4f3b-80e1-0364c7af120b" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "InProgress", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-c5c6637018cd9b44-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "23a40a1f753476ff373eb0b9e668ce9c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:46:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9af1b750-2b11-4656-a13a-878c4cb1cdbd", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "21aff596-a026-4211-86a0-2a5baf651481", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194606Z:9af1b750-2b11-4656-a13a-878c4cb1cdbd" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "InProgress", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-9d6cc9dce33b3245-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "1c4405dbdc5adfd0648b9076e955e2d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "105", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:46:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "09afc835-5e5c-4152-876a-2c198374a924", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "28fe2a4f-9a95-4bdf-afb3-458fb85be1c4", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194626Z:09afc835-5e5c-4152-876a-2c198374a924" + }, + "ResponseBody": { + "name": "f66124f0-dc8c-4143-a263-7afda11fac31", + "status": "Succeeded", + "startTime": "2023-06-29T19:45:20.4Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-42a4664a1a05db42-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "7dfae86994f9c7b48f878257a3eed6e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "568", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:46:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e2d99e24-f1d5-4205-851b-055041072d42", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "65316cbd-5b6c-44ab-b44d-692c479ed7f5", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194627Z:e2d99e24-f1d5-4205-851b-055041072d42" + }, + "ResponseBody": { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-4273", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-4273.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273", + "name": "sql-server-4273", + "type": "Microsoft.Sql/servers" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "80", + "Content-Type": "application/json", + "traceparent": "00-06a96945e10b5e46837d0943266d5be9-24af245e33afd748-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "735e57b843ecc53abea9e4888de15cd6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "Default" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:46:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d16797b8-5277-4867-9113-c37d633601a5", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "ed268158-50c0-4fa6-b425-c459fa9ad119", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194629Z:d16797b8-5277-4867-9113-c37d633601a5" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:46:29.137Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-06a96945e10b5e46837d0943266d5be9-33f7e66dc1f03f4f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "8b9d3dd8f67bb7fc4334d50be206faa1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:46:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f063ce2e-cf53-45b0-ac01-6d7ed4afeef9", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "598a9b11-2396-495b-b72d-b3a718c5c056", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194629Z:f063ce2e-cf53-45b0-ac01-6d7ed4afeef9" + }, + "ResponseBody": { + "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", + "status": "InProgress", + "startTime": "2023-06-29T19:46:29.137Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-06a96945e10b5e46837d0943266d5be9-1f27f9ee7a93a442-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "d99eccfb4c77710806e1e519e9c18948", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:46:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f0f746a6-e93b-4473-b45f-634bfd9ff0c6", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "0bebf607-7193-475b-a662-aff59e51490d", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194644Z:f0f746a6-e93b-4473-b45f-634bfd9ff0c6" + }, + "ResponseBody": { + "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", + "status": "InProgress", + "startTime": "2023-06-29T19:46:29.137Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-06a96945e10b5e46837d0943266d5be9-c63e0b75c9a9794f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "50af38f4d144595b01b50d6e71459a86", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:46:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9a6a6950-31e1-4c04-8216-2849aaef2452", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "eebe1825-bedd-49b8-a514-ddbef2b74845", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194659Z:9a6a6950-31e1-4c04-8216-2849aaef2452" + }, + "ResponseBody": { + "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", + "status": "InProgress", + "startTime": "2023-06-29T19:46:29.137Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-06a96945e10b5e46837d0943266d5be9-a7f5ea77ea8e2e45-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6f7db8d8dbd78c35342c849910e2ce82", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fa59eac1-52fe-4c64-ab83-3a20fed9d5fe", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "7d86b004-2903-4b6d-8605-13def33cbf6d", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194714Z:fa59eac1-52fe-4c64-ab83-3a20fed9d5fe" + }, + "ResponseBody": { + "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", + "status": "Succeeded", + "startTime": "2023-06-29T19:46:29.137Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-06a96945e10b5e46837d0943266d5be9-b52ce377d655ed4a-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "aa168daaa9572a5c7145d7c13e9affc1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "50e07cbe-39f1-4633-95e0-05526a859bff", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "8372e758-6107-4326-ad47-af5c7cbc7a11", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194715Z:50e07cbe-39f1-4633-95e0-05526a859bff" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:46:29.293Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", + "name": "sql-pool-Default-6544", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e7378906cc5fdf4bbed4fd549d267a00-bfcef40c1257ec4f-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "30405f471a43197102221b184cc1491f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fb747100-ce60-4c24-9628-530a03047415", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "2ae78d28-348e-42d5-b7af-e1c76a94dea2", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194715Z:fb747100-ce60-4c24-9628-530a03047415" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:46:29.293Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", + "name": "sql-pool-Default-6544", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-853d4d3f5e3ebd4983daa8d5e8570068-798097aab809474d-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e4c48be6f02e2e2f5c53fd9103734e9a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "255", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "432eb6d2-5579-451c-8446-26c0dc2be987", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "432eb6d2-5579-451c-8446-26c0dc2be987", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194716Z:432eb6d2-5579-451c-8446-26c0dc2be987" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4273/elasticpools/sql-pool-Default-7445\u0027 under resource group \u0027Sql-RG-2241\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-2f6f14c600fc8d4f88d40996a9bd6b0c-8c13ec0cf3726040-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b052c22c9ea1903e1bfca7348e44ddaf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "05c26f5b-e841-46d2-8d81-caead4a1b776", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "1fd3ff07-6134-4bd7-af3b-79d0702a37a3", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194716Z:05c26f5b-e841-46d2-8d81-caead4a1b776" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:46:29.293Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", + "name": "sql-pool-Default-6544", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "80", + "Content-Type": "application/json", + "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-95c863c77962a747-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b2dab8fc1bd556923011d4ef1cdf168f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "Default" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a61d9dea-8e5e-499e-9817-64a2a1d83d7c", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194717Z:a61d9dea-8e5e-499e-9817-64a2a1d83d7c" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:47:17.813Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-271294e6a86baf44-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "4a954e769b9811c430fb808fc94f733c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18a5c43c-a7fe-4fca-a3e4-580f58dbf952", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "4b52d165-1200-4e18-a303-4a59d95184a6", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194718Z:18a5c43c-a7fe-4fca-a3e4-580f58dbf952" + }, + "ResponseBody": { + "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", + "status": "InProgress", + "startTime": "2023-06-29T19:47:17.813Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-8f5c40e098d55846-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0c5f18e55358633f3b9165a1525f0d35", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5cc9e152-bb71-492f-80c7-00c71f543a14", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "b4d10aaf-f1a1-4094-85b0-6beef1b1e1ad", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194733Z:5cc9e152-bb71-492f-80c7-00c71f543a14" + }, + "ResponseBody": { + "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", + "status": "InProgress", + "startTime": "2023-06-29T19:47:17.813Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-12a083cd8f455348-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "ce78bc70cc4939f6bdd9597417ee7efd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:47:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cfbca0a3-aa19-415d-892f-aca042a16d8c", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "d241e789-a0e6-4fdf-afcc-7e2610156571", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194748Z:cfbca0a3-aa19-415d-892f-aca042a16d8c" + }, + "ResponseBody": { + "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", + "status": "InProgress", + "startTime": "2023-06-29T19:47:17.813Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-df14b76eb15db44e-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "304d8bc0949a23bf0e310f063522bfd0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f88fdeb8-24a6-4ad7-a665-c5cf06fd0414", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "5eb0fa63-6a5a-49c5-9bb4-c767e454d5b5", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194803Z:f88fdeb8-24a6-4ad7-a665-c5cf06fd0414" + }, + "ResponseBody": { + "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", + "status": "InProgress", + "startTime": "2023-06-29T19:47:17.813Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-5b38d5926b99a94d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0d1e4beda5d618f321264f7ef9cb4c4d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4a5895f4-3919-467f-b0b2-e7954f638c5d", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "153dfdf3-a201-4d3a-a037-db1f60ef14e8", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194819Z:4a5895f4-3919-467f-b0b2-e7954f638c5d" + }, + "ResponseBody": { + "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", + "status": "Succeeded", + "startTime": "2023-06-29T19:47:17.813Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-90017b85ec98654d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c6e16813dd12dc9bfd54c017bdef039a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39b2cdf7-7fbb-45cc-b585-0d8ffede8692", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "92c1aa7b-589f-4713-8235-b66cb93dd581", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194819Z:39b2cdf7-7fbb-45cc-b585-0d8ffede8692" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:47:17.953Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445", + "name": "sql-pool-Default-7445", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "cc86891a71cf1b2698340f7344402a42", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1653", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "42a6e473-ea4c-4ca1-9f54-fbe73ea0e54c", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "ce4c5f45-bc18-4a74-a051-64cc89b48a91", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194819Z:42a6e473-ea4c-4ca1-9f54-fbe73ea0e54c" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:47:17.953Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445", + "name": "sql-pool-Default-7445", + "type": "Microsoft.Sql/servers/elasticPools" + }, + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:46:29.293Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", + "name": "sql-pool-Default-6544", + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-80e4076c25a09649932c003b6e505167-cb8be516e3e90f49-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "cdf3c2e5f84110bdaf421082e4db5b32", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "41d3160e-3355-45b6-a5d6-28e1a8461ff5", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "138404c1-2518-4982-a1bd-d9173c29e0ae", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194820Z:41d3160e-3355-45b6-a5d6-28e1a8461ff5" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:46:29.293Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", + "name": "sql-pool-Default-6544", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d0d5b0bd2c0fa04ba37a8c9dee5b2f5d-fdd9039f1fe2d445-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "6f64b5228045a17d41c52ddecd2797bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:48:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "29aa02e3-91fb-45e5-b3dc-68612d605b99", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "dab865d5-546e-4407-9edf-3a8869b17e54", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194823Z:29aa02e3-91fb-45e5-b3dc-68612d605b99" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f805b11098790a40a7b9fa42e2bead0c-5a20fb2118612b46-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "8f51ddd9bbdc65fd44528c7bcadf4288", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "820", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "78dd5d5e-b8fd-4001-bf96-ee2ed7347efa", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "83b677cf-2d76-4f61-87d0-32ac18ff5cc7", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194824Z:78dd5d5e-b8fd-4001-bf96-ee2ed7347efa" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:47:17.953Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "Default", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445", + "name": "sql-pool-Default-7445", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-26afd1d54c89c44e86127e68f380f129-18bd446361f8b54c-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "675753aa60a9ec365b41a2ce63f0409d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:48:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4a7cf882-7b45-4cc3-9639-fb307c554cbe", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-request-id": "4c0b8023-fa0b-4c4d-a2a0-f28e4d6d74b0", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194828Z:4a7cf882-7b45-4cc3-9639-fb307c554cbe" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0ee39433cf4c7813a664349a182f0154", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "030ec0b1-75c3-4196-b9fe-f664367b4bfd", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "a3f17147-6d55-44cf-b689-1622aaaa4316", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194828Z:030ec0b1-75c3-4196-b9fe-f664367b4bfd" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "76", + "Content-Type": "application/json", + "traceparent": "00-bc983d323bde724ca634c0740bd029ae-e081a36e843b7c4a-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "51d95aeba2b2e872e7dca98c427deab5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "VBS" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55274bef-619a-480d-b748-34279d340cbc", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194830Z:55274bef-619a-480d-b748-34279d340cbc" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:48:29.973Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bc983d323bde724ca634c0740bd029ae-931169b0f3f7bf49-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "fcf2ba97e21340e19b64e737cf1a22b6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7dacc06-f67d-421f-915c-173b9e7009cf", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "3d5d12a1-7a78-4ea0-a6c6-369ddc4f4908", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194830Z:c7dacc06-f67d-421f-915c-173b9e7009cf" + }, + "ResponseBody": { + "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", + "status": "InProgress", + "startTime": "2023-06-29T19:48:29.973Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bc983d323bde724ca634c0740bd029ae-e06694197a07a946-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "329462b0df472b9efe4d0840ce2b9196", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:48:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "172a12e6-b99b-4b46-8b23-fc96cc857e5d", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "63aca520-308b-4d38-bb8a-57af096730c4", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194845Z:172a12e6-b99b-4b46-8b23-fc96cc857e5d" + }, + "ResponseBody": { + "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", + "status": "InProgress", + "startTime": "2023-06-29T19:48:29.973Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bc983d323bde724ca634c0740bd029ae-63f7a7b1b965354a-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "87f54712ed8ab8a1edcb96ebd825bc2f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b0dfcf6-93bf-4ac3-a8dc-bd2f69987ccc", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "a375e780-0a40-4d4d-930a-7f4cf14db6e2", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194900Z:9b0dfcf6-93bf-4ac3-a8dc-bd2f69987ccc" + }, + "ResponseBody": { + "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", + "status": "InProgress", + "startTime": "2023-06-29T19:48:29.973Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "Connection": "close", + "traceparent": "00-bc983d323bde724ca634c0740bd029ae-86d2ed1b5b9a434f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f4961c4f98bcb71a1bc7fec6daa07270", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Connection": "close", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f96ce51-dbbd-40ab-905c-a746a05e2ee5", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "e77a8385-7096-4ed2-8b58-974fab9c976b", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194915Z:0f96ce51-dbbd-40ab-905c-a746a05e2ee5" + }, + "ResponseBody": { + "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", + "status": "Succeeded", + "startTime": "2023-06-29T19:48:29.973Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bc983d323bde724ca634c0740bd029ae-116e48a845ffa84f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "882451d39a25c22cc1db447b49b353d8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "807", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac62ce12-b2e2-4238-b038-28a10414621a", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "7aae97ba-bbae-4464-9229-8f0bd34bc1cc", + "x-ms-routing-request-id": "WESTUS:20230629T194916Z:ac62ce12-b2e2-4238-b038-28a10414621a" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:48:30.13Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", + "name": "sql-pool-VBS-9126", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-76758b6df2cc4d46b359a76059a25c7f-9c0c8ca650aa8d4f-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b1f1d8909d9579da2c3d6bc3eedbde4c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "807", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "085a90b2-46a8-4f41-914e-409241d0eab9", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "3b5105b5-5546-477f-84bb-44f7ee1523cc", + "x-ms-routing-request-id": "WESTUS:20230629T194917Z:085a90b2-46a8-4f41-914e-409241d0eab9" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:48:30.13Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", + "name": "sql-pool-VBS-9126", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8b5f072f6f17064288bd6cec6a09b60f-12b0f0239450bd49-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "871826593400b40af0d332e0539e6e68", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "251", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "893a37c8-e2ea-4250-8c6a-c1a85620a9f6", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "893a37c8-e2ea-4250-8c6a-c1a85620a9f6", + "x-ms-routing-request-id": "WESTUS:20230629T194917Z:893a37c8-e2ea-4250-8c6a-c1a85620a9f6" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4273/elasticpools/sql-pool-VBS-1240\u0027 under resource group \u0027Sql-RG-2241\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-26685428956bda45bc8413ee39e55de7-a1df7f72a571214e-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "01352674c0af36da76aa5be72e68d4e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "807", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f85fe8b-b1d1-4a47-bf03-0fd2577bbe65", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "86a2c347-9363-42a2-a243-ce7dd7a65abc", + "x-ms-routing-request-id": "WESTUS:20230629T194917Z:5f85fe8b-b1d1-4a47-bf03-0fd2577bbe65" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:48:30.13Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", + "name": "sql-pool-VBS-9126", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "76", + "Content-Type": "application/json", + "traceparent": "00-20a8767350730b43bd1a2b53922b149e-056b802f85924249-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2322f7fdcb9b5cd8ce3cc0c16af9268d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "uksouth", + "properties": { + "preferredEnclaveType": "VBS" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9c49440a-a87a-4174-8dae-0de0992083ec", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "91129c65-8fc3-4a71-b19d-6580cefac38c", + "x-ms-routing-request-id": "WESTUS:20230629T194921Z:9c49440a-a87a-4174-8dae-0de0992083ec" + }, + "ResponseBody": { + "operation": "CreateLogicalElasticPool", + "startTime": "2023-06-29T19:49:21.287Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-20a8767350730b43bd1a2b53922b149e-7c15ca97d4ee8f4d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "5be24dff4b7ca8cd4dd93372ff18cc7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f8cb7607-4785-4a02-bbb6-568779b401e8", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "af59d704-bac2-4e1e-9a24-a2f96b62d2db", + "x-ms-routing-request-id": "WESTUS:20230629T194921Z:f8cb7607-4785-4a02-bbb6-568779b401e8" + }, + "ResponseBody": { + "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", + "status": "InProgress", + "startTime": "2023-06-29T19:49:21.287Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-20a8767350730b43bd1a2b53922b149e-46c65d8032bd814c-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2b18cd840b192140598ad7b8bb8283ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7977fb7a-56bc-4afd-9f01-d0b5bd1fcb43", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "d86ebdbe-2433-46ba-9c93-1fdd79ab86ab", + "x-ms-routing-request-id": "WESTUS:20230629T194936Z:7977fb7a-56bc-4afd-9f01-d0b5bd1fcb43" + }, + "ResponseBody": { + "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", + "status": "InProgress", + "startTime": "2023-06-29T19:49:21.287Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-20a8767350730b43bd1a2b53922b149e-d22f914a34756c4d-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "1cc239b6ca16831135a77acca82b9832", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:49:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ca65b768-ae18-4338-9cda-902185cf1ce3", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "2438ab16-4cc6-4538-b551-477be67789c5", + "x-ms-routing-request-id": "WESTUS:20230629T194952Z:ca65b768-ae18-4338-9cda-902185cf1ce3" + }, + "ResponseBody": { + "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", + "status": "InProgress", + "startTime": "2023-06-29T19:49:21.287Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-20a8767350730b43bd1a2b53922b149e-4c5d93dadae6ca4f-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0ad093165a09f36e0dc102f17314ecca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ef1cb959-c3c2-440a-9f59-fad8160a6511", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "5fd6b580-398e-4ec6-aef4-2595b5dabe47", + "x-ms-routing-request-id": "WESTUS:20230629T195007Z:ef1cb959-c3c2-440a-9f59-fad8160a6511" + }, + "ResponseBody": { + "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", + "status": "Succeeded", + "startTime": "2023-06-29T19:49:21.287Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-20a8767350730b43bd1a2b53922b149e-33d61e1ec73cae41-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "c6bc8855af56ba66bc95f5729073782e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "808", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "788b265d-88d5-4108-b888-503e60af3487", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "fa72e705-8135-4743-a1d3-a6e4256f3ba0", + "x-ms-routing-request-id": "WESTUS:20230629T195008Z:788b265d-88d5-4108-b888-503e60af3487" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:49:21.443Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240", + "name": "sql-pool-VBS-1240", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "28a2a5f179b25ba1cace0f55c81f1021", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1628", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1b163685-2ab7-4f65-ba4c-ba54d6f0bb71", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "cdb214ef-a3d2-4487-9a9d-4be2964ce4aa", + "x-ms-routing-request-id": "WESTUS:20230629T195008Z:1b163685-2ab7-4f65-ba4c-ba54d6f0bb71" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:49:21.443Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240", + "name": "sql-pool-VBS-1240", + "type": "Microsoft.Sql/servers/elasticPools" + }, + { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:48:30.13Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", + "name": "sql-pool-VBS-9126", + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d535b50e6ae81149a75d9f98289a1e69-9724d4adac82c640-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2076b0bad16e66dc2c164e7465fc6299", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "807", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "29c20651-4d12-4c5a-b05a-fa388bbef681", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "56f0977d-2b2a-42af-b0d4-00cb93a7ab36", + "x-ms-routing-request-id": "WESTUS:20230629T195008Z:29c20651-4d12-4c5a-b05a-fa388bbef681" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:48:30.13Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", + "name": "sql-pool-VBS-9126", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0c0cdb4019ce47479e36013719d1552b-ed6f20bec3357747-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "ce00d348c471dc18e761fb879f10f29c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:50:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff50852f-3f26-466d-973f-2db06b9c19d1", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "730b0c1d-e396-4500-810a-1d1435030fbb", + "x-ms-routing-request-id": "WESTUS:20230629T195014Z:ff50852f-3f26-466d-973f-2db06b9c19d1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-0cc6763cb864cc48a5fe942ccc21eb24-5c51a74705895345-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f50d766c411ff6af979a390dd654c71c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "808", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cdd31c7a-3599-4c35-a154-eaaea5dcf9d4", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "c03204c6-bafa-4c6c-9850-5234d6b95be9", + "x-ms-routing-request-id": "WESTUS:20230629T195014Z:cdd31c7a-3599-4c35-a154-eaaea5dcf9d4" + }, + "ResponseBody": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "family": "Gen5", + "capacity": 2 + }, + "kind": "vcore,pool", + "properties": { + "state": "Ready", + "creationDate": "2023-06-29T19:49:21.443Z", + "maxSizeBytes": 34359738368, + "perDatabaseSettings": { + "minCapacity": 0.0000, + "maxCapacity": 2.0000 + }, + "zoneRedundant": false, + "licenseType": "LicenseIncluded", + "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", + "preferredEnclaveType": "VBS", + "availabilityZone": "NoPreference" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240", + "name": "sql-pool-VBS-1240", + "type": "Microsoft.Sql/servers/elasticPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-7a6fbb7be0a4e0409b87f40ad5a309ed-c0c8d8412e982c48-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "90efb2248244f09c12e00535c87cb1ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 29 Jun 2023 19:50:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff835ffd-09f0-478e-9fde-cb77c3b23325", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "a95db0e2-b3a2-4d99-958d-7f77b0b13eed", + "x-ms-routing-request-id": "WESTUS:20230629T195016Z:ff835ffd-09f0-478e-9fde-cb77c3b23325" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "7877df74653dea8ad91de23f3c792d1b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cee9dff6-8adb-4a15-8864-df01b9f81591", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "97cea7b5-cbc0-4076-8160-b11bcdc53b09", + "x-ms-routing-request-id": "WESTUS:20230629T195017Z:cee9dff6-8adb-4a15-8864-df01b9f81591" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a9a17ee99e39271836ab6b82393ad05f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "580", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ad7e72fb-0a55-4661-9550-4ff45a0290e1", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "49648791-ca75-4c1b-a864-5b1700a42cb9", + "x-ms-routing-request-id": "WESTUS:20230629T195017Z:ad7e72fb-0a55-4661-9550-4ff45a0290e1" + }, + "ResponseBody": { + "value": [ + { + "kind": "v12.0", + "properties": { + "administratorLogin": "admin-sql-server-4273", + "version": "12.0", + "state": "Ready", + "fullyQualifiedDomainName": "sql-server-4273.database.windows.net", + "privateEndpointConnections": [], + "minimalTlsVersion": "None", + "publicNetworkAccess": "Enabled", + "restrictOutboundNetworkAccess": "Disabled", + "externalGovernanceStatus": "Disabled" + }, + "location": "uksouth", + "tags": {}, + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273", + "name": "sql-server-4273", + "type": "Microsoft.Sql/servers" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273?api-version=2022-08-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-924f422ecec8964bbb38a12446cfab8e-6ad2f9042e440f4d-00", + "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e9c190963904067ca2314fe61a3c06ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "71", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "301502ab-1c0e-437e-ae1f-7b31ae99fa09", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b", + "x-ms-routing-request-id": "WESTUS:20230629T195018Z:301502ab-1c0e-437e-ae1f-7b31ae99fa09" + }, + "ResponseBody": { + "operation": "DropLogicalServer", + "startTime": "2023-06-29T19:50:18.18Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-924f422ecec8964bbb38a12446cfab8e-fd3f4c38fb9ff440-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "aba9824c43b8af16029b06074f320cf9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4313e5cd-3b66-48c7-9a93-91df5e80d5c3", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "777905c0-5224-4816-9574-71727aad800c", + "x-ms-routing-request-id": "WESTUS:20230629T195018Z:4313e5cd-3b66-48c7-9a93-91df5e80d5c3" + }, + "ResponseBody": { + "name": "8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b", + "status": "InProgress", + "startTime": "2023-06-29T19:50:18.18Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-924f422ecec8964bbb38a12446cfab8e-e5aaf5702d03e547-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0beebfa42fc1f54e55eb23b4f7eb0c9a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:50:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7792a153-1829-4e27-9026-3437a921141f", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "5b631bc0-76d4-431c-af6d-d4325cc18bd3", + "x-ms-routing-request-id": "WESTUS:20230629T195033Z:7792a153-1829-4e27-9026-3437a921141f" + }, + "ResponseBody": { + "name": "8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b", + "status": "Succeeded", + "startTime": "2023-06-29T19:50:18.18Z" + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "1059204483", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json new file mode 100644 index 0000000000000..9ab383d257ebf --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json @@ -0,0 +1,94 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "traceparent": "00-3a80cf83dc36f84995f13e144614ca30-ab6bffa6cd046740-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "495e563dd3f48a2ee70a2ffbfbae7ead", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "409", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94b345bd-4e4d-431a-bd33-381a9cf83c72", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "94b345bd-4e4d-431a-bd33-381a9cf83c72", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193345Z:94b345bd-4e4d-431a-bd33-381a9cf83c72" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "2c647056-bab2-4175-b172-493ff049eb29", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "DS-SQLAzure_hanumak_R\u0026D_60843", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-1560?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-78dddd73760f0b41b8d4aa56a06b3f0e-18cc5221fc107a4c-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0f4cd9dc9f6d5b496e81ec392f9ee43f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "uksouth" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "220", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:33:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5df458d6-f13d-4bfc-92f3-7622a7d6e159", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "5df458d6-f13d-4bfc-92f3-7622a7d6e159", + "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193347Z:5df458d6-f13d-4bfc-92f3-7622a7d6e159" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560", + "name": "Sql-RG-1560", + "type": "Microsoft.Resources/resourceGroups", + "location": "uksouth", + "properties": { + "provisioningState": "Succeeded" + } + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "1670139179", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json new file mode 100644 index 0000000000000..5e4297dd0e4c0 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json @@ -0,0 +1,93 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-fd5e03456684ed42af9c46eb0c9a5b9c-eb303d10fb222d47-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "01f41acf196c601f9b29dcbd5b7ab04e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "409", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fcc386ca-b1c8-4b37-83da-c8511938a98f", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "fcc386ca-b1c8-4b37-83da-c8511938a98f", + "x-ms-routing-request-id": "WESTUS:20230629T194202Z:fcc386ca-b1c8-4b37-83da-c8511938a98f" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "2c647056-bab2-4175-b172-493ff049eb29", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "DS-SQLAzure_hanumak_R\u0026D_60843", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-2241?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-ed124fad371ca24fbb9df7931c039ce7-0488c09aa2c8564a-00", + "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0bbdafd96c73020f7aa3043ec9b7ec2c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "uksouth" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "220", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 29 Jun 2023 19:42:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5c371bd-1250-492c-9aa4-198c228d9ad5", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "d5c371bd-1250-492c-9aa4-198c228d9ad5", + "x-ms-routing-request-id": "WESTUS:20230629T194204Z:d5c371bd-1250-492c-9aa4-198c228d9ad5" + }, + "ResponseBody": { + "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241", + "name": "Sql-RG-2241", + "type": "Microsoft.Resources/resourceGroups", + "location": "uksouth", + "properties": { + "provisioningState": "Succeeded" + } + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "1666761700", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" + } +} From 6b97b0c29a501b83ef374cae33544f27361de9e3 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Thu, 29 Jun 2023 17:54:41 -0700 Subject: [PATCH 02/25] add generated file --- .../src/Generated/ArmSqlModelFactory.cs | 1340 +++++++++-------- 1 file changed, 674 insertions(+), 666 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs index fd73686f12002..1cfdd0036dd1d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs @@ -18,21 +18,6 @@ namespace Azure.ResourceManager.Sql.Models /// Model factory for models. public static partial class ArmSqlModelFactory { - /// Initializes a new instance of RecoverableDatabaseData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The edition of the database. - /// The service level objective name of the database. - /// The elastic pool name of the database. - /// The last available backup date of the database (ISO8601 format). - /// A new instance for mocking. - public static RecoverableDatabaseData RecoverableDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string edition = null, string serviceLevelObjective = null, string elasticPoolName = null, DateTimeOffset? lastAvailableBackupOn = null) - { - return new RecoverableDatabaseData(id, name, resourceType, systemData, edition, serviceLevelObjective, elasticPoolName, lastAvailableBackupOn); - } - /// Initializes a new instance of DataMaskingPolicyData. /// The id. /// The name. @@ -598,39 +583,6 @@ public static EncryptionProtectorData EncryptionProtectorData(ResourceIdentifier return new EncryptionProtectorData(id, name, resourceType, systemData, kind, location, subregion, serverKeyName, serverKeyType, uri, thumbprint, isAutoRotationEnabled); } - /// Initializes a new instance of FailoverGroupData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Resource location. - /// Resource tags. - /// Read-write endpoint of the failover group instance. - /// Read-only endpoint of the failover group instance. - /// Local replication role of the failover group instance. - /// Replication state of the failover group instance. - /// List of partner server information for the failover group. - /// List of databases in the failover group. - /// A new instance for mocking. - public static FailoverGroupData FailoverGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, IDictionary tags = null, FailoverGroupReadWriteEndpoint readWriteEndpoint = null, ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = null, FailoverGroupReplicationRole? replicationRole = null, string replicationState = null, IEnumerable partnerServers = null, IEnumerable databases = null) - { - tags ??= new Dictionary(); - partnerServers ??= new List(); - databases ??= new List(); - - return new FailoverGroupData(id, name, resourceType, systemData, location, tags, readWriteEndpoint, readOnlyEndpointFailoverPolicy != null ? new FailoverGroupReadOnlyEndpoint(readOnlyEndpointFailoverPolicy) : null, replicationRole, replicationState, partnerServers?.ToList(), databases?.ToList()); - } - - /// Initializes a new instance of PartnerServerInfo. - /// Resource identifier of the partner server. - /// Geo location of the partner server. - /// Replication role of the partner server. - /// A new instance for mocking. - public static PartnerServerInfo PartnerServerInfo(ResourceIdentifier id = null, AzureLocation? location = null, FailoverGroupReplicationRole? replicationRole = null) - { - return new PartnerServerInfo(id, location, replicationRole); - } - /// Initializes a new instance of SqlFirewallRuleData. /// Resource ID. /// Resource name. @@ -2118,18 +2070,6 @@ public static WorkloadGroupData WorkloadGroupData(ResourceIdentifier id = null, return new WorkloadGroupData(id, name, resourceType, systemData, minResourcePercent, maxResourcePercent, minResourcePercentPerRequest, maxResourcePercentPerRequest, importance, queryExecutionTimeout); } - /// Initializes a new instance of LogicalDatabaseTransparentDataEncryptionData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Specifies the state of the transparent data encryption. - /// A new instance for mocking. - public static LogicalDatabaseTransparentDataEncryptionData LogicalDatabaseTransparentDataEncryptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, TransparentDataEncryptionState? state = null) - { - return new LogicalDatabaseTransparentDataEncryptionData(id, name, resourceType, systemData, state); - } - /// Initializes a new instance of BackupShortTermRetentionPolicyData. /// The id. /// The name. @@ -2319,41 +2259,6 @@ public static ManagedInstanceLongTermRetentionBackupData ManagedInstanceLongTerm return new ManagedInstanceLongTermRetentionBackupData(id, name, resourceType, systemData, managedInstanceName, managedInstanceCreateOn, databaseName, databaseDeletedOn, backupOn, backupExpireOn, backupStorageRedundancy); } - /// Initializes a new instance of RestorableDroppedDatabaseData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The name and tier of the SKU. - /// The name of the database. - /// The max size of the database expressed in bytes. - /// The creation date of the database (ISO8601 format). - /// The deletion date of the database (ISO8601 format). - /// The earliest restore date of the database (ISO8601 format). - /// The storage account type used to store backups for this database. - /// The resource ids of the user assigned identities to use. - /// A new instance for mocking. - public static RestorableDroppedDatabaseData RestorableDroppedDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SqlSku sku = null, string databaseName = null, long? maxSizeBytes = null, DateTimeOffset? createdOn = null, DateTimeOffset? deletedOn = null, DateTimeOffset? earliestRestoreOn = null, SqlBackupStorageRedundancy? backupStorageRedundancy = null, IDictionary keys = null) - { - tags ??= new Dictionary(); - keys ??= new Dictionary(); - - return new RestorableDroppedDatabaseData(id, name, resourceType, systemData, tags, location, sku, databaseName, maxSizeBytes, createdOn, deletedOn, earliestRestoreOn, backupStorageRedundancy, keys); - } - - /// Initializes a new instance of SqlDatabaseKey. - /// The database key type. Only supported value is 'AzureKeyVault'. - /// Thumbprint of the database key. - /// The database key creation date. - /// Subregion of the server key. - /// A new instance for mocking. - public static SqlDatabaseKey SqlDatabaseKey(SqlDatabaseKeyType? keyType = null, string thumbprint = null, DateTimeOffset? createdOn = null, string subregion = null) - { - return new SqlDatabaseKey(keyType, thumbprint, createdOn, subregion); - } - /// Initializes a new instance of RestorableDroppedManagedDatabaseData. /// The id. /// The name. @@ -2422,52 +2327,6 @@ public static ServerTrustCertificateData ServerTrustCertificateData(ResourceIden return new ServerTrustCertificateData(id, name, resourceType, systemData, publicBlob, thumbprint, certificateName); } - /// Initializes a new instance of ElasticPoolData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// The elastic pool SKU. - /// - /// The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: - /// - /// ```azurecli - /// az sql elastic-pool list-editions -l <location> -o table - /// ```` - /// - /// - /// Kind of elastic pool. This is metadata used for the Azure portal experience. - /// The state of the elastic pool. - /// The creation date of the elastic pool (ISO8601 format). - /// The storage limit for the database elastic pool in bytes. - /// The per database settings for the elastic pool. - /// Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. - /// The license type to apply for this elastic pool. - /// Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. - /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. - /// A new instance for mocking. - public static ElasticPoolData ElasticPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SqlSku sku = null, string kind = null, ElasticPoolState? state = null, DateTimeOffset? createdOn = null, long? maxSizeBytes = null, ElasticPoolPerDatabaseSettings perDatabaseSettings = null, bool? isZoneRedundant = null, ElasticPoolLicenseType? licenseType = null, ResourceIdentifier maintenanceConfigurationId = null, int? highAvailabilityReplicaCount = null) - { - tags ??= new Dictionary(); - - return new ElasticPoolData(id, name, resourceType, systemData, tags, location, sku, kind, state, createdOn, maxSizeBytes, perDatabaseSettings, isZoneRedundant, licenseType, maintenanceConfigurationId, highAvailabilityReplicaCount); - } - - /// Initializes a new instance of IPv6FirewallRuleData. - /// Resource ID. - /// Resource name. - /// Resource type. - /// The start IP address of the firewall rule. Must be IPv6 format. - /// The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress. - /// A new instance for mocking. - public static IPv6FirewallRuleData IPv6FirewallRuleData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, string startIPv6Address = null, string endIPv6Address = null) - { - return new IPv6FirewallRuleData(id, name, resourceType, startIPv6Address, endIPv6Address); - } - /// Initializes a new instance of EndpointCertificateData. /// The id. /// The name. @@ -3032,320 +2891,113 @@ public static ManagedServerDnsAliasData ManagedServerDnsAliasData(ResourceIdenti return new ManagedServerDnsAliasData(id, name, resourceType, systemData, azureDnsRecord, publicAzureDnsRecord); } - /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineData. + /// Initializes a new instance of ManagedDatabaseAdvancedThreatProtectionData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// The baseline set result. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentBaselineData SqlVulnerabilityAssessmentBaselineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary>> results = null) + /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + /// Specifies the UTC creation time of the policy. + /// A new instance for mocking. + public static ManagedDatabaseAdvancedThreatProtectionData ManagedDatabaseAdvancedThreatProtectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AdvancedThreatProtectionState? state = null, DateTimeOffset? createdOn = null) { - results ??= new Dictionary>>(); - - return new SqlVulnerabilityAssessmentBaselineData(id, name, resourceType, systemData, results); + return new ManagedDatabaseAdvancedThreatProtectionData(id, name, resourceType, systemData, state, createdOn); } - /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent. + /// Initializes a new instance of ManagedInstanceAdvancedThreatProtectionData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// The latest scan flag. - /// The rule baseline result list. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isLatestScan = null, IDictionary>> results = null) + /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + /// Specifies the UTC creation time of the policy. + /// A new instance for mocking. + public static ManagedInstanceAdvancedThreatProtectionData ManagedInstanceAdvancedThreatProtectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AdvancedThreatProtectionState? state = null, DateTimeOffset? createdOn = null) { - results ??= new Dictionary>>(); - - return new SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent(id, name, resourceType, systemData, isLatestScan, results); + return new ManagedInstanceAdvancedThreatProtectionData(id, name, resourceType, systemData, state, createdOn); } - /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineRuleData. + /// Initializes a new instance of SqlServerDatabaseReplicationLinkData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// The rule baseline result. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentBaselineRuleData SqlVulnerabilityAssessmentBaselineRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable> results = null) + /// Resource partner server. + /// Resource partner database. + /// Resource partner location. + /// Local replication role. + /// Partner replication role. + /// Replication mode. + /// Time at which the link was created. + /// Seeding completion percentage for the link. + /// Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + /// Whether the user is currently allowed to terminate the link. + /// Link type (GEO, NAMED, STANDBY). + /// A new instance for mocking. + public static SqlServerDatabaseReplicationLinkData SqlServerDatabaseReplicationLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string partnerServer = null, string partnerDatabase = null, AzureLocation? partnerLocation = null, SqlServerDatabaseReplicationRole? role = null, SqlServerDatabaseReplicationRole? partnerRole = null, string replicationMode = null, DateTimeOffset? startOn = null, int? percentComplete = null, ReplicationLinkState? replicationState = null, bool? isTerminationAllowed = null, ReplicationLinkType? linkType = null) { - results ??= new List>(); - - return new SqlVulnerabilityAssessmentBaselineRuleData(id, name, resourceType, systemData, results?.ToList()); + return new SqlServerDatabaseReplicationLinkData(id, name, resourceType, systemData, partnerServer, partnerDatabase, partnerLocation, role, partnerRole, replicationMode, startOn, percentComplete, replicationState, isTerminationAllowed, linkType); } - /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent. + /// Initializes a new instance of ManagedInstanceDtcData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// The latest scan flag. - /// The rule baseline result. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isLatestScan = null, IEnumerable> results = null) + /// Active status of managed instance DTC. + /// Security settings of managed instance DTC. + /// External dns suffix search list of managed instance DTC. + /// Host name dns suffix of managed instance DTC. + /// Provisioning state of managed instance DTC. + /// A new instance for mocking. + public static ManagedInstanceDtcData ManagedInstanceDtcData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? dtcEnabled = null, ManagedInstanceDtcSecuritySettings securitySettings = null, IEnumerable externalDnsSuffixSearchList = null, string dtcHostNameDnsSuffix = null, JobExecutionProvisioningState? provisioningState = null) { - results ??= new List>(); + externalDnsSuffixSearchList ??= new List(); - return new SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent(id, name, resourceType, systemData, isLatestScan, results?.ToList()); + return new ManagedInstanceDtcData(id, name, resourceType, systemData, dtcEnabled, securitySettings, externalDnsSuffixSearchList?.ToList(), dtcHostNameDnsSuffix, provisioningState); } - /// Initializes a new instance of SqlVulnerabilityAssessmentScanResultData. + /// Initializes a new instance of SqlSynapseLinkWorkspace. /// The id. /// The name. /// The resourceType. /// The systemData. - /// SQL Vulnerability Assessment rule Id. - /// SQL Vulnerability Assessment rule result status. - /// SQL Vulnerability Assessment error message. - /// SQL Vulnerability Assessment is the query results trimmed. - /// SQL Vulnerability Assessment query results that was run. - /// SQL Vulnerability Assessment the remediation details. - /// SQL Vulnerability Assessment rule result adjusted with baseline. - /// SQL Vulnerability Assessment rule metadata. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentScanResultData SqlVulnerabilityAssessmentScanResultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string ruleId = null, SqlVulnerabilityAssessmentRuleStatus? status = null, string errorMessage = null, bool? isTrimmed = null, IEnumerable> queryResults = null, SqlVulnerabilityAssessmentRemediation remediation = null, SqlVulnerabilityAssessmentBaselineAdjustedResult baselineAdjustedResult = null, SqlVulnerabilityAssessmentRuleMetadata ruleMetadata = null) + /// List of all synapselink workspaces. + /// A new instance for mocking. + public static SqlSynapseLinkWorkspace SqlSynapseLinkWorkspace(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable workspaces = null) { - queryResults ??= new List>(); + workspaces ??= new List(); - return new SqlVulnerabilityAssessmentScanResultData(id, name, resourceType, systemData, ruleId, status, errorMessage, isTrimmed, queryResults?.ToList(), remediation, baselineAdjustedResult, ruleMetadata); + return new SqlSynapseLinkWorkspace(id, name, resourceType, systemData, workspaces?.ToList()); } - /// Initializes a new instance of SqlVulnerabilityAssessmentRemediation. - /// SQL Vulnerability Assessment remediation description. - /// SQL Vulnerability Assessment remediation script. - /// SQL Vulnerability Assessment is remediation automated. - /// SQL Vulnerability Assessment optional link to remediate in Azure Portal. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentRemediation SqlVulnerabilityAssessmentRemediation(string description = null, IEnumerable scripts = null, bool? isAutomated = null, string portalLink = null) + /// Initializes a new instance of VirtualClusterData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Subnet resource ID for the virtual cluster. + /// Virtual cluster version. + /// List of resources in this virtual cluster. + /// A new instance for mocking. + public static VirtualClusterData VirtualClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier subnetId = null, string version = null, IEnumerable childResources = null) { - scripts ??= new List(); + tags ??= new Dictionary(); + childResources ??= new List(); - return new SqlVulnerabilityAssessmentRemediation(description, scripts?.ToList(), isAutomated, portalLink); + return new VirtualClusterData(id, name, resourceType, systemData, tags, location, subnetId, version, childResources?.ToList()); } - /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineAdjustedResult. - /// SQL Vulnerability Assessment baseline details. - /// SQL Vulnerability Assessment baseline status. - /// SQL Vulnerability Assessment results that are not in baseline. - /// SQL Vulnerability Assessment results that are in baseline. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentBaselineAdjustedResult SqlVulnerabilityAssessmentBaselineAdjustedResult(SqlVulnerabilityAssessmentBaselineDetails baseline = null, SqlVulnerabilityAssessmentRuleStatus? status = null, IEnumerable> resultsNotInBaseline = null, IEnumerable> resultsOnlyInBaseline = null) - { - resultsNotInBaseline ??= new List>(); - resultsOnlyInBaseline ??= new List>(); - - return new SqlVulnerabilityAssessmentBaselineAdjustedResult(baseline, status, resultsNotInBaseline?.ToList(), resultsOnlyInBaseline?.ToList()); - } - - /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineDetails. - /// SQL Vulnerability Assessment baseline expected results. - /// SQL Vulnerability Assessment baseline update time (UTC). - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentBaselineDetails SqlVulnerabilityAssessmentBaselineDetails(IEnumerable> expectedResults = null, DateTimeOffset? updatedOn = null) - { - expectedResults ??= new List>(); - - return new SqlVulnerabilityAssessmentBaselineDetails(expectedResults?.ToList(), updatedOn); - } - - /// Initializes a new instance of SqlVulnerabilityAssessmentRuleMetadata. - /// SQL Vulnerability Assessment rule Id. - /// SQL Vulnerability Assessment rule severity. - /// SQL Vulnerability Assessment rule category. - /// SQL Vulnerability Assessment rule type. - /// SQL Vulnerability Assessment rule title. - /// SQL Vulnerability Assessment rule description. - /// SQL Vulnerability Assessment rule rationale. - /// SQL Vulnerability Assessment rule query details. - /// SQL Vulnerability Assessment benchmark references. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentRuleMetadata SqlVulnerabilityAssessmentRuleMetadata(string ruleId = null, SqlVulnerabilityAssessmentRuleSeverity? severity = null, string category = null, SqlVulnerabilityAssessmentRuleType? ruleType = null, string title = null, string description = null, string rationale = null, SqlVulnerabilityAssessmentQueryCheck queryCheck = null, IEnumerable benchmarkReferences = null) - { - benchmarkReferences ??= new List(); - - return new SqlVulnerabilityAssessmentRuleMetadata(ruleId, severity, category, ruleType, title, description, rationale, queryCheck, benchmarkReferences?.ToList()); - } - - /// Initializes a new instance of SqlVulnerabilityAssessmentQueryCheck. - /// SQL Vulnerability Assessment rule query. - /// SQL Vulnerability Assessment query expected result. - /// SQL Vulnerability Assessment column names of query expected result. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentQueryCheck SqlVulnerabilityAssessmentQueryCheck(string query = null, IEnumerable> expectedResult = null, IEnumerable columnNames = null) - { - expectedResult ??= new List>(); - columnNames ??= new List(); - - return new SqlVulnerabilityAssessmentQueryCheck(query, expectedResult?.ToList(), columnNames?.ToList()); - } - - /// Initializes a new instance of SqlVulnerabilityAssessmentBenchmarkReference. - /// SQL Vulnerability Assessment benchmark name. - /// SQL Vulnerability Assessment benchmark reference. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentBenchmarkReference SqlVulnerabilityAssessmentBenchmarkReference(string benchmark = null, string reference = null) - { - return new SqlVulnerabilityAssessmentBenchmarkReference(benchmark, reference); - } - - /// Initializes a new instance of SqlVulnerabilityAssessmentScanData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The scan ID. - /// The scan trigger type. - /// The scan status. - /// The scan start time (UTC). - /// The scan end time (UTC). - /// The scan errors. - /// The server name. - /// The database name. - /// The SQL version. - /// The number of failed rules with high severity. - /// The number of failed rules with medium severity. - /// The number of failed rules with low severity. - /// The number of total passed rules. - /// The number of total failed rules. - /// The number of total rules assessed. - /// Baseline created for this database, and has one or more rules. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentScanData SqlVulnerabilityAssessmentScanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scanId = null, VulnerabilityAssessmentScanTriggerType? triggerType = null, VulnerabilityAssessmentScanState? state = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable errors = null, string server = null, string database = null, string sqlVersion = null, int? highSeverityFailedRulesCount = null, int? mediumSeverityFailedRulesCount = null, int? lowSeverityFailedRulesCount = null, int? totalPassedRulesCount = null, int? totalFailedRulesCount = null, int? totalRulesCount = null, bool? isBaselineApplied = null) - { - errors ??= new List(); - - return new SqlVulnerabilityAssessmentScanData(id, name, resourceType, systemData, scanId, triggerType, state, startOn, endOn, errors?.ToList(), server, database, sqlVersion, highSeverityFailedRulesCount, mediumSeverityFailedRulesCount, lowSeverityFailedRulesCount, totalPassedRulesCount, totalFailedRulesCount, totalRulesCount, isBaselineApplied); - } - - /// Initializes a new instance of SqlVulnerabilityAssessmentScanError. - /// The error code. - /// The error message. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentScanError SqlVulnerabilityAssessmentScanError(string code = null, string message = null) - { - return new SqlVulnerabilityAssessmentScanError(code, message); - } - - /// Initializes a new instance of SqlVulnerabilityAssessmentData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. - /// A new instance for mocking. - public static SqlVulnerabilityAssessmentData SqlVulnerabilityAssessmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SqlVulnerabilityAssessmentState? state = null) - { - return new SqlVulnerabilityAssessmentData(id, name, resourceType, systemData, state); - } - - /// Initializes a new instance of ManagedDatabaseAdvancedThreatProtectionData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. - /// Specifies the UTC creation time of the policy. - /// A new instance for mocking. - public static ManagedDatabaseAdvancedThreatProtectionData ManagedDatabaseAdvancedThreatProtectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AdvancedThreatProtectionState? state = null, DateTimeOffset? createdOn = null) - { - return new ManagedDatabaseAdvancedThreatProtectionData(id, name, resourceType, systemData, state, createdOn); - } - - /// Initializes a new instance of ManagedInstanceAdvancedThreatProtectionData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. - /// Specifies the UTC creation time of the policy. - /// A new instance for mocking. - public static ManagedInstanceAdvancedThreatProtectionData ManagedInstanceAdvancedThreatProtectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AdvancedThreatProtectionState? state = null, DateTimeOffset? createdOn = null) - { - return new ManagedInstanceAdvancedThreatProtectionData(id, name, resourceType, systemData, state, createdOn); - } - - /// Initializes a new instance of SqlServerDatabaseReplicationLinkData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Resource partner server. - /// Resource partner database. - /// Resource partner location. - /// Local replication role. - /// Partner replication role. - /// Replication mode. - /// Time at which the link was created. - /// Seeding completion percentage for the link. - /// Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). - /// Whether the user is currently allowed to terminate the link. - /// Link type (GEO, NAMED, STANDBY). - /// A new instance for mocking. - public static SqlServerDatabaseReplicationLinkData SqlServerDatabaseReplicationLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string partnerServer = null, string partnerDatabase = null, AzureLocation? partnerLocation = null, SqlServerDatabaseReplicationRole? role = null, SqlServerDatabaseReplicationRole? partnerRole = null, string replicationMode = null, DateTimeOffset? startOn = null, int? percentComplete = null, ReplicationLinkState? replicationState = null, bool? isTerminationAllowed = null, ReplicationLinkType? linkType = null) - { - return new SqlServerDatabaseReplicationLinkData(id, name, resourceType, systemData, partnerServer, partnerDatabase, partnerLocation, role, partnerRole, replicationMode, startOn, percentComplete, replicationState, isTerminationAllowed, linkType); - } - - /// Initializes a new instance of ManagedInstanceDtcData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Active status of managed instance DTC. - /// Security settings of managed instance DTC. - /// External dns suffix search list of managed instance DTC. - /// Host name dns suffix of managed instance DTC. - /// Provisioning state of managed instance DTC. - /// A new instance for mocking. - public static ManagedInstanceDtcData ManagedInstanceDtcData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? dtcEnabled = null, ManagedInstanceDtcSecuritySettings securitySettings = null, IEnumerable externalDnsSuffixSearchList = null, string dtcHostNameDnsSuffix = null, JobExecutionProvisioningState? provisioningState = null) - { - externalDnsSuffixSearchList ??= new List(); - - return new ManagedInstanceDtcData(id, name, resourceType, systemData, dtcEnabled, securitySettings, externalDnsSuffixSearchList?.ToList(), dtcHostNameDnsSuffix, provisioningState); - } - - /// Initializes a new instance of SqlSynapseLinkWorkspace. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// List of all synapselink workspaces. - /// A new instance for mocking. - public static SqlSynapseLinkWorkspace SqlSynapseLinkWorkspace(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable workspaces = null) - { - workspaces ??= new List(); - - return new SqlSynapseLinkWorkspace(id, name, resourceType, systemData, workspaces?.ToList()); - } - - /// Initializes a new instance of VirtualClusterData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Subnet resource ID for the virtual cluster. - /// Virtual cluster version. - /// List of resources in this virtual cluster. - /// A new instance for mocking. - public static VirtualClusterData VirtualClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier subnetId = null, string version = null, IEnumerable childResources = null) - { - tags ??= new Dictionary(); - childResources ??= new List(); - - return new VirtualClusterData(id, name, resourceType, systemData, tags, location, subnetId, version, childResources?.ToList()); - } - - /// Initializes a new instance of ManagedInstanceUpdateDnsServersOperationData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The status of the DNS refresh operation. - /// A new instance for mocking. - public static ManagedInstanceUpdateDnsServersOperationData ManagedInstanceUpdateDnsServersOperationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DnsRefreshConfigurationPropertiesStatus? status = null) + /// Initializes a new instance of ManagedInstanceUpdateDnsServersOperationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The status of the DNS refresh operation. + /// A new instance for mocking. + public static ManagedInstanceUpdateDnsServersOperationData ManagedInstanceUpdateDnsServersOperationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DnsRefreshConfigurationPropertiesStatus? status = null) { return new ManagedInstanceUpdateDnsServersOperationData(id, name, resourceType, systemData, status); } @@ -3439,190 +3091,15 @@ public static ManagedDatabaseRestoreDetailUnrestorableFileProperties ManagedData return new ManagedDatabaseRestoreDetailUnrestorableFileProperties(name); } - /// Initializes a new instance of ManagedDatabaseData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Collation of the managed database. - /// Status of the database. - /// Creation date of the database. - /// Earliest restore point in time for point in time restore. - /// Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. - /// Geo paired region. - /// Collation of the metadata catalog. - /// Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). - /// Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. - /// The resource identifier of the source database associated with create operation of this database. - /// The resource identifier of the cross-subscription source database associated with create operation of this database. - /// The restorable dropped database resource id to restore when creating this database. - /// The restorable cross-subscription dropped database resource id to restore when creating this database. - /// Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. - /// Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. - /// Instance Failover Group resource identifier that this managed database belongs to. - /// The resource identifier of the recoverable database associated with create operation of this database. - /// The name of the Long Term Retention backup to be used for restore of this managed database. - /// Whether to auto complete restore of this managed database. - /// Last backup file name for restore of this managed database. - /// Target managed instance id used in cross-subscription restore. - /// A new instance for mocking. - public static ManagedDatabaseData ManagedDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string collation = null, ManagedDatabaseStatus? status = null, DateTimeOffset? createdOn = null, DateTimeOffset? earliestRestorePoint = null, DateTimeOffset? restorePointInTime = null, AzureLocation? defaultSecondaryLocation = null, CatalogCollationType? catalogCollation = null, ManagedDatabaseCreateMode? createMode = null, Uri storageContainerUri = null, ResourceIdentifier sourceDatabaseId = null, string crossSubscriptionSourceDatabaseId = null, ResourceIdentifier restorableDroppedDatabaseId = null, string crossSubscriptionRestorableDroppedDatabaseId = null, string storageContainerIdentity = null, string storageContainerSasToken = null, ResourceIdentifier failoverGroupId = null, ResourceIdentifier recoverableDatabaseId = null, ResourceIdentifier longTermRetentionBackupResourceId = null, bool? allowAutoCompleteRestore = null, string lastBackupName = null, ResourceIdentifier crossSubscriptionTargetManagedInstanceId = null) - { - tags ??= new Dictionary(); - - return new ManagedDatabaseData(id, name, resourceType, systemData, tags, location, collation, status, createdOn, earliestRestorePoint, restorePointInTime, defaultSecondaryLocation, catalogCollation, createMode, storageContainerUri, sourceDatabaseId, crossSubscriptionSourceDatabaseId, restorableDroppedDatabaseId, crossSubscriptionRestorableDroppedDatabaseId, storageContainerIdentity, storageContainerSasToken, failoverGroupId, recoverableDatabaseId, longTermRetentionBackupResourceId, allowAutoCompleteRestore, lastBackupName, crossSubscriptionTargetManagedInstanceId); - } - - /// Initializes a new instance of ManagedInstanceData. + /// Initializes a new instance of SqlDatabaseData. /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// The Azure Active Directory identity of the managed instance. - /// Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH. - /// - /// - /// Specifies the mode of database creation. - /// - /// Default: Regular instance creation. - /// - /// Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. - /// - /// The fully qualified domain name of the managed instance. - /// Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). - /// The administrator login password (required for managed instance creation). - /// Subnet resource ID for the managed instance. - /// The state of the managed instance. - /// The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). - /// The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. - /// Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. - /// Collation of the managed instance. - /// The Dns Zone that the managed instance is in. - /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. - /// Whether or not the public data endpoint is enabled. - /// The resource identifier of the source managed instance associated with create operation of this instance. - /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. - /// Connection type used for connecting to the instance. - /// - /// Id of the timezone. Allowed values are timezones supported by Windows. - /// Windows keeps details on supported timezones, including the id, in registry under - /// KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - /// You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. - /// List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. - /// An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". - /// - /// The Id of the instance pool this managed server belongs to. - /// Specifies maintenance configuration id to apply to this managed instance. - /// List of private endpoint connections on a managed instance. - /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. - /// The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). - /// The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). - /// Whether or not the multi-az is enabled. - /// The resource id of a user assigned identity to be used by default. - /// A CMK URI of the key to use for encryption. - /// The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. - /// The managed instance's service principal. - /// A new instance for mocking. - public static ManagedInstanceData ManagedInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, SqlSku sku = null, ManagedInstancePropertiesProvisioningState? provisioningState = null, ManagedServerCreateMode? managedInstanceCreateMode = null, string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, ResourceIdentifier subnetId = null, string state = null, ManagedInstanceLicenseType? licenseType = null, int? vCores = null, int? storageSizeInGB = null, string collation = null, string dnsZone = null, string dnsZonePartner = null, bool? isPublicDataEndpointEnabled = null, ResourceIdentifier sourceManagedInstanceId = null, DateTimeOffset? restorePointInTime = null, ManagedInstanceProxyOverride? proxyOverride = null, string timezoneId = null, ResourceIdentifier instancePoolId = null, ResourceIdentifier maintenanceConfigurationId = null, IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, SqlBackupStorageRedundancy? currentBackupStorageRedundancy = null, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = null, bool? isZoneRedundant = null, ResourceIdentifier primaryUserAssignedIdentityId = null, Uri keyId = null, ManagedInstanceExternalAdministrator administrators = null, SqlServicePrincipal servicePrincipal = null) - { - tags ??= new Dictionary(); - privateEndpointConnections ??= new List(); - - return new ManagedInstanceData(id, name, resourceType, systemData, tags, location, identity, sku, provisioningState, managedInstanceCreateMode, fullyQualifiedDomainName, administratorLogin, administratorLoginPassword, subnetId, state, licenseType, vCores, storageSizeInGB, collation, dnsZone, dnsZonePartner, isPublicDataEndpointEnabled, sourceManagedInstanceId, restorePointInTime, proxyOverride, timezoneId, instancePoolId, maintenanceConfigurationId, privateEndpointConnections?.ToList(), minimalTlsVersion, currentBackupStorageRedundancy, requestedBackupStorageRedundancy, isZoneRedundant, primaryUserAssignedIdentityId, keyId, administrators, servicePrincipal); - } - - /// Initializes a new instance of ManagedInstancePecProperty. - /// Resource ID. - /// Private endpoint connection properties. - /// A new instance for mocking. - public static ManagedInstancePecProperty ManagedInstancePecProperty(ResourceIdentifier id = null, ManagedInstancePrivateEndpointConnectionProperties properties = null) - { - return new ManagedInstancePecProperty(id, properties); - } - - /// Initializes a new instance of SqlServicePrincipal. - /// The Azure Active Directory application object id. - /// The Azure Active Directory application client id. - /// The Azure Active Directory tenant id. - /// Service principal type. - /// A new instance for mocking. - public static SqlServicePrincipal SqlServicePrincipal(Guid? principalId = null, Guid? clientId = null, Guid? tenantId = null, SqlServicePrincipalType? principalType = null) - { - return new SqlServicePrincipal(principalId, clientId, tenantId, principalType); - } - - /// Initializes a new instance of SqlOutboundEnvironmentEndpoint. - /// The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. - /// The endpoints that the managed instance service communicates with in order to function correctly. - /// A new instance for mocking. - public static SqlOutboundEnvironmentEndpoint SqlOutboundEnvironmentEndpoint(string category = null, IEnumerable endpoints = null) - { - endpoints ??= new List(); - - return new SqlOutboundEnvironmentEndpoint(category, endpoints?.ToList()); - } - - /// Initializes a new instance of ManagedInstanceEndpointDependency. - /// The domain name of the dependency. - /// The IP Addresses and Ports used when connecting to DomainName. - /// A new instance for mocking. - public static ManagedInstanceEndpointDependency ManagedInstanceEndpointDependency(string domainName = null, IEnumerable endpointDetails = null) - { - endpointDetails ??= new List(); - - return new ManagedInstanceEndpointDependency(domainName, endpointDetails?.ToList()); - } - - /// Initializes a new instance of ManagedInstanceEndpointDetail. - /// The port an endpoint is connected to. - /// A new instance for mocking. - public static ManagedInstanceEndpointDetail ManagedInstanceEndpointDetail(int? port = null) - { - return new ManagedInstanceEndpointDetail(port); - } - - /// Initializes a new instance of TopQueries. - /// Requested number of top queries. - /// Aggregation function used to calculate query metrics. - /// Metric used to rank queries. - /// Interval type (length). - /// The start time for the metric (ISO-8601 format). - /// The end time for the metric (ISO-8601 format). - /// List of top resource consuming queries with appropriate metric data. - /// A new instance for mocking. - public static TopQueries TopQueries(int? numberOfQueries = null, string aggregationFunction = null, string observationMetric = null, QueryTimeGrainType? intervalType = null, string startTime = null, string endTime = null, IEnumerable queries = null) - { - queries ??= new List(); - - return new TopQueries(numberOfQueries, aggregationFunction, observationMetric, intervalType, startTime, endTime, queries?.ToList()); - } - - /// Initializes a new instance of ManagedInstanceServerConfigurationOptionData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Value of the server configuration option. - /// Provisioning state of server configuration option. - /// A new instance for mocking. - public static ManagedInstanceServerConfigurationOptionData ManagedInstanceServerConfigurationOptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? serverConfigurationOptionValue = null, JobExecutionProvisioningState? provisioningState = null) - { - return new ManagedInstanceServerConfigurationOptionData(id, name, resourceType, systemData, serverConfigurationOptionValue, provisioningState); - } - - /// Initializes a new instance of SqlDatabaseData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// The database SKU. + /// + /// The database SKU. /// /// The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: /// @@ -3752,6 +3229,17 @@ public static DatabaseIdentity DatabaseIdentity(DatabaseIdentityType? identityTy return new DatabaseIdentity(identityType, tenantId, userAssignedIdentities); } + /// Initializes a new instance of SqlDatabaseKey. + /// The database key type. Only supported value is 'AzureKeyVault'. + /// Thumbprint of the database key. + /// The database key creation date. + /// Subregion of the server key. + /// A new instance for mocking. + public static SqlDatabaseKey SqlDatabaseKey(SqlDatabaseKeyType? keyType = null, string thumbprint = null, DateTimeOffset? createdOn = null, string subregion = null) + { + return new SqlDatabaseKey(keyType, thumbprint, createdOn, subregion); + } + /// Initializes a new instance of ImportExportOperationResult. /// The id. /// The name. @@ -3785,92 +3273,347 @@ public static PrivateEndpointConnectionRequestStatus PrivateEndpointConnectionRe return new PrivateEndpointConnectionRequestStatus(privateLinkServiceId, privateEndpointConnectionName, status); } - /// Initializes a new instance of ManagedLedgerDigestUploadData. + /// Initializes a new instance of ElasticPoolData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. - /// Specifies the state of ledger digest upload. - /// A new instance for mocking. - public static ManagedLedgerDigestUploadData ManagedLedgerDigestUploadData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string digestStorageEndpoint = null, ManagedLedgerDigestUploadsState? state = null) + /// The tags. + /// The location. + /// + /// The elastic pool SKU. + /// + /// The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: + /// + /// ```azurecli + /// az sql elastic-pool list-editions -l <location> -o table + /// ```` + /// + /// + /// Kind of elastic pool. This is metadata used for the Azure portal experience. + /// The state of the elastic pool. + /// The creation date of the elastic pool (ISO8601 format). + /// The storage limit for the database elastic pool in bytes. + /// Minimal capacity that serverless pool will not shrink below, if not paused. + /// The per database settings for the elastic pool. + /// Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. + /// The license type to apply for this elastic pool. + /// Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. + /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. + /// Type of enclave requested on the elastic pool. + /// Specifies the availability zone the pool's primary replica is pinned to. + /// A new instance for mocking. + public static ElasticPoolData ElasticPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SqlSku sku = null, string kind = null, ElasticPoolState? state = null, DateTimeOffset? createdOn = null, long? maxSizeBytes = null, double? minCapacity = null, ElasticPoolPerDatabaseSettings perDatabaseSettings = null, bool? isZoneRedundant = null, ElasticPoolLicenseType? licenseType = null, ResourceIdentifier maintenanceConfigurationId = null, int? highAvailabilityReplicaCount = null, SqlAlwaysEncryptedEnclaveType? preferredEnclaveType = null, SqlAvailabilityZoneType? availabilityZone = null) { - return new ManagedLedgerDigestUploadData(id, name, resourceType, systemData, digestStorageEndpoint, state); - } + tags ??= new Dictionary(); - /// Initializes a new instance of SqlNameAvailabilityResponse. - /// The name whose availability was checked. - /// True if the name is available, otherwise false. - /// The reason code explaining why the name is unavailable. Will be undefined if the name is available. - /// A message explaining why the name is unavailable. Will be undefined if the name is available. - /// A new instance for mocking. - public static SqlNameAvailabilityResponse SqlNameAvailabilityResponse(string name = null, bool? isAvailable = null, SqlNameUnavailableReason? reason = null, string message = null) - { - return new SqlNameAvailabilityResponse(name, isAvailable, reason, message); + return new ElasticPoolData(id, name, resourceType, systemData, tags, location, sku, kind, state, createdOn, maxSizeBytes, minCapacity, perDatabaseSettings, isZoneRedundant, licenseType, maintenanceConfigurationId, highAvailabilityReplicaCount, preferredEnclaveType, availabilityZone); } - /// Initializes a new instance of SqlServerData. + /// Initializes a new instance of ManagedDatabaseData. /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// The Azure Active Directory identity of the server. - /// Kind of sql server. This is metadata used for the Azure portal experience. - /// Administrator username for the server. Once created it cannot be changed. - /// The administrator login password (required for server creation). - /// The version of the server. - /// The state of the server. - /// The fully qualified domain name of the server. - /// List of private endpoint connections on a server. - /// Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'. - /// Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'. - /// Whether or not existing server has a workspace created and if it allows connection from workspace. - /// The resource id of a user assigned identity to be used by default. - /// The Client id used for cross tenant CMK scenario. - /// A CMK URI of the key to use for encryption. - /// The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. - /// Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. - /// Status of external governance. - /// A new instance for mocking. - public static SqlServerData SqlServerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, string administratorLogin = null, string administratorLoginPassword = null, string version = null, string state = null, string fullyQualifiedDomainName = null, IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, ServerNetworkAccessFlag? publicNetworkAccess = null, ServerWorkspaceFeature? workspaceFeature = null, ResourceIdentifier primaryUserAssignedIdentityId = null, Guid? federatedClientId = null, Uri keyId = null, ServerExternalAdministrator administrators = null, ServerNetworkAccessFlag? restrictOutboundNetworkAccess = null, ExternalGovernanceStatus? externalGovernanceStatus = null) + /// Collation of the managed database. + /// Status of the database. + /// Creation date of the database. + /// Earliest restore point in time for point in time restore. + /// Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + /// Geo paired region. + /// Collation of the metadata catalog. + /// Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). + /// Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. + /// The resource identifier of the source database associated with create operation of this database. + /// The resource identifier of the cross-subscription source database associated with create operation of this database. + /// The restorable dropped database resource id to restore when creating this database. + /// The restorable cross-subscription dropped database resource id to restore when creating this database. + /// Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. + /// Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. + /// Instance Failover Group resource identifier that this managed database belongs to. + /// The resource identifier of the recoverable database associated with create operation of this database. + /// The name of the Long Term Retention backup to be used for restore of this managed database. + /// Whether to auto complete restore of this managed database. + /// Last backup file name for restore of this managed database. + /// Target managed instance id used in cross-subscription restore. + /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + /// A new instance for mocking. + public static ManagedDatabaseData ManagedDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string collation = null, ManagedDatabaseStatus? status = null, DateTimeOffset? createdOn = null, DateTimeOffset? earliestRestorePoint = null, DateTimeOffset? restorePointInTime = null, AzureLocation? defaultSecondaryLocation = null, CatalogCollationType? catalogCollation = null, ManagedDatabaseCreateMode? createMode = null, Uri storageContainerUri = null, ResourceIdentifier sourceDatabaseId = null, ResourceIdentifier crossSubscriptionSourceDatabaseId = null, ResourceIdentifier restorableDroppedDatabaseId = null, ResourceIdentifier crossSubscriptionRestorableDroppedDatabaseId = null, string storageContainerIdentity = null, string storageContainerSasToken = null, ResourceIdentifier failoverGroupId = null, ResourceIdentifier recoverableDatabaseId = null, ResourceIdentifier longTermRetentionBackupResourceId = null, bool? allowAutoCompleteRestore = null, string lastBackupName = null, ResourceIdentifier crossSubscriptionTargetManagedInstanceId = null, bool? isLedgerOn = null) { tags ??= new Dictionary(); - privateEndpointConnections ??= new List(); - - return new SqlServerData(id, name, resourceType, systemData, tags, location, identity, kind, administratorLogin, administratorLoginPassword, version, state, fullyQualifiedDomainName, privateEndpointConnections?.ToList(), minimalTlsVersion, publicNetworkAccess, workspaceFeature, primaryUserAssignedIdentityId, federatedClientId, keyId, administrators, restrictOutboundNetworkAccess, externalGovernanceStatus); - } - - /// Initializes a new instance of SqlServerPrivateEndpointConnection. - /// Resource ID. - /// Private endpoint connection properties. - /// A new instance for mocking. - public static SqlServerPrivateEndpointConnection SqlServerPrivateEndpointConnection(ResourceIdentifier id = null, ServerPrivateEndpointConnectionProperties properties = null) - { - return new SqlServerPrivateEndpointConnection(id, properties); - } - - /// Initializes a new instance of ServerPrivateEndpointConnectionProperties. - /// Private endpoint which the connection belongs to. - /// Group IDs. - /// Connection state of the private endpoint connection. - /// State of the private endpoint connection. - /// A new instance for mocking. - public static ServerPrivateEndpointConnectionProperties ServerPrivateEndpointConnectionProperties(ResourceIdentifier privateEndpointId = null, IEnumerable groupIds = null, SqlPrivateLinkServiceConnectionStateProperty connectionState = null, SqlPrivateEndpointProvisioningState? provisioningState = null) - { - groupIds ??= new List(); - return new ServerPrivateEndpointConnectionProperties(privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, groupIds?.ToList(), connectionState, provisioningState); + return new ManagedDatabaseData(id, name, resourceType, systemData, tags, location, collation, status, createdOn, earliestRestorePoint, restorePointInTime, defaultSecondaryLocation, catalogCollation, createMode, storageContainerUri, sourceDatabaseId, crossSubscriptionSourceDatabaseId, restorableDroppedDatabaseId, crossSubscriptionRestorableDroppedDatabaseId, storageContainerIdentity, storageContainerSasToken, failoverGroupId, recoverableDatabaseId, longTermRetentionBackupResourceId, allowAutoCompleteRestore, lastBackupName, crossSubscriptionTargetManagedInstanceId, isLedgerOn); } - /// Initializes a new instance of RefreshExternalGovernanceStatusOperationResult. + /// Initializes a new instance of ManagedInstanceData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// Request Id. - /// Request type. + /// The tags. + /// The location. + /// The Azure Active Directory identity of the managed instance. + /// Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH. + /// + /// + /// Specifies the mode of database creation. + /// + /// Default: Regular instance creation. + /// + /// Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. + /// + /// The fully qualified domain name of the managed instance. + /// Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). + /// The administrator login password (required for managed instance creation). + /// Subnet resource ID for the managed instance. + /// The state of the managed instance. + /// The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). + /// The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. + /// Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. + /// Collation of the managed instance. + /// The Dns Zone that the managed instance is in. + /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. + /// Whether or not the public data endpoint is enabled. + /// The resource identifier of the source managed instance associated with create operation of this instance. + /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + /// Connection type used for connecting to the instance. + /// + /// Id of the timezone. Allowed values are timezones supported by Windows. + /// Windows keeps details on supported timezones, including the id, in registry under + /// KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + /// You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. + /// List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + /// An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + /// + /// The Id of the instance pool this managed server belongs to. + /// Specifies maintenance configuration id to apply to this managed instance. + /// List of private endpoint connections on a managed instance. + /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. + /// The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). + /// The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). + /// Whether or not the multi-az is enabled. + /// The resource id of a user assigned identity to be used by default. + /// A CMK URI of the key to use for encryption. + /// The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. + /// The managed instance's service principal. + /// A new instance for mocking. + public static ManagedInstanceData ManagedInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, SqlSku sku = null, ManagedInstancePropertiesProvisioningState? provisioningState = null, ManagedServerCreateMode? managedInstanceCreateMode = null, string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, ResourceIdentifier subnetId = null, string state = null, ManagedInstanceLicenseType? licenseType = null, int? vCores = null, int? storageSizeInGB = null, string collation = null, string dnsZone = null, ResourceIdentifier dnsZonePartner = null, bool? isPublicDataEndpointEnabled = null, ResourceIdentifier sourceManagedInstanceId = null, DateTimeOffset? restorePointInTime = null, ManagedInstanceProxyOverride? proxyOverride = null, string timezoneId = null, ResourceIdentifier instancePoolId = null, ResourceIdentifier maintenanceConfigurationId = null, IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, SqlBackupStorageRedundancy? currentBackupStorageRedundancy = null, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = null, bool? isZoneRedundant = null, ResourceIdentifier primaryUserAssignedIdentityId = null, Uri keyId = null, ManagedInstanceExternalAdministrator administrators = null, SqlServicePrincipal servicePrincipal = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new ManagedInstanceData(id, name, resourceType, systemData, tags, location, identity, sku, provisioningState, managedInstanceCreateMode, fullyQualifiedDomainName, administratorLogin, administratorLoginPassword, subnetId, state, licenseType, vCores, storageSizeInGB, collation, dnsZone, dnsZonePartner, isPublicDataEndpointEnabled, sourceManagedInstanceId, restorePointInTime, proxyOverride, timezoneId, instancePoolId, maintenanceConfigurationId, privateEndpointConnections?.ToList(), minimalTlsVersion, currentBackupStorageRedundancy, requestedBackupStorageRedundancy, isZoneRedundant, primaryUserAssignedIdentityId, keyId, administrators, servicePrincipal); + } + + /// Initializes a new instance of ManagedInstancePecProperty. + /// Resource ID. + /// Private endpoint connection properties. + /// A new instance for mocking. + public static ManagedInstancePecProperty ManagedInstancePecProperty(ResourceIdentifier id = null, ManagedInstancePrivateEndpointConnectionProperties properties = null) + { + return new ManagedInstancePecProperty(id, properties); + } + + /// Initializes a new instance of SqlServicePrincipal. + /// The Azure Active Directory application object id. + /// The Azure Active Directory application client id. + /// The Azure Active Directory tenant id. + /// Service principal type. + /// A new instance for mocking. + public static SqlServicePrincipal SqlServicePrincipal(Guid? principalId = null, Guid? clientId = null, Guid? tenantId = null, SqlServicePrincipalType? principalType = null) + { + return new SqlServicePrincipal(principalId, clientId, tenantId, principalType); + } + + /// Initializes a new instance of SqlOutboundEnvironmentEndpoint. + /// The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. + /// The endpoints that the managed instance service communicates with in order to function correctly. + /// A new instance for mocking. + public static SqlOutboundEnvironmentEndpoint SqlOutboundEnvironmentEndpoint(string category = null, IEnumerable endpoints = null) + { + endpoints ??= new List(); + + return new SqlOutboundEnvironmentEndpoint(category, endpoints?.ToList()); + } + + /// Initializes a new instance of ManagedInstanceEndpointDependency. + /// The domain name of the dependency. + /// The IP Addresses and Ports used when connecting to DomainName. + /// A new instance for mocking. + public static ManagedInstanceEndpointDependency ManagedInstanceEndpointDependency(string domainName = null, IEnumerable endpointDetails = null) + { + endpointDetails ??= new List(); + + return new ManagedInstanceEndpointDependency(domainName, endpointDetails?.ToList()); + } + + /// Initializes a new instance of ManagedInstanceEndpointDetail. + /// The port an endpoint is connected to. + /// A new instance for mocking. + public static ManagedInstanceEndpointDetail ManagedInstanceEndpointDetail(int? port = null) + { + return new ManagedInstanceEndpointDetail(port); + } + + /// Initializes a new instance of TopQueries. + /// Requested number of top queries. + /// Aggregation function used to calculate query metrics. + /// Metric used to rank queries. + /// Interval type (length). + /// The start time for the metric (ISO-8601 format). + /// The end time for the metric (ISO-8601 format). + /// List of top resource consuming queries with appropriate metric data. + /// A new instance for mocking. + public static TopQueries TopQueries(int? numberOfQueries = null, string aggregationFunction = null, string observationMetric = null, QueryTimeGrainType? intervalType = null, string startTime = null, string endTime = null, IEnumerable queries = null) + { + queries ??= new List(); + + return new TopQueries(numberOfQueries, aggregationFunction, observationMetric, intervalType, startTime, endTime, queries?.ToList()); + } + + /// Initializes a new instance of ManagedLedgerDigestUploadData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. + /// Specifies the state of ledger digest upload. + /// A new instance for mocking. + public static ManagedLedgerDigestUploadData ManagedLedgerDigestUploadData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string digestStorageEndpoint = null, ManagedLedgerDigestUploadsState? state = null) + { + return new ManagedLedgerDigestUploadData(id, name, resourceType, systemData, digestStorageEndpoint, state); + } + + /// Initializes a new instance of RecoverableDatabaseData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The edition of the database. + /// The service level objective name of the database. + /// The elastic pool name of the database. + /// The last available backup date. + /// The resource ids of the user assigned identities to use. + /// A new instance for mocking. + public static RecoverableDatabaseData RecoverableDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string edition = null, string serviceLevelObjective = null, string elasticPoolName = null, DateTimeOffset? lastAvailableBackupOn = null, IDictionary keys = null) + { + keys ??= new Dictionary(); + + return new RecoverableDatabaseData(id, name, resourceType, systemData, edition, serviceLevelObjective, elasticPoolName, lastAvailableBackupOn, keys); + } + + /// Initializes a new instance of RestorableDroppedDatabaseData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The name and tier of the SKU. + /// The name of the database. + /// The max size of the database expressed in bytes. + /// The creation date of the database (ISO8601 format). + /// The deletion date of the database (ISO8601 format). + /// The earliest restore date of the database (ISO8601 format). + /// The storage account type used to store backups for this database. + /// The resource ids of the user assigned identities to use. + /// A new instance for mocking. + public static RestorableDroppedDatabaseData RestorableDroppedDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SqlSku sku = null, string databaseName = null, long? maxSizeBytes = null, DateTimeOffset? createdOn = null, DateTimeOffset? deletedOn = null, DateTimeOffset? earliestRestoreOn = null, SqlBackupStorageRedundancy? backupStorageRedundancy = null, IDictionary keys = null) + { + tags ??= new Dictionary(); + keys ??= new Dictionary(); + + return new RestorableDroppedDatabaseData(id, name, resourceType, systemData, tags, location, sku, databaseName, maxSizeBytes, createdOn, deletedOn, earliestRestoreOn, backupStorageRedundancy, keys); + } + + /// Initializes a new instance of ManagedInstanceServerConfigurationOptionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Value of the server configuration option. + /// Provisioning state of server configuration option. + /// A new instance for mocking. + public static ManagedInstanceServerConfigurationOptionData ManagedInstanceServerConfigurationOptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? serverConfigurationOptionValue = null, JobExecutionProvisioningState? provisioningState = null) + { + return new ManagedInstanceServerConfigurationOptionData(id, name, resourceType, systemData, serverConfigurationOptionValue, provisioningState); + } + + /// Initializes a new instance of SqlNameAvailabilityResponse. + /// The name whose availability was checked. + /// True if the name is available, otherwise false. + /// The reason code explaining why the name is unavailable. Will be undefined if the name is available. + /// A message explaining why the name is unavailable. Will be undefined if the name is available. + /// A new instance for mocking. + public static SqlNameAvailabilityResponse SqlNameAvailabilityResponse(string name = null, bool? isAvailable = null, SqlNameUnavailableReason? reason = null, string message = null) + { + return new SqlNameAvailabilityResponse(name, isAvailable, reason, message); + } + + /// Initializes a new instance of SqlServerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The Azure Active Directory identity of the server. + /// Kind of sql server. This is metadata used for the Azure portal experience. + /// Administrator username for the server. Once created it cannot be changed. + /// The administrator login password (required for server creation). + /// The version of the server. + /// The state of the server. + /// The fully qualified domain name of the server. + /// List of private endpoint connections on a server. + /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. + /// Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'. + /// Whether or not existing server has a workspace created and if it allows connection from workspace. + /// The resource id of a user assigned identity to be used by default. + /// The Client id used for cross tenant CMK scenario. + /// A CMK URI of the key to use for encryption. + /// The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. + /// Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + /// Status of external governance. + /// A new instance for mocking. + public static SqlServerData SqlServerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, string administratorLogin = null, string administratorLoginPassword = null, string version = null, string state = null, string fullyQualifiedDomainName = null, IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, ServerNetworkAccessFlag? publicNetworkAccess = null, ServerWorkspaceFeature? workspaceFeature = null, ResourceIdentifier primaryUserAssignedIdentityId = null, Guid? federatedClientId = null, Uri keyId = null, ServerExternalAdministrator administrators = null, ServerNetworkAccessFlag? restrictOutboundNetworkAccess = null, ExternalGovernanceStatus? externalGovernanceStatus = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new SqlServerData(id, name, resourceType, systemData, tags, location, identity, kind, administratorLogin, administratorLoginPassword, version, state, fullyQualifiedDomainName, privateEndpointConnections?.ToList(), minimalTlsVersion, publicNetworkAccess, workspaceFeature, primaryUserAssignedIdentityId, federatedClientId, keyId, administrators, restrictOutboundNetworkAccess, externalGovernanceStatus); + } + + /// Initializes a new instance of SqlServerPrivateEndpointConnection. + /// Resource ID. + /// Private endpoint connection properties. + /// A new instance for mocking. + public static SqlServerPrivateEndpointConnection SqlServerPrivateEndpointConnection(ResourceIdentifier id = null, ServerPrivateEndpointConnectionProperties properties = null) + { + return new SqlServerPrivateEndpointConnection(id, properties); + } + + /// Initializes a new instance of ServerPrivateEndpointConnectionProperties. + /// Private endpoint which the connection belongs to. + /// Group IDs. + /// Connection state of the private endpoint connection. + /// State of the private endpoint connection. + /// A new instance for mocking. + public static ServerPrivateEndpointConnectionProperties ServerPrivateEndpointConnectionProperties(ResourceIdentifier privateEndpointId = null, IEnumerable groupIds = null, SqlPrivateLinkServiceConnectionStateProperty connectionState = null, SqlPrivateEndpointProvisioningState? provisioningState = null) + { + groupIds ??= new List(); + + return new ServerPrivateEndpointConnectionProperties(privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, groupIds?.ToList(), connectionState, provisioningState); + } + + /// Initializes a new instance of RefreshExternalGovernanceStatusOperationResult. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Request Id. + /// Request type. /// Queued time. /// Server name. /// Operation status. @@ -3878,25 +3621,290 @@ public static ServerPrivateEndpointConnectionProperties ServerPrivateEndpointCon /// A new instance for mocking. public static RefreshExternalGovernanceStatusOperationResult RefreshExternalGovernanceStatusOperationResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? requestId = null, string requestType = null, string queuedTime = null, string serverName = null, string status = null, string errorMessage = null) { - return new RefreshExternalGovernanceStatusOperationResult(id, name, resourceType, systemData, requestId, requestType, queuedTime, serverName, status, errorMessage); + return new RefreshExternalGovernanceStatusOperationResult(id, name, resourceType, systemData, requestId, requestType, queuedTime, serverName, status, errorMessage); + } + + /// Initializes a new instance of ManagedInstanceStartStopScheduleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The description of the schedule. + /// The time zone of the schedule. + /// Schedule list. + /// Next action to be executed (Start or Stop). + /// Timestamp when the next action will be executed in the corresponding schedule time zone. + /// A new instance for mocking. + public static ManagedInstanceStartStopScheduleData ManagedInstanceStartStopScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string timeZoneId = null, IEnumerable scheduleList = null, string nextRunAction = null, string nextExecutionTime = null) + { + scheduleList ??= new List(); + + return new ManagedInstanceStartStopScheduleData(id, name, resourceType, systemData, description, timeZoneId, scheduleList?.ToList(), nextRunAction, nextExecutionTime); + } + + /// Initializes a new instance of LogicalDatabaseTransparentDataEncryptionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Specifies the state of the transparent data encryption. + /// A new instance for mocking. + public static LogicalDatabaseTransparentDataEncryptionData LogicalDatabaseTransparentDataEncryptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, TransparentDataEncryptionState? state = null) + { + return new LogicalDatabaseTransparentDataEncryptionData(id, name, resourceType, systemData, state); } - /// Initializes a new instance of ManagedInstanceStartStopScheduleData. + /// Initializes a new instance of FailoverGroupData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// The description of the schedule. - /// The time zone of the schedule. - /// Schedule list. - /// Next action to be executed (Start or Stop). - /// Timestamp when the next action will be executed in the corresponding schedule time zone. - /// A new instance for mocking. - public static ManagedInstanceStartStopScheduleData ManagedInstanceStartStopScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string timeZoneId = null, IEnumerable scheduleList = null, string nextRunAction = null, string nextExecutionTime = null) + /// Resource location. + /// Resource tags. + /// Read-write endpoint of the failover group instance. + /// Read-only endpoint of the failover group instance. + /// Local replication role of the failover group instance. + /// Replication state of the failover group instance. + /// List of partner server information for the failover group. + /// List of databases in the failover group. + /// A new instance for mocking. + public static FailoverGroupData FailoverGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, IDictionary tags = null, FailoverGroupReadWriteEndpoint readWriteEndpoint = null, ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = null, FailoverGroupReplicationRole? replicationRole = null, string replicationState = null, IEnumerable partnerServers = null, IEnumerable databases = null) { - scheduleList ??= new List(); + tags ??= new Dictionary(); + partnerServers ??= new List(); + databases ??= new List(); - return new ManagedInstanceStartStopScheduleData(id, name, resourceType, systemData, description, timeZoneId, scheduleList?.ToList(), nextRunAction, nextExecutionTime); + return new FailoverGroupData(id, name, resourceType, systemData, location, tags, readWriteEndpoint, readOnlyEndpointFailoverPolicy != null ? new FailoverGroupReadOnlyEndpoint(readOnlyEndpointFailoverPolicy) : null, replicationRole, replicationState, partnerServers?.ToList(), databases?.ToList()); + } + + /// Initializes a new instance of PartnerServerInfo. + /// Resource identifier of the partner server. + /// Geo location of the partner server. + /// Replication role of the partner server. + /// A new instance for mocking. + public static PartnerServerInfo PartnerServerInfo(ResourceIdentifier id = null, AzureLocation? location = null, FailoverGroupReplicationRole? replicationRole = null) + { + return new PartnerServerInfo(id, location, replicationRole); + } + + /// Initializes a new instance of IPv6FirewallRuleData. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The start IP address of the firewall rule. Must be IPv6 format. + /// The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpv6Address. + /// A new instance for mocking. + public static IPv6FirewallRuleData IPv6FirewallRuleData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, string startIPv6Address = null, string endIPv6Address = null) + { + return new IPv6FirewallRuleData(id, name, resourceType, startIPv6Address, endIPv6Address); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The baseline set result. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentBaselineData SqlVulnerabilityAssessmentBaselineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary>> results = null) + { + results ??= new Dictionary>>(); + + return new SqlVulnerabilityAssessmentBaselineData(id, name, resourceType, systemData, results); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The latest scan flag. + /// The rule baseline result list. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isLatestScan = null, IDictionary>> results = null) + { + results ??= new Dictionary>>(); + + return new SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent(id, name, resourceType, systemData, isLatestScan, results); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The rule baseline result. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentBaselineRuleData SqlVulnerabilityAssessmentBaselineRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable> results = null) + { + results ??= new List>(); + + return new SqlVulnerabilityAssessmentBaselineRuleData(id, name, resourceType, systemData, results?.ToList()); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The latest scan flag. + /// The rule baseline result. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isLatestScan = null, IEnumerable> results = null) + { + results ??= new List>(); + + return new SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent(id, name, resourceType, systemData, isLatestScan, results?.ToList()); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentScanResultData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// SQL Vulnerability Assessment rule Id. + /// SQL Vulnerability Assessment rule result status. + /// SQL Vulnerability Assessment error message. + /// SQL Vulnerability Assessment is the query results trimmed. + /// SQL Vulnerability Assessment query results that was run. + /// SQL Vulnerability Assessment the remediation details. + /// SQL Vulnerability Assessment rule result adjusted with baseline. + /// SQL Vulnerability Assessment rule metadata. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentScanResultData SqlVulnerabilityAssessmentScanResultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string ruleId = null, SqlVulnerabilityAssessmentRuleStatus? status = null, string errorMessage = null, bool? isTrimmed = null, IEnumerable> queryResults = null, SqlVulnerabilityAssessmentRemediation remediation = null, SqlVulnerabilityAssessmentBaselineAdjustedResult baselineAdjustedResult = null, SqlVulnerabilityAssessmentRuleMetadata ruleMetadata = null) + { + queryResults ??= new List>(); + + return new SqlVulnerabilityAssessmentScanResultData(id, name, resourceType, systemData, ruleId, status, errorMessage, isTrimmed, queryResults?.ToList(), remediation, baselineAdjustedResult, ruleMetadata); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentRemediation. + /// SQL Vulnerability Assessment remediation description. + /// SQL Vulnerability Assessment remediation script. + /// SQL Vulnerability Assessment is remediation automated. + /// SQL Vulnerability Assessment optional link to remediate in Azure Portal. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentRemediation SqlVulnerabilityAssessmentRemediation(string description = null, IEnumerable scripts = null, bool? isAutomated = null, string portalLink = null) + { + scripts ??= new List(); + + return new SqlVulnerabilityAssessmentRemediation(description, scripts?.ToList(), isAutomated, portalLink); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineAdjustedResult. + /// SQL Vulnerability Assessment baseline details. + /// SQL Vulnerability Assessment baseline status. + /// SQL Vulnerability Assessment results that are not in baseline. + /// SQL Vulnerability Assessment results that are in baseline. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentBaselineAdjustedResult SqlVulnerabilityAssessmentBaselineAdjustedResult(SqlVulnerabilityAssessmentBaselineDetails baseline = null, SqlVulnerabilityAssessmentRuleStatus? status = null, IEnumerable> resultsNotInBaseline = null, IEnumerable> resultsOnlyInBaseline = null) + { + resultsNotInBaseline ??= new List>(); + resultsOnlyInBaseline ??= new List>(); + + return new SqlVulnerabilityAssessmentBaselineAdjustedResult(baseline, status, resultsNotInBaseline?.ToList(), resultsOnlyInBaseline?.ToList()); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentBaselineDetails. + /// SQL Vulnerability Assessment baseline expected results. + /// SQL Vulnerability Assessment baseline update time (UTC). + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentBaselineDetails SqlVulnerabilityAssessmentBaselineDetails(IEnumerable> expectedResults = null, DateTimeOffset? updatedOn = null) + { + expectedResults ??= new List>(); + + return new SqlVulnerabilityAssessmentBaselineDetails(expectedResults?.ToList(), updatedOn); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentRuleMetadata. + /// SQL Vulnerability Assessment rule Id. + /// SQL Vulnerability Assessment rule severity. + /// SQL Vulnerability Assessment rule category. + /// SQL Vulnerability Assessment rule type. + /// SQL Vulnerability Assessment rule title. + /// SQL Vulnerability Assessment rule description. + /// SQL Vulnerability Assessment rule rationale. + /// SQL Vulnerability Assessment rule query details. + /// SQL Vulnerability Assessment benchmark references. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentRuleMetadata SqlVulnerabilityAssessmentRuleMetadata(string ruleId = null, SqlVulnerabilityAssessmentRuleSeverity? severity = null, string category = null, SqlVulnerabilityAssessmentRuleType? ruleType = null, string title = null, string description = null, string rationale = null, SqlVulnerabilityAssessmentQueryCheck queryCheck = null, IEnumerable benchmarkReferences = null) + { + benchmarkReferences ??= new List(); + + return new SqlVulnerabilityAssessmentRuleMetadata(ruleId, severity, category, ruleType, title, description, rationale, queryCheck, benchmarkReferences?.ToList()); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentQueryCheck. + /// SQL Vulnerability Assessment rule query. + /// SQL Vulnerability Assessment query expected result. + /// SQL Vulnerability Assessment column names of query expected result. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentQueryCheck SqlVulnerabilityAssessmentQueryCheck(string query = null, IEnumerable> expectedResult = null, IEnumerable columnNames = null) + { + expectedResult ??= new List>(); + columnNames ??= new List(); + + return new SqlVulnerabilityAssessmentQueryCheck(query, expectedResult?.ToList(), columnNames?.ToList()); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentBenchmarkReference. + /// SQL Vulnerability Assessment benchmark name. + /// SQL Vulnerability Assessment benchmark reference. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentBenchmarkReference SqlVulnerabilityAssessmentBenchmarkReference(string benchmark = null, string reference = null) + { + return new SqlVulnerabilityAssessmentBenchmarkReference(benchmark, reference); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentScanData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The scan ID. + /// The scan trigger type. + /// The scan status. + /// The scan start time (UTC). + /// The scan end time (UTC). + /// The scan errors. + /// The server name. + /// The database name. + /// The SQL version. + /// The number of failed rules with high severity. + /// The number of failed rules with medium severity. + /// The number of failed rules with low severity. + /// The number of total passed rules. + /// The number of total failed rules. + /// The number of total rules assessed. + /// Baseline created for this database, and has one or more rules. + /// The last scan time. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentScanData SqlVulnerabilityAssessmentScanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scanId = null, VulnerabilityAssessmentScanTriggerType? triggerType = null, VulnerabilityAssessmentScanState? state = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable errors = null, string server = null, string database = null, string sqlVersion = null, int? highSeverityFailedRulesCount = null, int? mediumSeverityFailedRulesCount = null, int? lowSeverityFailedRulesCount = null, int? totalPassedRulesCount = null, int? totalFailedRulesCount = null, int? totalRulesCount = null, bool? isBaselineApplied = null, DateTimeOffset? lastScanOn = null) + { + errors ??= new List(); + + return new SqlVulnerabilityAssessmentScanData(id, name, resourceType, systemData, scanId, triggerType, state, startOn, endOn, errors?.ToList(), server, database, sqlVersion, highSeverityFailedRulesCount, mediumSeverityFailedRulesCount, lowSeverityFailedRulesCount, totalPassedRulesCount, totalFailedRulesCount, totalRulesCount, isBaselineApplied, lastScanOn); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentScanError. + /// The error code. + /// The error message. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentScanError SqlVulnerabilityAssessmentScanError(string code = null, string message = null) + { + return new SqlVulnerabilityAssessmentScanError(code, message); + } + + /// Initializes a new instance of SqlVulnerabilityAssessmentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + /// A new instance for mocking. + public static SqlVulnerabilityAssessmentData SqlVulnerabilityAssessmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SqlVulnerabilityAssessmentState? state = null) + { + return new SqlVulnerabilityAssessmentData(id, name, resourceType, systemData, state); } } } From 11b43f662f365ae5846a17bcaaca5cb772c4d772 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Mon, 3 Jul 2023 09:09:48 -0700 Subject: [PATCH 03/25] add more generated files for fixing errors --- .../src/Generated/FailoverGroupData.cs | 6 +++--- .../src/Generated/ManagedDatabaseData.cs | 10 +++++++--- .../src/Generated/RecoverableDatabaseData.cs | 15 +++++++++++---- .../SqlVulnerabilityAssessmentScanData.cs | 6 +++++- 4 files changed, 26 insertions(+), 11 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs index 0424d7043be3e..5810c5330e66a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs @@ -23,7 +23,7 @@ public FailoverGroupData() { Tags = new ChangeTrackingDictionary(); PartnerServers = new ChangeTrackingList(); - Databases = new ChangeTrackingList(); + Databases = new ChangeTrackingList(); } /// Initializes a new instance of FailoverGroupData. @@ -39,7 +39,7 @@ public FailoverGroupData() /// Replication state of the failover group instance. /// List of partner server information for the failover group. /// List of databases in the failover group. - internal FailoverGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, IDictionary tags, FailoverGroupReadWriteEndpoint readWriteEndpoint, FailoverGroupReadOnlyEndpoint readOnlyEndpoint, FailoverGroupReplicationRole? replicationRole, string replicationState, IList partnerServers, IList databases) : base(id, name, resourceType, systemData) + internal FailoverGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, IDictionary tags, FailoverGroupReadWriteEndpoint readWriteEndpoint, FailoverGroupReadOnlyEndpoint readOnlyEndpoint, FailoverGroupReplicationRole? replicationRole, string replicationState, IList partnerServers, IList databases) : base(id, name, resourceType, systemData) { Location = location; Tags = tags; @@ -78,6 +78,6 @@ public ReadOnlyEndpointFailoverPolicy? ReadOnlyEndpointFailoverPolicy /// List of partner server information for the failover group. public IList PartnerServers { get; } /// List of databases in the failover group. - public IList Databases { get; } + public IList Databases { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs index 8f5811dc6d959..2e384009ac86c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs @@ -53,7 +53,8 @@ public ManagedDatabaseData(AzureLocation location) : base(location) /// Whether to auto complete restore of this managed database. /// Last backup file name for restore of this managed database. /// Target managed instance id used in cross-subscription restore. - internal ManagedDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string collation, ManagedDatabaseStatus? status, DateTimeOffset? createdOn, DateTimeOffset? earliestRestorePoint, DateTimeOffset? restorePointInTime, AzureLocation? defaultSecondaryLocation, CatalogCollationType? catalogCollation, ManagedDatabaseCreateMode? createMode, Uri storageContainerUri, ResourceIdentifier sourceDatabaseId, string crossSubscriptionSourceDatabaseId, ResourceIdentifier restorableDroppedDatabaseId, string crossSubscriptionRestorableDroppedDatabaseId, string storageContainerIdentity, string storageContainerSasToken, ResourceIdentifier failoverGroupId, ResourceIdentifier recoverableDatabaseId, ResourceIdentifier longTermRetentionBackupResourceId, bool? allowAutoCompleteRestore, string lastBackupName, ResourceIdentifier crossSubscriptionTargetManagedInstanceId) : base(id, name, resourceType, systemData, tags, location) + /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + internal ManagedDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string collation, ManagedDatabaseStatus? status, DateTimeOffset? createdOn, DateTimeOffset? earliestRestorePoint, DateTimeOffset? restorePointInTime, AzureLocation? defaultSecondaryLocation, CatalogCollationType? catalogCollation, ManagedDatabaseCreateMode? createMode, Uri storageContainerUri, ResourceIdentifier sourceDatabaseId, ResourceIdentifier crossSubscriptionSourceDatabaseId, ResourceIdentifier restorableDroppedDatabaseId, ResourceIdentifier crossSubscriptionRestorableDroppedDatabaseId, string storageContainerIdentity, string storageContainerSasToken, ResourceIdentifier failoverGroupId, ResourceIdentifier recoverableDatabaseId, ResourceIdentifier longTermRetentionBackupResourceId, bool? allowAutoCompleteRestore, string lastBackupName, ResourceIdentifier crossSubscriptionTargetManagedInstanceId, bool? isLedgerOn) : base(id, name, resourceType, systemData, tags, location) { Collation = collation; Status = status; @@ -76,6 +77,7 @@ internal ManagedDatabaseData(ResourceIdentifier id, string name, ResourceType re AllowAutoCompleteRestore = allowAutoCompleteRestore; LastBackupName = lastBackupName; CrossSubscriptionTargetManagedInstanceId = crossSubscriptionTargetManagedInstanceId; + IsLedgerOn = isLedgerOn; } /// Collation of the managed database. @@ -99,11 +101,11 @@ internal ManagedDatabaseData(ResourceIdentifier id, string name, ResourceType re /// The resource identifier of the source database associated with create operation of this database. public ResourceIdentifier SourceDatabaseId { get; set; } /// The resource identifier of the cross-subscription source database associated with create operation of this database. - public string CrossSubscriptionSourceDatabaseId { get; set; } + public ResourceIdentifier CrossSubscriptionSourceDatabaseId { get; set; } /// The restorable dropped database resource id to restore when creating this database. public ResourceIdentifier RestorableDroppedDatabaseId { get; set; } /// The restorable cross-subscription dropped database resource id to restore when creating this database. - public string CrossSubscriptionRestorableDroppedDatabaseId { get; set; } + public ResourceIdentifier CrossSubscriptionRestorableDroppedDatabaseId { get; set; } /// Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. public string StorageContainerIdentity { get; set; } /// Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. @@ -120,5 +122,7 @@ internal ManagedDatabaseData(ResourceIdentifier id, string name, ResourceType re public string LastBackupName { get; set; } /// Target managed instance id used in cross-subscription restore. public ResourceIdentifier CrossSubscriptionTargetManagedInstanceId { get; set; } + /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + public bool? IsLedgerOn { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs index 7b64b6f143010..c28f345a23fca 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs @@ -6,20 +6,23 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql.Models; namespace Azure.ResourceManager.Sql { /// /// A class representing the RecoverableDatabase data model. - /// A recoverable database + /// A recoverable database resource. /// public partial class RecoverableDatabaseData : ResourceData { /// Initializes a new instance of RecoverableDatabaseData. public RecoverableDatabaseData() { + Keys = new ChangeTrackingDictionary(); } /// Initializes a new instance of RecoverableDatabaseData. @@ -30,13 +33,15 @@ public RecoverableDatabaseData() /// The edition of the database. /// The service level objective name of the database. /// The elastic pool name of the database. - /// The last available backup date of the database (ISO8601 format). - internal RecoverableDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string edition, string serviceLevelObjective, string elasticPoolName, DateTimeOffset? lastAvailableBackupOn) : base(id, name, resourceType, systemData) + /// The last available backup date. + /// The resource ids of the user assigned identities to use. + internal RecoverableDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string edition, string serviceLevelObjective, string elasticPoolName, DateTimeOffset? lastAvailableBackupOn, IDictionary keys) : base(id, name, resourceType, systemData) { Edition = edition; ServiceLevelObjective = serviceLevelObjective; ElasticPoolName = elasticPoolName; LastAvailableBackupOn = lastAvailableBackupOn; + Keys = keys; } /// The edition of the database. @@ -45,7 +50,9 @@ internal RecoverableDatabaseData(ResourceIdentifier id, string name, ResourceTyp public string ServiceLevelObjective { get; } /// The elastic pool name of the database. public string ElasticPoolName { get; } - /// The last available backup date of the database (ISO8601 format). + /// The last available backup date. public DateTimeOffset? LastAvailableBackupOn { get; } + /// The resource ids of the user assigned identities to use. + public IDictionary Keys { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs index 288589c6fb581..c786375f36187 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs @@ -46,7 +46,8 @@ public SqlVulnerabilityAssessmentScanData() /// The number of total failed rules. /// The number of total rules assessed. /// Baseline created for this database, and has one or more rules. - internal SqlVulnerabilityAssessmentScanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string scanId, VulnerabilityAssessmentScanTriggerType? triggerType, VulnerabilityAssessmentScanState? state, DateTimeOffset? startOn, DateTimeOffset? endOn, IReadOnlyList errors, string server, string database, string sqlVersion, int? highSeverityFailedRulesCount, int? mediumSeverityFailedRulesCount, int? lowSeverityFailedRulesCount, int? totalPassedRulesCount, int? totalFailedRulesCount, int? totalRulesCount, bool? isBaselineApplied) : base(id, name, resourceType, systemData) + /// The last scan time. + internal SqlVulnerabilityAssessmentScanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string scanId, VulnerabilityAssessmentScanTriggerType? triggerType, VulnerabilityAssessmentScanState? state, DateTimeOffset? startOn, DateTimeOffset? endOn, IReadOnlyList errors, string server, string database, string sqlVersion, int? highSeverityFailedRulesCount, int? mediumSeverityFailedRulesCount, int? lowSeverityFailedRulesCount, int? totalPassedRulesCount, int? totalFailedRulesCount, int? totalRulesCount, bool? isBaselineApplied, DateTimeOffset? lastScanOn) : base(id, name, resourceType, systemData) { ScanId = scanId; TriggerType = triggerType; @@ -64,6 +65,7 @@ internal SqlVulnerabilityAssessmentScanData(ResourceIdentifier id, string name, TotalFailedRulesCount = totalFailedRulesCount; TotalRulesCount = totalRulesCount; IsBaselineApplied = isBaselineApplied; + LastScanOn = lastScanOn; } /// The scan ID. @@ -98,5 +100,7 @@ internal SqlVulnerabilityAssessmentScanData(ResourceIdentifier id, string name, public int? TotalRulesCount { get; } /// Baseline created for this database, and has one or more rules. public bool? IsBaselineApplied { get; } + /// The last scan time. + public DateTimeOffset? LastScanOn { get; } } } From b48d3a1c3abe2f3a14f0f58cfe95bfb80723c0ea Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Mon, 3 Jul 2023 10:32:15 -0700 Subject: [PATCH 04/25] add more generated files for fixing errors --- .../Models/FailoverGroupData.Serialization.cs | 18 ++++++++-- .../ManagedDatabaseData.Serialization.cs | 33 ++++++++++++++++--- .../RecoverableDatabaseData.Serialization.cs | 30 ++++++++++++++++- ...abilityAssessmentScanData.Serialization.cs | 12 ++++++- 4 files changed, 83 insertions(+), 10 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs index 8218b1ff14bd9..a39c445f9a8f8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs @@ -57,6 +57,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartArray(); foreach (var item in Databases) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -82,7 +87,7 @@ internal static FailoverGroupData DeserializeFailoverGroupData(JsonElement eleme Optional replicationRole = default; Optional replicationState = default; Optional> partnerServers = default; - Optional> databases = default; + Optional> databases = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location"u8)) @@ -193,10 +198,17 @@ internal static FailoverGroupData DeserializeFailoverGroupData(JsonElement eleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(new ResourceIdentifier(item.GetString())); + } } databases = array; continue; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs index 81b98b953fc9e..f2ed21a9523b3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs @@ -114,6 +114,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("crossSubscriptionTargetManagedInstanceId"u8); writer.WriteStringValue(CrossSubscriptionTargetManagedInstanceId); } + if (Optional.IsDefined(IsLedgerOn)) + { + writer.WritePropertyName("isLedgerOn"u8); + writer.WriteBooleanValue(IsLedgerOn.Value); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -140,9 +145,9 @@ internal static ManagedDatabaseData DeserializeManagedDatabaseData(JsonElement e Optional createMode = default; Optional storageContainerUri = default; Optional sourceDatabaseId = default; - Optional crossSubscriptionSourceDatabaseId = default; + Optional crossSubscriptionSourceDatabaseId = default; Optional restorableDroppedDatabaseId = default; - Optional crossSubscriptionRestorableDroppedDatabaseId = default; + Optional crossSubscriptionRestorableDroppedDatabaseId = default; Optional storageContainerIdentity = default; Optional storageContainerSasToken = default; Optional failoverGroupId = default; @@ -151,6 +156,7 @@ internal static ManagedDatabaseData DeserializeManagedDatabaseData(JsonElement e Optional autoCompleteRestore = default; Optional lastBackupName = default; Optional crossSubscriptionTargetManagedInstanceId = default; + Optional isLedgerOn = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("tags"u8)) @@ -293,7 +299,11 @@ internal static ManagedDatabaseData DeserializeManagedDatabaseData(JsonElement e } if (property0.NameEquals("crossSubscriptionSourceDatabaseId"u8)) { - crossSubscriptionSourceDatabaseId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + crossSubscriptionSourceDatabaseId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("restorableDroppedDatabaseId"u8)) @@ -307,7 +317,11 @@ internal static ManagedDatabaseData DeserializeManagedDatabaseData(JsonElement e } if (property0.NameEquals("crossSubscriptionRestorableDroppedDatabaseId"u8)) { - crossSubscriptionRestorableDroppedDatabaseId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + crossSubscriptionRestorableDroppedDatabaseId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("storageContainerIdentity"u8)) @@ -370,11 +384,20 @@ internal static ManagedDatabaseData DeserializeManagedDatabaseData(JsonElement e crossSubscriptionTargetManagedInstanceId = new ResourceIdentifier(property0.Value.GetString()); continue; } + if (property0.NameEquals("isLedgerOn"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isLedgerOn = property0.Value.GetBoolean(); + continue; + } } continue; } } - return new ManagedDatabaseData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, collation.Value, Optional.ToNullable(status), Optional.ToNullable(creationDate), Optional.ToNullable(earliestRestorePoint), Optional.ToNullable(restorePointInTime), Optional.ToNullable(defaultSecondaryLocation), Optional.ToNullable(catalogCollation), Optional.ToNullable(createMode), storageContainerUri.Value, sourceDatabaseId.Value, crossSubscriptionSourceDatabaseId.Value, restorableDroppedDatabaseId.Value, crossSubscriptionRestorableDroppedDatabaseId.Value, storageContainerIdentity.Value, storageContainerSasToken.Value, failoverGroupId.Value, recoverableDatabaseId.Value, longTermRetentionBackupResourceId.Value, Optional.ToNullable(autoCompleteRestore), lastBackupName.Value, crossSubscriptionTargetManagedInstanceId.Value); + return new ManagedDatabaseData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, collation.Value, Optional.ToNullable(status), Optional.ToNullable(creationDate), Optional.ToNullable(earliestRestorePoint), Optional.ToNullable(restorePointInTime), Optional.ToNullable(defaultSecondaryLocation), Optional.ToNullable(catalogCollation), Optional.ToNullable(createMode), storageContainerUri.Value, sourceDatabaseId.Value, crossSubscriptionSourceDatabaseId.Value, restorableDroppedDatabaseId.Value, crossSubscriptionRestorableDroppedDatabaseId.Value, storageContainerIdentity.Value, storageContainerSasToken.Value, failoverGroupId.Value, recoverableDatabaseId.Value, longTermRetentionBackupResourceId.Value, Optional.ToNullable(autoCompleteRestore), lastBackupName.Value, crossSubscriptionTargetManagedInstanceId.Value, Optional.ToNullable(isLedgerOn)); } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs index 051ac8a024487..65fd9368b5fbd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs @@ -6,9 +6,11 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql.Models; namespace Azure.ResourceManager.Sql { @@ -19,6 +21,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Keys)) + { + writer.WritePropertyName("keys"u8); + writer.WriteStartObject(); + foreach (var item in Keys) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -37,6 +50,7 @@ internal static RecoverableDatabaseData DeserializeRecoverableDatabaseData(JsonE Optional serviceLevelObjective = default; Optional elasticPoolName = default; Optional lastAvailableBackupDate = default; + Optional> keys = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -96,11 +110,25 @@ internal static RecoverableDatabaseData DeserializeRecoverableDatabaseData(JsonE lastAvailableBackupDate = property0.Value.GetDateTimeOffset("O"); continue; } + if (property0.NameEquals("keys"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, SqlDatabaseKey.DeserializeSqlDatabaseKey(property1.Value)); + } + keys = dictionary; + continue; + } } continue; } } - return new RecoverableDatabaseData(id, name, type, systemData.Value, edition.Value, serviceLevelObjective.Value, elasticPoolName.Value, Optional.ToNullable(lastAvailableBackupDate)); + return new RecoverableDatabaseData(id, name, type, systemData.Value, edition.Value, serviceLevelObjective.Value, elasticPoolName.Value, Optional.ToNullable(lastAvailableBackupDate), Optional.ToDictionary(keys)); } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanData.Serialization.cs index a0b85e1392e4c..df6f222e96c01 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanData.Serialization.cs @@ -51,6 +51,7 @@ internal static SqlVulnerabilityAssessmentScanData DeserializeSqlVulnerabilityAs Optional totalFailedRulesCount = default; Optional totalRulesCount = default; Optional isBaselineApplied = default; + Optional lastScanTime = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -219,11 +220,20 @@ internal static SqlVulnerabilityAssessmentScanData DeserializeSqlVulnerabilityAs isBaselineApplied = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("lastScanTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lastScanTime = property0.Value.GetDateTimeOffset("O"); + continue; + } } continue; } } - return new SqlVulnerabilityAssessmentScanData(id, name, type, systemData.Value, scanId.Value, Optional.ToNullable(triggerType), Optional.ToNullable(state), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToList(errors), server.Value, database.Value, sqlVersion.Value, Optional.ToNullable(highSeverityFailedRulesCount), Optional.ToNullable(mediumSeverityFailedRulesCount), Optional.ToNullable(lowSeverityFailedRulesCount), Optional.ToNullable(totalPassedRulesCount), Optional.ToNullable(totalFailedRulesCount), Optional.ToNullable(totalRulesCount), Optional.ToNullable(isBaselineApplied)); + return new SqlVulnerabilityAssessmentScanData(id, name, type, systemData.Value, scanId.Value, Optional.ToNullable(triggerType), Optional.ToNullable(state), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToList(errors), server.Value, database.Value, sqlVersion.Value, Optional.ToNullable(highSeverityFailedRulesCount), Optional.ToNullable(mediumSeverityFailedRulesCount), Optional.ToNullable(lowSeverityFailedRulesCount), Optional.ToNullable(totalPassedRulesCount), Optional.ToNullable(totalFailedRulesCount), Optional.ToNullable(totalRulesCount), Optional.ToNullable(isBaselineApplied), Optional.ToNullable(lastScanTime)); } } } From b0a986c15fef857ad8e9cc32d83c20e986468f84 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Wed, 5 Jul 2023 13:52:14 -0700 Subject: [PATCH 05/25] fix failover group errors --- .../src/Generated/FailoverGroupResource.cs | 68 ++++++++ .../FailoverGroupsRestOperations.cs | 165 +++++++++++++----- 2 files changed, 189 insertions(+), 44 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupResource.cs index 78082ce6705d7..bd73b459ec105 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupResource.cs @@ -432,6 +432,74 @@ public virtual ArmOperation ForceFailoverAllowDataLoss(Wa } } + /// + /// Fails over from the current primary server to this server. This operation tries planned before forced failover but might still result in data loss. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/tryPlannedBeforeForcedFailover + /// + /// + /// Operation Id + /// FailoverGroups_TryPlannedBeforeForcedFailover + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task> TryPlannedBeforeForcedFailoverAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _failoverGroupClientDiagnostics.CreateScope("FailoverGroupResource.TryPlannedBeforeForcedFailover"); + scope.Start(); + try + { + var response = await _failoverGroupRestClient.TryPlannedBeforeForcedFailoverAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new SqlArmOperation(new FailoverGroupOperationSource(Client), _failoverGroupClientDiagnostics, Pipeline, _failoverGroupRestClient.CreateTryPlannedBeforeForcedFailoverRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Fails over from the current primary server to this server. This operation tries planned before forced failover but might still result in data loss. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/tryPlannedBeforeForcedFailover + /// + /// + /// Operation Id + /// FailoverGroups_TryPlannedBeforeForcedFailover + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation TryPlannedBeforeForcedFailover(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _failoverGroupClientDiagnostics.CreateScope("FailoverGroupResource.TryPlannedBeforeForcedFailover"); + scope.Start(); + try + { + var response = _failoverGroupRestClient.TryPlannedBeforeForcedFailover(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new SqlArmOperation(new FailoverGroupOperationSource(Client), _failoverGroupClientDiagnostics, Pipeline, _failoverGroupRestClient.CreateTryPlannedBeforeForcedFailoverRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs index 7a89267f33020..db2d5891dffa9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs @@ -33,10 +33,89 @@ public FailoverGroupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-11-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the failover groups in a server. + /// The subscription ID that identifies an Azure subscription. + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The name of the server containing the failover group. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByServerAsync(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); + + using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FailoverGroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FailoverGroupListResult.DeserializeFailoverGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the failover groups in a server. + /// The subscription ID that identifies an Azure subscription. + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The name of the server containing the failover group. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByServer(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); + + using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FailoverGroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FailoverGroupListResult.DeserializeFailoverGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -372,11 +451,11 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } - internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -385,7 +464,9 @@ internal HttpMessage CreateListByServerRequest(string subscriptionId, string res uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.Sql/servers/", false); uri.AppendPath(serverName, true); - uri.AppendPath("/failoverGroups", false); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendPath("/failover", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -393,65 +474,61 @@ internal HttpMessage CreateListByServerRequest(string subscriptionId, string res return message; } - /// Lists the failover groups in a server. + /// Fails over from the current primary server to this server. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server containing the failover group. + /// The name of the failover group. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByServerAsync(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task FailoverAsync(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); + Argument.AssertNotNullOrEmpty(failoverGroupName, nameof(failoverGroupName)); - using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + using var message = CreateFailoverRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - FailoverGroupListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = FailoverGroupListResult.DeserializeFailoverGroupListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Lists the failover groups in a server. + /// Fails over from the current primary server to this server. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server containing the failover group. + /// The name of the failover group. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListByServer(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Failover(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); + Argument.AssertNotNullOrEmpty(failoverGroupName, nameof(failoverGroupName)); - using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + using var message = CreateFailoverRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - FailoverGroupListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = FailoverGroupListResult.DeserializeFailoverGroupListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + internal HttpMessage CreateForceFailoverAllowDataLossRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -466,7 +543,7 @@ internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourc uri.AppendPath(serverName, true); uri.AppendPath("/failoverGroups/", false); uri.AppendPath(failoverGroupName, true); - uri.AppendPath("/failover", false); + uri.AppendPath("/forceFailoverAllowDataLoss", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -474,7 +551,7 @@ internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourc return message; } - /// Fails over from the current primary server to this server. + /// Fails over from the current primary server to this server. This operation might result in data loss. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server containing the failover group. @@ -482,14 +559,14 @@ internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourc /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task FailoverAsync(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) + public async Task ForceFailoverAllowDataLossAsync(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); Argument.AssertNotNullOrEmpty(failoverGroupName, nameof(failoverGroupName)); - using var message = CreateFailoverRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); + using var message = CreateForceFailoverAllowDataLossRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -501,7 +578,7 @@ public async Task FailoverAsync(string subscriptionId, string resource } } - /// Fails over from the current primary server to this server. + /// Fails over from the current primary server to this server. This operation might result in data loss. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server containing the failover group. @@ -509,14 +586,14 @@ public async Task FailoverAsync(string subscriptionId, string resource /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Failover(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) + public Response ForceFailoverAllowDataLoss(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); Argument.AssertNotNullOrEmpty(failoverGroupName, nameof(failoverGroupName)); - using var message = CreateFailoverRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); + using var message = CreateForceFailoverAllowDataLossRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -528,7 +605,7 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } - internal HttpMessage CreateForceFailoverAllowDataLossRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + internal HttpMessage CreateTryPlannedBeforeForcedFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -543,7 +620,7 @@ internal HttpMessage CreateForceFailoverAllowDataLossRequest(string subscription uri.AppendPath(serverName, true); uri.AppendPath("/failoverGroups/", false); uri.AppendPath(failoverGroupName, true); - uri.AppendPath("/forceFailoverAllowDataLoss", false); + uri.AppendPath("/tryPlannedBeforeForcedFailover", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -551,22 +628,22 @@ internal HttpMessage CreateForceFailoverAllowDataLossRequest(string subscription return message; } - /// Fails over from the current primary server to this server. This operation might result in data loss. + /// Fails over from the current primary server to this server. This operation tries planned before forced failover but might still result in data loss. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the server containing the failover group. + /// The name of the server. /// The name of the failover group. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task ForceFailoverAllowDataLossAsync(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) + public async Task TryPlannedBeforeForcedFailoverAsync(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); Argument.AssertNotNullOrEmpty(failoverGroupName, nameof(failoverGroupName)); - using var message = CreateForceFailoverAllowDataLossRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); + using var message = CreateTryPlannedBeforeForcedFailoverRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -578,22 +655,22 @@ public async Task ForceFailoverAllowDataLossAsync(string subscriptionI } } - /// Fails over from the current primary server to this server. This operation might result in data loss. + /// Fails over from the current primary server to this server. This operation tries planned before forced failover but might still result in data loss. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the server containing the failover group. + /// The name of the server. /// The name of the failover group. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ForceFailoverAllowDataLoss(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) + public Response TryPlannedBeforeForcedFailover(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); Argument.AssertNotNullOrEmpty(failoverGroupName, nameof(failoverGroupName)); - using var message = CreateForceFailoverAllowDataLossRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); + using var message = CreateTryPlannedBeforeForcedFailoverRequest(subscriptionId, resourceGroupName, serverName, failoverGroupName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { From ed4965fb0d39cb1c35987836d94ee2832164adf6 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Mon, 24 Jul 2023 21:12:52 -0700 Subject: [PATCH 06/25] update autorest.md file --- sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md index e3596cb71c18a..2b23402197306 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md @@ -5,7 +5,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true tag: package-composite-v5 -require: https://github.com/Azure/azure-rest-api-specs/blob/4c49a05d22106119afd2078a982f30855b91a010/specification/sql/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/eba34b9c764e877193788a87a81cebfa915eb858/specification/sql/resource-manager/readme.md namespace: Azure.ResourceManager.Sql output-folder: $(this-folder)/Generated clear-output-folder: true From 2121d3f31d99029b4038e2f63545bb539628ca4b Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Mon, 24 Jul 2023 23:16:53 -0700 Subject: [PATCH 07/25] fix pipeline errors --- ....Identity.BrokeredAuthentication.net462.cs | 2 + ...zure.ResourceManager.Sql.netstandard2.0.cs | 54 +- .../src/Generated/Extensions/SqlExtensions.cs | 564 ++++++++--------- .../src/Generated/IPv6FirewallRuleData.cs | 4 +- .../src/Generated/ManagedInstanceData.cs | 4 +- .../ManagedDatabasePatch.Serialization.cs | 5 + .../Generated/Models/ManagedDatabasePatch.cs | 6 +- .../ManagedInstanceData.Serialization.cs | 8 +- .../Generated/Models/ManagedInstancePatch.cs | 2 +- ...verableDatabaseListResult.Serialization.cs | 14 +- .../Models/RecoverableDatabaseListResult.cs | 22 +- .../src/Generated/Models/SqlServerPatch.cs | 2 +- .../RecoverableDatabaseCollection.cs | 38 +- .../Generated/RecoverableDatabaseResource.cs | 16 +- ...bilityAssessmentBaselinesRestOperations.cs | 2 +- ...lityAssessmentExecuteScanRestOperations.cs | 2 +- ...tyAssessmentRuleBaselinesRestOperations.cs | 2 +- ...ilityAssessmentScanResultRestOperations.cs | 2 +- ...nerabilityAssessmentScansRestOperations.cs | 2 +- ...bilityAssessmentsSettingsRestOperations.cs | 2 +- .../IPv6FirewallRulesRestOperations.cs | 2 +- .../ManagedDatabasesRestOperations.cs | 2 +- .../RecoverableDatabasesRestOperations.cs | 134 +++- ...abilityAssessmentBaselineRestOperations.cs | 2 +- ...bilityAssessmentBaselinesRestOperations.cs | 2 +- ...lityAssessmentExecuteScanRestOperations.cs | 2 +- ...ityAssessmentRuleBaselineRestOperations.cs | 2 +- ...tyAssessmentRuleBaselinesRestOperations.cs | 2 +- ...ilityAssessmentScanResultRestOperations.cs | 2 +- ...nerabilityAssessmentScansRestOperations.cs | 2 +- ...lVulnerabilityAssessmentsRestOperations.cs | 2 +- ...bilityAssessmentsSettingsRestOperations.cs | 2 +- .../src/Generated/SqlDatabaseResource.cs | 170 +++--- .../src/Generated/SqlServerData.cs | 4 +- .../src/Generated/SqlServerResource.cs | 578 +++++++++--------- 35 files changed, 900 insertions(+), 761 deletions(-) diff --git a/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs b/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs index e981f65bb80bb..9016acddfe994 100644 --- a/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs +++ b/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs @@ -3,10 +3,12 @@ namespace Azure.Identity.BrokeredAuthentication public partial class InteractiveBrowserCredentialBrokerOptions : Azure.Identity.InteractiveBrowserCredentialOptions { public InteractiveBrowserCredentialBrokerOptions(System.IntPtr parentWindowHandle) { } + public bool? IsMsaPassthroughEnabled { get { throw null; } set { } } } public partial class SharedTokenCacheCredentialBrokerOptions : Azure.Identity.SharedTokenCacheCredentialOptions { public SharedTokenCacheCredentialBrokerOptions() { } public SharedTokenCacheCredentialBrokerOptions(Azure.Identity.TokenCachePersistenceOptions tokenCacheOptions) { } + public bool? IsMsaPassthroughEnabled { get { throw null; } set { } } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs index 289c9ac3937a2..2a225fbb088a1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs @@ -245,6 +245,7 @@ protected ElasticPoolCollection() { } public partial class ElasticPoolData : Azure.ResourceManager.Models.TrackedResourceData { public ElasticPoolData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ResourceManager.Sql.Models.SqlAvailabilityZoneType? AvailabilityZone { get { throw null; } set { } } public System.DateTimeOffset? CreatedOn { get { throw null; } } public int? HighAvailabilityReplicaCount { get { throw null; } set { } } public bool? IsZoneRedundant { get { throw null; } set { } } @@ -252,7 +253,9 @@ public ElasticPoolData(Azure.Core.AzureLocation location) : base (default(Azure. public Azure.ResourceManager.Sql.Models.ElasticPoolLicenseType? LicenseType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier MaintenanceConfigurationId { get { throw null; } set { } } public long? MaxSizeBytes { get { throw null; } set { } } + public double? MinCapacity { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ElasticPoolPerDatabaseSettings PerDatabaseSettings { get { throw null; } set { } } + public Azure.ResourceManager.Sql.Models.SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.SqlSku Sku { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ElasticPoolState? State { get { throw null; } } } @@ -464,7 +467,7 @@ protected FailoverGroupCollection() { } public partial class FailoverGroupData : Azure.ResourceManager.Models.ResourceData { public FailoverGroupData() { } - public System.Collections.Generic.IList Databases { get { throw null; } } + public System.Collections.Generic.IList Databases { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } public System.Collections.Generic.IList PartnerServers { get { throw null; } } public Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy? ReadOnlyEndpointFailoverPolicy { get { throw null; } set { } } @@ -494,6 +497,8 @@ protected FailoverGroupResource() { } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation TryPlannedBeforeForcedFailover(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> TryPlannedBeforeForcedFailoverAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.FailoverGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.FailoverGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -928,12 +933,13 @@ public ManagedDatabaseData(Azure.Core.AzureLocation location) : base (default(Az public string Collation { get { throw null; } set { } } public System.DateTimeOffset? CreatedOn { get { throw null; } } public Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? CreateMode { get { throw null; } set { } } - public string CrossSubscriptionRestorableDroppedDatabaseId { get { throw null; } set { } } - public string CrossSubscriptionSourceDatabaseId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier CrossSubscriptionRestorableDroppedDatabaseId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier CrossSubscriptionSourceDatabaseId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier CrossSubscriptionTargetManagedInstanceId { get { throw null; } set { } } public Azure.Core.AzureLocation? DefaultSecondaryLocation { get { throw null; } } public System.DateTimeOffset? EarliestRestorePoint { get { throw null; } } public Azure.Core.ResourceIdentifier FailoverGroupId { get { throw null; } } + public bool? IsLedgerOn { get { throw null; } set { } } public string LastBackupName { get { throw null; } set { } } public Azure.Core.ResourceIdentifier LongTermRetentionBackupResourceId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier RecoverableDatabaseId { get { throw null; } set { } } @@ -1398,7 +1404,7 @@ public ManagedInstanceData(Azure.Core.AzureLocation location) : base (default(Az public string Collation { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get { throw null; } } public string DnsZone { get { throw null; } } - public string DnsZonePartner { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier DnsZonePartner { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Core.ResourceIdentifier InstancePoolId { get { throw null; } set { } } @@ -2189,12 +2195,12 @@ protected RecommendedActionResource() { } public partial class RecoverableDatabaseCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected RecoverableDatabaseCollection() { } - public virtual Azure.Response Exists(string databaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string databaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string databaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string databaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } @@ -2204,6 +2210,7 @@ public partial class RecoverableDatabaseData : Azure.ResourceManager.Models.Reso public RecoverableDatabaseData() { } public string Edition { get { throw null; } } public string ElasticPoolName { get { throw null; } } + public System.Collections.Generic.IDictionary Keys { get { throw null; } } public System.DateTimeOffset? LastAvailableBackupOn { get { throw null; } } public string ServiceLevelObjective { get { throw null; } } } @@ -2214,8 +2221,8 @@ protected RecoverableDatabaseResource() { } public virtual Azure.ResourceManager.Sql.RecoverableDatabaseData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class RecoverableManagedDatabaseCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -4388,8 +4395,8 @@ protected SqlServerResource() { } public virtual Azure.Response GetOutboundFirewallRule(string outboundRuleFqdn, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetOutboundFirewallRuleAsync(string outboundRuleFqdn, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Sql.OutboundFirewallRuleCollection GetOutboundFirewallRules() { throw null; } - public virtual Azure.Response GetRecoverableDatabase(string databaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRecoverableDatabaseAsync(string databaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRecoverableDatabase(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRecoverableDatabaseAsync(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Sql.RecoverableDatabaseCollection GetRecoverableDatabases() { throw null; } public virtual Azure.Pageable GetReplicationLinks(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetReplicationLinksAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -4827,6 +4834,7 @@ public SqlVulnerabilityAssessmentScanData() { } public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } public int? HighSeverityFailedRulesCount { get { throw null; } } public bool? IsBaselineApplied { get { throw null; } } + public System.DateTimeOffset? LastScanOn { get { throw null; } } public int? LowSeverityFailedRulesCount { get { throw null; } } public int? MediumSeverityFailedRulesCount { get { throw null; } } public string ScanId { get { throw null; } } @@ -5305,7 +5313,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.DistributedAvailabilityGroupData DistributedAvailabilityGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string targetDatabase = null, string sourceEndpoint = null, string primaryAvailabilityGroupName = null, string secondaryAvailabilityGroupName = null, Azure.ResourceManager.Sql.Models.DistributedAvailabilityGroupReplicationMode? replicationMode = default(Azure.ResourceManager.Sql.Models.DistributedAvailabilityGroupReplicationMode?), System.Guid? distributedAvailabilityGroupId = default(System.Guid?), System.Guid? sourceReplicaId = default(System.Guid?), System.Guid? targetReplicaId = default(System.Guid?), string linkState = null, string lastHardenedLsn = null) { throw null; } public static Azure.ResourceManager.Sql.Models.EditionCapability EditionCapability(string name = null, System.Collections.Generic.IEnumerable supportedServiceLevelObjectives = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.Sql.Models.ReadScaleCapability readScale = null, System.Collections.Generic.IEnumerable supportedStorageCapabilities = null, Azure.ResourceManager.Sql.Models.SqlCapabilityStatus? status = default(Azure.ResourceManager.Sql.Models.SqlCapabilityStatus?), string reason = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ElasticPoolActivity ElasticPoolActivity(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), int? errorCode = default(int?), string errorMessage = null, int? errorSeverity = default(int?), string operation = null, System.Guid? operationId = default(System.Guid?), int? percentComplete = default(int?), int? requestedDatabaseDtuMax = default(int?), int? requestedDatabaseDtuMin = default(int?), int? requestedDtu = default(int?), string requestedElasticPoolName = null, long? requestedStorageLimitInGB = default(long?), string elasticPoolName = null, string serverName = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string state = null, int? requestedStorageLimitInMB = default(int?), int? requestedDatabaseDtuGuarantee = default(int?), int? requestedDatabaseDtuCap = default(int?), int? requestedDtuGuarantee = default(int?)) { throw null; } - public static Azure.ResourceManager.Sql.ElasticPoolData ElasticPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Sql.Models.SqlSku sku = null, string kind = null, Azure.ResourceManager.Sql.Models.ElasticPoolState? state = default(Azure.ResourceManager.Sql.Models.ElasticPoolState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), long? maxSizeBytes = default(long?), Azure.ResourceManager.Sql.Models.ElasticPoolPerDatabaseSettings perDatabaseSettings = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.Sql.Models.ElasticPoolLicenseType? licenseType = default(Azure.ResourceManager.Sql.Models.ElasticPoolLicenseType?), Azure.Core.ResourceIdentifier maintenanceConfigurationId = null, int? highAvailabilityReplicaCount = default(int?)) { throw null; } + public static Azure.ResourceManager.Sql.ElasticPoolData ElasticPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Sql.Models.SqlSku sku = null, string kind = null, Azure.ResourceManager.Sql.Models.ElasticPoolState? state = default(Azure.ResourceManager.Sql.Models.ElasticPoolState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), long? maxSizeBytes = default(long?), double? minCapacity = default(double?), Azure.ResourceManager.Sql.Models.ElasticPoolPerDatabaseSettings perDatabaseSettings = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.Sql.Models.ElasticPoolLicenseType? licenseType = default(Azure.ResourceManager.Sql.Models.ElasticPoolLicenseType?), Azure.Core.ResourceIdentifier maintenanceConfigurationId = null, int? highAvailabilityReplicaCount = default(int?), Azure.ResourceManager.Sql.Models.SqlAlwaysEncryptedEnclaveType? preferredEnclaveType = default(Azure.ResourceManager.Sql.Models.SqlAlwaysEncryptedEnclaveType?), Azure.ResourceManager.Sql.Models.SqlAvailabilityZoneType? availabilityZone = default(Azure.ResourceManager.Sql.Models.SqlAvailabilityZoneType?)) { throw null; } public static Azure.ResourceManager.Sql.Models.ElasticPoolDatabaseActivity ElasticPoolDatabaseActivity(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string databaseName = null, System.DateTimeOffset? endOn = default(System.DateTimeOffset?), int? errorCode = default(int?), string errorMessage = null, int? errorSeverity = default(int?), string operation = null, System.Guid? operationId = default(System.Guid?), int? percentComplete = default(int?), string requestedElasticPoolName = null, string currentElasticPoolName = null, string currentServiceObjective = null, string requestedServiceObjective = null, string serverName = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string state = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ElasticPoolEditionCapability ElasticPoolEditionCapability(string name = null, System.Collections.Generic.IEnumerable supportedElasticPoolPerformanceLevels = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.Sql.Models.SqlCapabilityStatus? status = default(Azure.ResourceManager.Sql.Models.SqlCapabilityStatus?), string reason = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ElasticPoolOperationData ElasticPoolOperationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string elasticPoolName = null, string operation = null, string operationFriendlyName = null, int? percentComplete = default(int?), string serverName = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string state = null, int? errorCode = default(int?), string errorDescription = null, int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTimeOffset? estimatedCompleteOn = default(System.DateTimeOffset?), string description = null, bool? isCancellable = default(bool?)) { throw null; } @@ -5316,7 +5324,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.EndpointCertificateData EndpointCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string publicBlob = null) { throw null; } public static Azure.ResourceManager.Sql.ExtendedDatabaseBlobAuditingPolicyData ExtendedDatabaseBlobAuditingPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string predicateExpression = null, int? retentionDays = default(int?), System.Collections.Generic.IEnumerable auditActionsAndGroups = null, bool? isStorageSecondaryKeyInUse = default(bool?), bool? isAzureMonitorTargetEnabled = default(bool?), int? queueDelayMs = default(int?), bool? isManagedIdentityInUse = default(bool?), Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState? state = default(Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState?), string storageEndpoint = null, string storageAccountAccessKey = null, System.Guid? storageAccountSubscriptionId = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.Sql.ExtendedServerBlobAuditingPolicyData ExtendedServerBlobAuditingPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isDevopsAuditEnabled = default(bool?), string predicateExpression = null, int? retentionDays = default(int?), System.Collections.Generic.IEnumerable auditActionsAndGroups = null, bool? isStorageSecondaryKeyInUse = default(bool?), bool? isAzureMonitorTargetEnabled = default(bool?), int? queueDelayMs = default(int?), bool? isManagedIdentityInUse = default(bool?), Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState? state = default(Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState?), string storageEndpoint = null, string storageAccountAccessKey = null, System.Guid? storageAccountSubscriptionId = default(System.Guid?)) { throw null; } - public static Azure.ResourceManager.Sql.FailoverGroupData FailoverGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Sql.Models.FailoverGroupReadWriteEndpoint readWriteEndpoint = null, Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = default(Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy?), Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole? replicationRole = default(Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole?), string replicationState = null, System.Collections.Generic.IEnumerable partnerServers = null, System.Collections.Generic.IEnumerable databases = null) { throw null; } + public static Azure.ResourceManager.Sql.FailoverGroupData FailoverGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Sql.Models.FailoverGroupReadWriteEndpoint readWriteEndpoint = null, Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = default(Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy?), Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole? replicationRole = default(Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole?), string replicationState = null, System.Collections.Generic.IEnumerable partnerServers = null, System.Collections.Generic.IEnumerable databases = null) { throw null; } public static Azure.ResourceManager.Sql.GeoBackupPolicyData GeoBackupPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Sql.Models.GeoBackupPolicyState state = Azure.ResourceManager.Sql.Models.GeoBackupPolicyState.Disabled, string storageType = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult ImportExportExtensionsOperationResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? requestId = default(System.Guid?), string requestType = null, string lastModifiedTime = null, string serverName = null, string databaseName = null, string status = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ImportExportOperationResult ImportExportOperationResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? requestId = default(System.Guid?), string requestType = null, string queuedTime = null, string lastModifiedTime = null, System.Uri blobUri = null, string serverName = null, string databaseName = null, string status = null, string errorMessage = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } @@ -5341,7 +5349,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.MaintenanceWindowsData MaintenanceWindowsData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable timeRanges = null) { throw null; } public static Azure.ResourceManager.Sql.ManagedBackupShortTermRetentionPolicyData ManagedBackupShortTermRetentionPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? retentionDays = default(int?)) { throw null; } public static Azure.ResourceManager.Sql.ManagedDatabaseAdvancedThreatProtectionData ManagedDatabaseAdvancedThreatProtectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Sql.Models.AdvancedThreatProtectionState? state = default(Azure.ResourceManager.Sql.Models.AdvancedThreatProtectionState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.Sql.ManagedDatabaseData ManagedDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string collation = null, Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus? status = default(Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? earliestRestorePoint = default(System.DateTimeOffset?), System.DateTimeOffset? restorePointInTime = default(System.DateTimeOffset?), Azure.Core.AzureLocation? defaultSecondaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Sql.Models.CatalogCollationType? catalogCollation = default(Azure.ResourceManager.Sql.Models.CatalogCollationType?), Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? createMode = default(Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode?), System.Uri storageContainerUri = null, Azure.Core.ResourceIdentifier sourceDatabaseId = null, string crossSubscriptionSourceDatabaseId = null, Azure.Core.ResourceIdentifier restorableDroppedDatabaseId = null, string crossSubscriptionRestorableDroppedDatabaseId = null, string storageContainerIdentity = null, string storageContainerSasToken = null, Azure.Core.ResourceIdentifier failoverGroupId = null, Azure.Core.ResourceIdentifier recoverableDatabaseId = null, Azure.Core.ResourceIdentifier longTermRetentionBackupResourceId = null, bool? allowAutoCompleteRestore = default(bool?), string lastBackupName = null, Azure.Core.ResourceIdentifier crossSubscriptionTargetManagedInstanceId = null) { throw null; } + public static Azure.ResourceManager.Sql.ManagedDatabaseData ManagedDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string collation = null, Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus? status = default(Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? earliestRestorePoint = default(System.DateTimeOffset?), System.DateTimeOffset? restorePointInTime = default(System.DateTimeOffset?), Azure.Core.AzureLocation? defaultSecondaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Sql.Models.CatalogCollationType? catalogCollation = default(Azure.ResourceManager.Sql.Models.CatalogCollationType?), Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? createMode = default(Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode?), System.Uri storageContainerUri = null, Azure.Core.ResourceIdentifier sourceDatabaseId = null, Azure.Core.ResourceIdentifier crossSubscriptionSourceDatabaseId = null, Azure.Core.ResourceIdentifier restorableDroppedDatabaseId = null, Azure.Core.ResourceIdentifier crossSubscriptionRestorableDroppedDatabaseId = null, string storageContainerIdentity = null, string storageContainerSasToken = null, Azure.Core.ResourceIdentifier failoverGroupId = null, Azure.Core.ResourceIdentifier recoverableDatabaseId = null, Azure.Core.ResourceIdentifier longTermRetentionBackupResourceId = null, bool? allowAutoCompleteRestore = default(bool?), string lastBackupName = null, Azure.Core.ResourceIdentifier crossSubscriptionTargetManagedInstanceId = null, bool? isLedgerOn = default(bool?)) { throw null; } public static Azure.ResourceManager.Sql.Models.ManagedDatabaseRestoreDetailBackupSetProperties ManagedDatabaseRestoreDetailBackupSetProperties(string status = null, string firstStripeName = null, int? numberOfStripes = default(int?), int? backupSizeInMB = default(int?), System.DateTimeOffset? restoreStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? restoreFinishedOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Sql.ManagedDatabaseRestoreDetailData ManagedDatabaseRestoreDetailData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string restoreType = null, string status = null, string blockReason = null, string lastUploadedFileName = null, System.DateTimeOffset? lastUploadedFileOn = default(System.DateTimeOffset?), string lastRestoredFileName = null, System.DateTimeOffset? lastRestoredFileOn = default(System.DateTimeOffset?), int? completedPercent = default(int?), int? currentRestoredSizeInMB = default(int?), int? currentRestorePlanSizeInMB = default(int?), string currentBackupType = null, string currentRestoringFileName = null, int? numberOfFilesFound = default(int?), int? numberOfFilesQueued = default(int?), int? numberOfFilesSkipped = default(int?), int? numberOfFilesRestoring = default(int?), int? numberOfFilesRestored = default(int?), int? numberOfFilesUnrestorable = default(int?), System.Collections.Generic.IEnumerable fullBackupSets = null, System.Collections.Generic.IEnumerable diffBackupSets = null, System.Collections.Generic.IEnumerable logBackupSets = null, System.Collections.Generic.IEnumerable unrestorableFileList = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ManagedDatabaseRestoreDetailUnrestorableFileProperties ManagedDatabaseRestoreDetailUnrestorableFileProperties(string name = null) { throw null; } @@ -5349,7 +5357,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.ManagedInstanceAdministratorData ManagedInstanceAdministratorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Sql.Models.ManagedInstanceAdministratorType? administratorType = default(Azure.ResourceManager.Sql.Models.ManagedInstanceAdministratorType?), string login = null, System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceAdvancedThreatProtectionData ManagedInstanceAdvancedThreatProtectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Sql.Models.AdvancedThreatProtectionState? state = default(Azure.ResourceManager.Sql.Models.AdvancedThreatProtectionState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceAzureADOnlyAuthenticationData ManagedInstanceAzureADOnlyAuthenticationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isAzureADOnlyAuthenticationEnabled = default(bool?)) { throw null; } - public static Azure.ResourceManager.Sql.ManagedInstanceData ManagedInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Sql.Models.SqlSku sku = null, Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState? provisioningState = default(Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState?), Azure.ResourceManager.Sql.Models.ManagedServerCreateMode? managedInstanceCreateMode = default(Azure.ResourceManager.Sql.Models.ManagedServerCreateMode?), string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, Azure.Core.ResourceIdentifier subnetId = null, string state = null, Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType? licenseType = default(Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = null, string dnsZone = null, string dnsZonePartner = null, bool? isPublicDataEndpointEnabled = default(bool?), Azure.Core.ResourceIdentifier sourceManagedInstanceId = null, System.DateTimeOffset? restorePointInTime = default(System.DateTimeOffset?), Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride? proxyOverride = default(Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride?), string timezoneId = null, Azure.Core.ResourceIdentifier instancePoolId = null, Azure.Core.ResourceIdentifier maintenanceConfigurationId = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? currentBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), bool? isZoneRedundant = default(bool?), Azure.Core.ResourceIdentifier primaryUserAssignedIdentityId = null, System.Uri keyId = null, Azure.ResourceManager.Sql.Models.ManagedInstanceExternalAdministrator administrators = null, Azure.ResourceManager.Sql.Models.SqlServicePrincipal servicePrincipal = null) { throw null; } + public static Azure.ResourceManager.Sql.ManagedInstanceData ManagedInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Sql.Models.SqlSku sku = null, Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState? provisioningState = default(Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState?), Azure.ResourceManager.Sql.Models.ManagedServerCreateMode? managedInstanceCreateMode = default(Azure.ResourceManager.Sql.Models.ManagedServerCreateMode?), string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, Azure.Core.ResourceIdentifier subnetId = null, string state = null, Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType? licenseType = default(Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = null, string dnsZone = null, Azure.Core.ResourceIdentifier dnsZonePartner = null, bool? isPublicDataEndpointEnabled = default(bool?), Azure.Core.ResourceIdentifier sourceManagedInstanceId = null, System.DateTimeOffset? restorePointInTime = default(System.DateTimeOffset?), Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride? proxyOverride = default(Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride?), string timezoneId = null, Azure.Core.ResourceIdentifier instancePoolId = null, Azure.Core.ResourceIdentifier maintenanceConfigurationId = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? currentBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), bool? isZoneRedundant = default(bool?), Azure.Core.ResourceIdentifier primaryUserAssignedIdentityId = null, System.Uri keyId = null, Azure.ResourceManager.Sql.Models.ManagedInstanceExternalAdministrator administrators = null, Azure.ResourceManager.Sql.Models.SqlServicePrincipal servicePrincipal = null) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceDtcData ManagedInstanceDtcData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? dtcEnabled = default(bool?), Azure.ResourceManager.Sql.Models.ManagedInstanceDtcSecuritySettings securitySettings = null, System.Collections.Generic.IEnumerable externalDnsSuffixSearchList = null, string dtcHostNameDnsSuffix = null, Azure.ResourceManager.Sql.Models.JobExecutionProvisioningState? provisioningState = default(Azure.ResourceManager.Sql.Models.JobExecutionProvisioningState?)) { throw null; } public static Azure.ResourceManager.Sql.Models.ManagedInstanceEditionCapability ManagedInstanceEditionCapability(string name = null, System.Collections.Generic.IEnumerable supportedFamilies = null, System.Collections.Generic.IEnumerable supportedStorageCapabilities = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.Sql.Models.SqlCapabilityStatus? status = default(Azure.ResourceManager.Sql.Models.SqlCapabilityStatus?), string reason = null) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceEncryptionProtectorData ManagedInstanceEncryptionProtectorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = null, string serverKeyName = null, Azure.ResourceManager.Sql.Models.SqlServerKeyType? serverKeyType = default(Azure.ResourceManager.Sql.Models.SqlServerKeyType?), System.Uri uri = null, string thumbprint = null, bool? isAutoRotationEnabled = default(bool?)) { throw null; } @@ -5401,7 +5409,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.Models.RecommendedActionMetricInfo RecommendedActionMetricInfo(string metricName = null, string unit = null, string timeGrain = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), double? value = default(double?)) { throw null; } public static Azure.ResourceManager.Sql.Models.RecommendedActionStateInfo RecommendedActionStateInfo(Azure.ResourceManager.Sql.Models.RecommendedActionCurrentState currentValue = default(Azure.ResourceManager.Sql.Models.RecommendedActionCurrentState), Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy? actionInitiatedBy = default(Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy?), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Sql.Models.RecommendedSensitivityLabelUpdate RecommendedSensitivityLabelUpdate(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Sql.Models.RecommendedSensitivityLabelUpdateKind? op = default(Azure.ResourceManager.Sql.Models.RecommendedSensitivityLabelUpdateKind?), string schema = null, string table = null, string column = null) { throw null; } - public static Azure.ResourceManager.Sql.RecoverableDatabaseData RecoverableDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string edition = null, string serviceLevelObjective = null, string elasticPoolName = null, System.DateTimeOffset? lastAvailableBackupOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Sql.RecoverableDatabaseData RecoverableDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string edition = null, string serviceLevelObjective = null, string elasticPoolName = null, System.DateTimeOffset? lastAvailableBackupOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary keys = null) { throw null; } public static Azure.ResourceManager.Sql.RecoverableManagedDatabaseData RecoverableManagedDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string lastAvailableBackupDate = null) { throw null; } public static Azure.ResourceManager.Sql.Models.RefreshExternalGovernanceStatusOperationResult RefreshExternalGovernanceStatusOperationResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? requestId = default(System.Guid?), string requestType = null, string queuedTime = null, string serverName = null, string status = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ResourceWithWritableName ResourceWithWritableName(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?)) { throw null; } @@ -5478,7 +5486,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentQueryCheck SqlVulnerabilityAssessmentQueryCheck(string query = null, System.Collections.Generic.IEnumerable> expectedResult = null, System.Collections.Generic.IEnumerable columnNames = null) { throw null; } public static Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRemediation SqlVulnerabilityAssessmentRemediation(string description = null, System.Collections.Generic.IEnumerable scripts = null, bool? isAutomated = default(bool?), string portalLink = null) { throw null; } public static Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleMetadata SqlVulnerabilityAssessmentRuleMetadata(string ruleId = null, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleSeverity? severity = default(Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleSeverity?), string category = null, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleType? ruleType = default(Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleType?), string title = null, string description = null, string rationale = null, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentQueryCheck queryCheck = null, System.Collections.Generic.IEnumerable benchmarkReferences = null) { throw null; } - public static Azure.ResourceManager.Sql.SqlVulnerabilityAssessmentScanData SqlVulnerabilityAssessmentScanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scanId = null, Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanTriggerType? triggerType = default(Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanTriggerType?), Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanState? state = default(Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, string server = null, string database = null, string sqlVersion = null, int? highSeverityFailedRulesCount = default(int?), int? mediumSeverityFailedRulesCount = default(int?), int? lowSeverityFailedRulesCount = default(int?), int? totalPassedRulesCount = default(int?), int? totalFailedRulesCount = default(int?), int? totalRulesCount = default(int?), bool? isBaselineApplied = default(bool?)) { throw null; } + public static Azure.ResourceManager.Sql.SqlVulnerabilityAssessmentScanData SqlVulnerabilityAssessmentScanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scanId = null, Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanTriggerType? triggerType = default(Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanTriggerType?), Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanState? state = default(Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentScanState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, string server = null, string database = null, string sqlVersion = null, int? highSeverityFailedRulesCount = default(int?), int? mediumSeverityFailedRulesCount = default(int?), int? lowSeverityFailedRulesCount = default(int?), int? totalPassedRulesCount = default(int?), int? totalFailedRulesCount = default(int?), int? totalRulesCount = default(int?), bool? isBaselineApplied = default(bool?), System.DateTimeOffset? lastScanOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentScanError SqlVulnerabilityAssessmentScanError(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.Sql.SqlVulnerabilityAssessmentScanResultData SqlVulnerabilityAssessmentScanResultData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string ruleId = null, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleStatus? status = default(Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleStatus?), string errorMessage = null, bool? isTrimmed = default(bool?), System.Collections.Generic.IEnumerable> queryResults = null, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRemediation remediation = null, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentBaselineAdjustedResult baselineAdjustedResult = null, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentRuleMetadata ruleMetadata = null) { throw null; } public static Azure.ResourceManager.Sql.Models.StorageCapability StorageCapability(Azure.ResourceManager.Sql.Models.StorageCapabilityStorageAccountType? storageAccountType = default(Azure.ResourceManager.Sql.Models.StorageCapabilityStorageAccountType?), Azure.ResourceManager.Sql.Models.SqlCapabilityStatus? status = default(Azure.ResourceManager.Sql.Models.SqlCapabilityStatus?), string reason = null) { throw null; } @@ -6044,12 +6052,15 @@ public ElasticPoolOperationData() { } public partial class ElasticPoolPatch { public ElasticPoolPatch() { } + public Azure.ResourceManager.Sql.Models.SqlAvailabilityZoneType? AvailabilityZone { get { throw null; } set { } } public int? HighAvailabilityReplicaCount { get { throw null; } set { } } public bool? IsZoneRedundant { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ElasticPoolLicenseType? LicenseType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier MaintenanceConfigurationId { get { throw null; } set { } } public long? MaxSizeBytes { get { throw null; } set { } } + public double? MinCapacity { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ElasticPoolPerDatabaseSettings PerDatabaseSettings { get { throw null; } set { } } + public Azure.ResourceManager.Sql.Models.SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.SqlSku Sku { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } @@ -6691,12 +6702,13 @@ public ManagedDatabasePatch() { } public string Collation { get { throw null; } set { } } public System.DateTimeOffset? CreatedOn { get { throw null; } } public Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? CreateMode { get { throw null; } set { } } - public string CrossSubscriptionRestorableDroppedDatabaseId { get { throw null; } set { } } - public string CrossSubscriptionSourceDatabaseId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier CrossSubscriptionRestorableDroppedDatabaseId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier CrossSubscriptionSourceDatabaseId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier CrossSubscriptionTargetManagedInstanceId { get { throw null; } set { } } public Azure.Core.AzureLocation? DefaultSecondaryLocation { get { throw null; } } public System.DateTimeOffset? EarliestRestorePoint { get { throw null; } } public Azure.Core.ResourceIdentifier FailoverGroupId { get { throw null; } } + public bool? IsLedgerOn { get { throw null; } set { } } public string LastBackupName { get { throw null; } set { } } public Azure.Core.ResourceIdentifier LongTermRetentionBackupResourceId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier RecoverableDatabaseId { get { throw null; } set { } } @@ -6905,7 +6917,7 @@ public ManagedInstancePatch() { } public string Collation { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get { throw null; } } public string DnsZone { get { throw null; } } - public string DnsZonePartner { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier DnsZonePartner { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Core.ResourceIdentifier InstancePoolId { get { throw null; } set { } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Extensions/SqlExtensions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Extensions/SqlExtensions.cs index ca5c2ad020393..e1c84fcbeac10 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Extensions/SqlExtensions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Extensions/SqlExtensions.cs @@ -51,25 +51,6 @@ private static SubscriptionResourceExtensionClient GetSubscriptionResourceExtens return new SubscriptionResourceExtensionClient(client, scope); }); } - #region RecoverableDatabaseResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static RecoverableDatabaseResource GetRecoverableDatabaseResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - RecoverableDatabaseResource.ValidateResourceId(id); - return new RecoverableDatabaseResource(client, id); - } - ); - } - #endregion - #region DataMaskingPolicyResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -526,25 +507,6 @@ public static EncryptionProtectorResource GetEncryptionProtectorResource(this Ar } #endregion - #region FailoverGroupResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static FailoverGroupResource GetFailoverGroupResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - FailoverGroupResource.ValidateResourceId(id); - return new FailoverGroupResource(client, id); - } - ); - } - #endregion - #region SqlFirewallRuleResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -1514,25 +1476,6 @@ public static WorkloadGroupResource GetWorkloadGroupResource(this ArmClient clie } #endregion - #region LogicalDatabaseTransparentDataEncryptionResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static LogicalDatabaseTransparentDataEncryptionResource GetLogicalDatabaseTransparentDataEncryptionResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - LogicalDatabaseTransparentDataEncryptionResource.ValidateResourceId(id); - return new LogicalDatabaseTransparentDataEncryptionResource(client, id); - } - ); - } - #endregion - #region BackupShortTermRetentionPolicyResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -1666,25 +1609,6 @@ public static ResourceGroupLongTermRetentionManagedInstanceBackupResource GetRes } #endregion - #region RestorableDroppedDatabaseResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static RestorableDroppedDatabaseResource GetRestorableDroppedDatabaseResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - RestorableDroppedDatabaseResource.ValidateResourceId(id); - return new RestorableDroppedDatabaseResource(client, id); - } - ); - } - #endregion - #region RestorableDroppedManagedDatabaseResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -1761,44 +1685,6 @@ public static ManagedInstanceServerTrustCertificateResource GetManagedInstanceSe } #endregion - #region ElasticPoolResource - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static ElasticPoolResource GetElasticPoolResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - ElasticPoolResource.ValidateResourceId(id); - return new ElasticPoolResource(client, id); - } - ); - } - #endregion - - #region IPv6FirewallRuleResource - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static IPv6FirewallRuleResource GetIPv6FirewallRuleResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - IPv6FirewallRuleResource.ValidateResourceId(id); - return new IPv6FirewallRuleResource(client, id); - } - ); - } - #endregion - #region EndpointCertificateResource /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. @@ -1989,457 +1875,571 @@ public static ManagedServerDnsAliasResource GetManagedServerDnsAliasResource(thi } #endregion - #region SqlDatabaseSqlVulnerabilityAssessmentBaselineResource + #region ManagedDatabaseAdvancedThreatProtectionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlDatabaseSqlVulnerabilityAssessmentBaselineResource GetSqlDatabaseSqlVulnerabilityAssessmentBaselineResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedDatabaseAdvancedThreatProtectionResource GetManagedDatabaseAdvancedThreatProtectionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.ValidateResourceId(id); - return new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(client, id); + ManagedDatabaseAdvancedThreatProtectionResource.ValidateResourceId(id); + return new ManagedDatabaseAdvancedThreatProtectionResource(client, id); } ); } #endregion - #region SqlServerSqlVulnerabilityAssessmentBaselineResource + #region ManagedInstanceAdvancedThreatProtectionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlServerSqlVulnerabilityAssessmentBaselineResource GetSqlServerSqlVulnerabilityAssessmentBaselineResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedInstanceAdvancedThreatProtectionResource GetManagedInstanceAdvancedThreatProtectionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlServerSqlVulnerabilityAssessmentBaselineResource.ValidateResourceId(id); - return new SqlServerSqlVulnerabilityAssessmentBaselineResource(client, id); + ManagedInstanceAdvancedThreatProtectionResource.ValidateResourceId(id); + return new ManagedInstanceAdvancedThreatProtectionResource(client, id); } ); } #endregion - #region SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource + #region SqlServerDatabaseReplicationLinkResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource GetSqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SqlServerDatabaseReplicationLinkResource GetSqlServerDatabaseReplicationLinkResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.ValidateResourceId(id); - return new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(client, id); + SqlServerDatabaseReplicationLinkResource.ValidateResourceId(id); + return new SqlServerDatabaseReplicationLinkResource(client, id); } ); } #endregion - #region SqlServerSqlVulnerabilityAssessmentBaselineRuleResource + #region ManagedInstanceDtcResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlServerSqlVulnerabilityAssessmentBaselineRuleResource GetSqlServerSqlVulnerabilityAssessmentBaselineRuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedInstanceDtcResource GetManagedInstanceDtcResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.ValidateResourceId(id); - return new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(client, id); + ManagedInstanceDtcResource.ValidateResourceId(id); + return new ManagedInstanceDtcResource(client, id); } ); } #endregion - #region SqlDatabaseSqlVulnerabilityAssessmentScanResultResource + #region VirtualClusterResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlDatabaseSqlVulnerabilityAssessmentScanResultResource GetSqlDatabaseSqlVulnerabilityAssessmentScanResultResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static VirtualClusterResource GetVirtualClusterResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.ValidateResourceId(id); - return new SqlDatabaseSqlVulnerabilityAssessmentScanResultResource(client, id); + VirtualClusterResource.ValidateResourceId(id); + return new VirtualClusterResource(client, id); } ); } #endregion - #region SqlServerSqlVulnerabilityAssessmentScanResultResource + #region InstanceFailoverGroupResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlServerSqlVulnerabilityAssessmentScanResultResource GetSqlServerSqlVulnerabilityAssessmentScanResultResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static InstanceFailoverGroupResource GetInstanceFailoverGroupResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlServerSqlVulnerabilityAssessmentScanResultResource.ValidateResourceId(id); - return new SqlServerSqlVulnerabilityAssessmentScanResultResource(client, id); + InstanceFailoverGroupResource.ValidateResourceId(id); + return new InstanceFailoverGroupResource(client, id); } ); } #endregion - #region SqlDatabaseSqlVulnerabilityAssessmentScanResource + #region ManagedDatabaseRestoreDetailResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlDatabaseSqlVulnerabilityAssessmentScanResource GetSqlDatabaseSqlVulnerabilityAssessmentScanResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedDatabaseRestoreDetailResource GetManagedDatabaseRestoreDetailResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlDatabaseSqlVulnerabilityAssessmentScanResource.ValidateResourceId(id); - return new SqlDatabaseSqlVulnerabilityAssessmentScanResource(client, id); + ManagedDatabaseRestoreDetailResource.ValidateResourceId(id); + return new ManagedDatabaseRestoreDetailResource(client, id); } ); } #endregion - #region SqlServerSqlVulnerabilityAssessmentScanResource + #region SqlDatabaseResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlServerSqlVulnerabilityAssessmentScanResource GetSqlServerSqlVulnerabilityAssessmentScanResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SqlDatabaseResource GetSqlDatabaseResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlServerSqlVulnerabilityAssessmentScanResource.ValidateResourceId(id); - return new SqlServerSqlVulnerabilityAssessmentScanResource(client, id); + SqlDatabaseResource.ValidateResourceId(id); + return new SqlDatabaseResource(client, id); } ); } #endregion - #region SqlDatabaseSqlVulnerabilityAssessmentResource + #region ElasticPoolResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlDatabaseSqlVulnerabilityAssessmentResource GetSqlDatabaseSqlVulnerabilityAssessmentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ElasticPoolResource GetElasticPoolResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlDatabaseSqlVulnerabilityAssessmentResource.ValidateResourceId(id); - return new SqlDatabaseSqlVulnerabilityAssessmentResource(client, id); + ElasticPoolResource.ValidateResourceId(id); + return new ElasticPoolResource(client, id); } ); } #endregion - #region SqlServerSqlVulnerabilityAssessmentResource + #region ManagedDatabaseResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlServerSqlVulnerabilityAssessmentResource GetSqlServerSqlVulnerabilityAssessmentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedDatabaseResource GetManagedDatabaseResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlServerSqlVulnerabilityAssessmentResource.ValidateResourceId(id); - return new SqlServerSqlVulnerabilityAssessmentResource(client, id); + ManagedDatabaseResource.ValidateResourceId(id); + return new ManagedDatabaseResource(client, id); } ); } #endregion - #region ManagedDatabaseAdvancedThreatProtectionResource + #region ManagedInstanceResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedDatabaseAdvancedThreatProtectionResource GetManagedDatabaseAdvancedThreatProtectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedInstanceResource GetManagedInstanceResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedDatabaseAdvancedThreatProtectionResource.ValidateResourceId(id); - return new ManagedDatabaseAdvancedThreatProtectionResource(client, id); + ManagedInstanceResource.ValidateResourceId(id); + return new ManagedInstanceResource(client, id); } ); } #endregion - #region ManagedInstanceAdvancedThreatProtectionResource + #region ManagedLedgerDigestUploadResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedInstanceAdvancedThreatProtectionResource GetManagedInstanceAdvancedThreatProtectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedLedgerDigestUploadResource GetManagedLedgerDigestUploadResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedInstanceAdvancedThreatProtectionResource.ValidateResourceId(id); - return new ManagedInstanceAdvancedThreatProtectionResource(client, id); + ManagedLedgerDigestUploadResource.ValidateResourceId(id); + return new ManagedLedgerDigestUploadResource(client, id); } ); } #endregion - #region SqlServerDatabaseReplicationLinkResource + #region RecoverableDatabaseResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlServerDatabaseReplicationLinkResource GetSqlServerDatabaseReplicationLinkResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RecoverableDatabaseResource GetRecoverableDatabaseResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlServerDatabaseReplicationLinkResource.ValidateResourceId(id); - return new SqlServerDatabaseReplicationLinkResource(client, id); + RecoverableDatabaseResource.ValidateResourceId(id); + return new RecoverableDatabaseResource(client, id); } ); } #endregion - #region ManagedInstanceDtcResource + #region RestorableDroppedDatabaseResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedInstanceDtcResource GetManagedInstanceDtcResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RestorableDroppedDatabaseResource GetRestorableDroppedDatabaseResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedInstanceDtcResource.ValidateResourceId(id); - return new ManagedInstanceDtcResource(client, id); + RestorableDroppedDatabaseResource.ValidateResourceId(id); + return new RestorableDroppedDatabaseResource(client, id); } ); } #endregion - #region VirtualClusterResource + #region ManagedInstanceServerConfigurationOptionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static VirtualClusterResource GetVirtualClusterResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedInstanceServerConfigurationOptionResource GetManagedInstanceServerConfigurationOptionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - VirtualClusterResource.ValidateResourceId(id); - return new VirtualClusterResource(client, id); + ManagedInstanceServerConfigurationOptionResource.ValidateResourceId(id); + return new ManagedInstanceServerConfigurationOptionResource(client, id); } ); } #endregion - #region InstanceFailoverGroupResource + #region SqlServerResource /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static InstanceFailoverGroupResource GetInstanceFailoverGroupResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SqlServerResource GetSqlServerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - InstanceFailoverGroupResource.ValidateResourceId(id); - return new InstanceFailoverGroupResource(client, id); + SqlServerResource.ValidateResourceId(id); + return new SqlServerResource(client, id); } ); } #endregion - #region ManagedDatabaseRestoreDetailResource + #region ManagedInstanceStartStopScheduleResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedDatabaseRestoreDetailResource GetManagedDatabaseRestoreDetailResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ManagedInstanceStartStopScheduleResource GetManagedInstanceStartStopScheduleResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedDatabaseRestoreDetailResource.ValidateResourceId(id); - return new ManagedDatabaseRestoreDetailResource(client, id); + ManagedInstanceStartStopScheduleResource.ValidateResourceId(id); + return new ManagedInstanceStartStopScheduleResource(client, id); } ); } #endregion - #region ManagedDatabaseResource + #region LogicalDatabaseTransparentDataEncryptionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedDatabaseResource GetManagedDatabaseResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static LogicalDatabaseTransparentDataEncryptionResource GetLogicalDatabaseTransparentDataEncryptionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedDatabaseResource.ValidateResourceId(id); - return new ManagedDatabaseResource(client, id); + LogicalDatabaseTransparentDataEncryptionResource.ValidateResourceId(id); + return new LogicalDatabaseTransparentDataEncryptionResource(client, id); } ); } #endregion - #region ManagedInstanceResource + #region FailoverGroupResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedInstanceResource GetManagedInstanceResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static FailoverGroupResource GetFailoverGroupResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedInstanceResource.ValidateResourceId(id); - return new ManagedInstanceResource(client, id); + FailoverGroupResource.ValidateResourceId(id); + return new FailoverGroupResource(client, id); } ); } #endregion - #region ManagedInstanceServerConfigurationOptionResource + #region IPv6FirewallRuleResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedInstanceServerConfigurationOptionResource GetManagedInstanceServerConfigurationOptionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static IPv6FirewallRuleResource GetIPv6FirewallRuleResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedInstanceServerConfigurationOptionResource.ValidateResourceId(id); - return new ManagedInstanceServerConfigurationOptionResource(client, id); + IPv6FirewallRuleResource.ValidateResourceId(id); + return new IPv6FirewallRuleResource(client, id); } ); } #endregion - #region SqlDatabaseResource + #region SqlServerSqlVulnerabilityAssessmentBaselineResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlDatabaseResource GetSqlDatabaseResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SqlServerSqlVulnerabilityAssessmentBaselineResource GetSqlServerSqlVulnerabilityAssessmentBaselineResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlDatabaseResource.ValidateResourceId(id); - return new SqlDatabaseResource(client, id); + SqlServerSqlVulnerabilityAssessmentBaselineResource.ValidateResourceId(id); + return new SqlServerSqlVulnerabilityAssessmentBaselineResource(client, id); } ); } #endregion - #region ManagedLedgerDigestUploadResource + #region SqlDatabaseSqlVulnerabilityAssessmentBaselineResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedLedgerDigestUploadResource GetManagedLedgerDigestUploadResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SqlDatabaseSqlVulnerabilityAssessmentBaselineResource GetSqlDatabaseSqlVulnerabilityAssessmentBaselineResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedLedgerDigestUploadResource.ValidateResourceId(id); - return new ManagedLedgerDigestUploadResource(client, id); + SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.ValidateResourceId(id); + return new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(client, id); } ); } #endregion - #region SqlServerResource + #region SqlServerSqlVulnerabilityAssessmentBaselineRuleResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SqlServerResource GetSqlServerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SqlServerSqlVulnerabilityAssessmentBaselineRuleResource GetSqlServerSqlVulnerabilityAssessmentBaselineRuleResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SqlServerResource.ValidateResourceId(id); - return new SqlServerResource(client, id); + SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.ValidateResourceId(id); + return new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(client, id); } ); } #endregion - #region ManagedInstanceStartStopScheduleResource + #region SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ManagedInstanceStartStopScheduleResource GetManagedInstanceStartStopScheduleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource GetSqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ManagedInstanceStartStopScheduleResource.ValidateResourceId(id); - return new ManagedInstanceStartStopScheduleResource(client, id); + SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.ValidateResourceId(id); + return new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(client, id); + } + ); + } + #endregion + + #region SqlServerSqlVulnerabilityAssessmentScanResultResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SqlServerSqlVulnerabilityAssessmentScanResultResource GetSqlServerSqlVulnerabilityAssessmentScanResultResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SqlServerSqlVulnerabilityAssessmentScanResultResource.ValidateResourceId(id); + return new SqlServerSqlVulnerabilityAssessmentScanResultResource(client, id); + } + ); + } + #endregion + + #region SqlDatabaseSqlVulnerabilityAssessmentScanResultResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SqlDatabaseSqlVulnerabilityAssessmentScanResultResource GetSqlDatabaseSqlVulnerabilityAssessmentScanResultResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.ValidateResourceId(id); + return new SqlDatabaseSqlVulnerabilityAssessmentScanResultResource(client, id); + } + ); + } + #endregion + + #region SqlServerSqlVulnerabilityAssessmentScanResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SqlServerSqlVulnerabilityAssessmentScanResource GetSqlServerSqlVulnerabilityAssessmentScanResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SqlServerSqlVulnerabilityAssessmentScanResource.ValidateResourceId(id); + return new SqlServerSqlVulnerabilityAssessmentScanResource(client, id); + } + ); + } + #endregion + + #region SqlDatabaseSqlVulnerabilityAssessmentScanResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SqlDatabaseSqlVulnerabilityAssessmentScanResource GetSqlDatabaseSqlVulnerabilityAssessmentScanResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SqlDatabaseSqlVulnerabilityAssessmentScanResource.ValidateResourceId(id); + return new SqlDatabaseSqlVulnerabilityAssessmentScanResource(client, id); + } + ); + } + #endregion + + #region SqlServerSqlVulnerabilityAssessmentResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SqlServerSqlVulnerabilityAssessmentResource GetSqlServerSqlVulnerabilityAssessmentResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SqlServerSqlVulnerabilityAssessmentResource.ValidateResourceId(id); + return new SqlServerSqlVulnerabilityAssessmentResource(client, id); + } + ); + } + #endregion + + #region SqlDatabaseSqlVulnerabilityAssessmentResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SqlDatabaseSqlVulnerabilityAssessmentResource GetSqlDatabaseSqlVulnerabilityAssessmentResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SqlDatabaseSqlVulnerabilityAssessmentResource.ValidateResourceId(id); + return new SqlDatabaseSqlVulnerabilityAssessmentResource(client, id); } ); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs index 2457a943ceae8..13121345c4093 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs @@ -26,7 +26,7 @@ public IPv6FirewallRuleData() /// Resource name. /// Resource type. /// The start IP address of the firewall rule. Must be IPv6 format. - /// The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress. + /// The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpv6Address. internal IPv6FirewallRuleData(ResourceIdentifier id, string name, ResourceType? resourceType, string startIPv6Address, string endIPv6Address) : base(id, name, resourceType) { StartIPv6Address = startIPv6Address; @@ -35,7 +35,7 @@ internal IPv6FirewallRuleData(ResourceIdentifier id, string name, ResourceType? /// The start IP address of the firewall rule. Must be IPv6 format. public string StartIPv6Address { get; set; } - /// The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress. + /// The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpv6Address. public string EndIPv6Address { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs index adc0e2552e70b..a2b44fbca3bf6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs @@ -77,7 +77,7 @@ public ManagedInstanceData(AzureLocation location) : base(location) /// A CMK URI of the key to use for encryption. /// The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. /// The managed instance's service principal. - internal ManagedInstanceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, SqlSku sku, ManagedInstancePropertiesProvisioningState? provisioningState, ManagedServerCreateMode? managedInstanceCreateMode, string fullyQualifiedDomainName, string administratorLogin, string administratorLoginPassword, ResourceIdentifier subnetId, string state, ManagedInstanceLicenseType? licenseType, int? vCores, int? storageSizeInGB, string collation, string dnsZone, string dnsZonePartner, bool? isPublicDataEndpointEnabled, ResourceIdentifier sourceManagedInstanceId, DateTimeOffset? restorePointInTime, ManagedInstanceProxyOverride? proxyOverride, string timezoneId, ResourceIdentifier instancePoolId, ResourceIdentifier maintenanceConfigurationId, IReadOnlyList privateEndpointConnections, string minimalTlsVersion, SqlBackupStorageRedundancy? currentBackupStorageRedundancy, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy, bool? isZoneRedundant, ResourceIdentifier primaryUserAssignedIdentityId, Uri keyId, ManagedInstanceExternalAdministrator administrators, SqlServicePrincipal servicePrincipal) : base(id, name, resourceType, systemData, tags, location) + internal ManagedInstanceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, SqlSku sku, ManagedInstancePropertiesProvisioningState? provisioningState, ManagedServerCreateMode? managedInstanceCreateMode, string fullyQualifiedDomainName, string administratorLogin, string administratorLoginPassword, ResourceIdentifier subnetId, string state, ManagedInstanceLicenseType? licenseType, int? vCores, int? storageSizeInGB, string collation, string dnsZone, ResourceIdentifier dnsZonePartner, bool? isPublicDataEndpointEnabled, ResourceIdentifier sourceManagedInstanceId, DateTimeOffset? restorePointInTime, ManagedInstanceProxyOverride? proxyOverride, string timezoneId, ResourceIdentifier instancePoolId, ResourceIdentifier maintenanceConfigurationId, IReadOnlyList privateEndpointConnections, string minimalTlsVersion, SqlBackupStorageRedundancy? currentBackupStorageRedundancy, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy, bool? isZoneRedundant, ResourceIdentifier primaryUserAssignedIdentityId, Uri keyId, ManagedInstanceExternalAdministrator administrators, SqlServicePrincipal servicePrincipal) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Sku = sku; @@ -147,7 +147,7 @@ internal ManagedInstanceData(ResourceIdentifier id, string name, ResourceType re /// The Dns Zone that the managed instance is in. public string DnsZone { get; } /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. - public string DnsZonePartner { get; set; } + public ResourceIdentifier DnsZonePartner { get; set; } /// Whether or not the public data endpoint is enabled. public bool? IsPublicDataEndpointEnabled { get; set; } /// The resource identifier of the source managed instance associated with create operation of this instance. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.Serialization.cs index d374954f77295..487319dbe93e7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.Serialization.cs @@ -108,6 +108,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("crossSubscriptionTargetManagedInstanceId"u8); writer.WriteStringValue(CrossSubscriptionTargetManagedInstanceId); } + if (Optional.IsDefined(IsLedgerOn)) + { + writer.WritePropertyName("isLedgerOn"u8); + writer.WriteBooleanValue(IsLedgerOn.Value); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs index 8c87223278a22..f5eedc78c5957 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs @@ -43,11 +43,11 @@ public ManagedDatabasePatch() /// The resource identifier of the source database associated with create operation of this database. public ResourceIdentifier SourceDatabaseId { get; set; } /// The resource identifier of the cross-subscription source database associated with create operation of this database. - public string CrossSubscriptionSourceDatabaseId { get; set; } + public ResourceIdentifier CrossSubscriptionSourceDatabaseId { get; set; } /// The restorable dropped database resource id to restore when creating this database. public ResourceIdentifier RestorableDroppedDatabaseId { get; set; } /// The restorable cross-subscription dropped database resource id to restore when creating this database. - public string CrossSubscriptionRestorableDroppedDatabaseId { get; set; } + public ResourceIdentifier CrossSubscriptionRestorableDroppedDatabaseId { get; set; } /// Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. public string StorageContainerIdentity { get; set; } /// Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. @@ -64,5 +64,7 @@ public ManagedDatabasePatch() public string LastBackupName { get; set; } /// Target managed instance id used in cross-subscription restore. public ResourceIdentifier CrossSubscriptionTargetManagedInstanceId { get; set; } + /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + public bool? IsLedgerOn { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs index 9bc35699fdbdf..7a9a1ab6232ee 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs @@ -190,7 +190,7 @@ internal static ManagedInstanceData DeserializeManagedInstanceData(JsonElement e Optional storageSizeInGB = default; Optional collation = default; Optional dnsZone = default; - Optional dnsZonePartner = default; + Optional dnsZonePartner = default; Optional publicDataEndpointEnabled = default; Optional sourceManagedInstanceId = default; Optional restorePointInTime = default; @@ -366,7 +366,11 @@ internal static ManagedInstanceData DeserializeManagedInstanceData(JsonElement e } if (property0.NameEquals("dnsZonePartner"u8)) { - dnsZonePartner = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dnsZonePartner = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("publicDataEndpointEnabled"u8)) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs index 3a1bd551c4e6f..75208dc710cd8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs @@ -59,7 +59,7 @@ public ManagedInstancePatch() /// The Dns Zone that the managed instance is in. public string DnsZone { get; } /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. - public string DnsZonePartner { get; set; } + public ResourceIdentifier DnsZonePartner { get; set; } /// Whether or not the public data endpoint is enabled. public bool? IsPublicDataEndpointEnabled { get; set; } /// The resource identifier of the source managed instance associated with create operation of this instance. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.Serialization.cs index 3494c322414ca..8fac92e999e50 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.Serialization.cs @@ -20,11 +20,16 @@ internal static RecoverableDatabaseListResult DeserializeRecoverableDatabaseList { return null; } - IReadOnlyList value = default; + Optional> value = default; + Optional nextLink = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -33,8 +38,13 @@ internal static RecoverableDatabaseListResult DeserializeRecoverableDatabaseList value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } } - return new RecoverableDatabaseListResult(value); + return new RecoverableDatabaseListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs index 6c323ceec04bc..72f04d020a882 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs @@ -5,35 +5,33 @@ #nullable disable -using System; using System.Collections.Generic; -using System.Linq; using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { - /// The response to a list recoverable databases request. + /// A list of recoverable databases. internal partial class RecoverableDatabaseListResult { /// Initializes a new instance of RecoverableDatabaseListResult. - /// A list of recoverable databases. - /// is null. - internal RecoverableDatabaseListResult(IEnumerable value) + internal RecoverableDatabaseListResult() { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of RecoverableDatabaseListResult. - /// A list of recoverable databases. - internal RecoverableDatabaseListResult(IReadOnlyList value) + /// Array of results. + /// Link to retrieve next page of results. + internal RecoverableDatabaseListResult(IReadOnlyList value, string nextLink) { Value = value; + NextLink = nextLink; } - /// A list of recoverable databases. + /// Array of results. public IReadOnlyList Value { get; } + /// Link to retrieve next page of results. + public string NextLink { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs index d5841af266bee..85a305f3bda2b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs @@ -38,7 +38,7 @@ public SqlServerPatch() public string FullyQualifiedDomainName { get; } /// List of private endpoint connections on a server. public IReadOnlyList PrivateEndpointConnections { get; } - /// Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'. + /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. public string MinimalTlsVersion { get; set; } /// Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'. public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs index 7f5cb99d1cb68..84534c95f35f6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs @@ -53,7 +53,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Gets a recoverable database, which is a resource representing a database's geo backup + /// Gets a recoverable database. /// /// /// Request Path @@ -66,10 +66,12 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string databaseName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); @@ -77,7 +79,7 @@ public virtual async Task> GetAsync(string scope.Start(); try { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, cancellationToken).ConfigureAwait(false); + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); @@ -90,7 +92,7 @@ public virtual async Task> GetAsync(string } /// - /// Gets a recoverable database, which is a resource representing a database's geo backup + /// Gets a recoverable database. /// /// /// Request Path @@ -103,10 +105,12 @@ public virtual async Task> GetAsync(string /// /// /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string databaseName, CancellationToken cancellationToken = default) + public virtual Response Get(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); @@ -114,7 +118,7 @@ public virtual Response Get(string databaseName, Ca scope.Start(); try { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, cancellationToken); + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); @@ -127,7 +131,7 @@ public virtual Response Get(string databaseName, Ca } /// - /// Gets a list of recoverable databases + /// Gets a list of recoverable databases. /// /// /// Request Path @@ -144,11 +148,12 @@ public virtual Response Get(string databaseName, Ca public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _recoverableDatabaseRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new RecoverableDatabaseResource(Client, RecoverableDatabaseData.DeserializeRecoverableDatabaseData(e)), _recoverableDatabaseClientDiagnostics, Pipeline, "RecoverableDatabaseCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _recoverableDatabaseRestClient.CreateListByServerNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RecoverableDatabaseResource(Client, RecoverableDatabaseData.DeserializeRecoverableDatabaseData(e)), _recoverableDatabaseClientDiagnostics, Pipeline, "RecoverableDatabaseCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// Gets a list of recoverable databases + /// Gets a list of recoverable databases. /// /// /// Request Path @@ -165,7 +170,8 @@ public virtual AsyncPageable GetAllAsync(Cancellati public virtual Pageable GetAll(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _recoverableDatabaseRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new RecoverableDatabaseResource(Client, RecoverableDatabaseData.DeserializeRecoverableDatabaseData(e)), _recoverableDatabaseClientDiagnostics, Pipeline, "RecoverableDatabaseCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _recoverableDatabaseRestClient.CreateListByServerNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RecoverableDatabaseResource(Client, RecoverableDatabaseData.DeserializeRecoverableDatabaseData(e)), _recoverableDatabaseClientDiagnostics, Pipeline, "RecoverableDatabaseCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -182,10 +188,12 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> ExistsAsync(string databaseName, CancellationToken cancellationToken = default) + public virtual async Task> ExistsAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); @@ -193,7 +201,7 @@ public virtual async Task> ExistsAsync(string databaseName, Cance scope.Start(); try { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -217,10 +225,12 @@ public virtual async Task> ExistsAsync(string databaseName, Cance /// /// /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Exists(string databaseName, CancellationToken cancellationToken = default) + public virtual Response Exists(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); @@ -228,7 +238,7 @@ public virtual Response Exists(string databaseName, CancellationToken canc scope.Start(); try { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, cancellationToken: cancellationToken); + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs index 52c7a26e4e3db..769efd848aa20 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs @@ -87,7 +87,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Gets a recoverable database, which is a resource representing a database's geo backup + /// Gets a recoverable database. /// /// /// Request Path @@ -99,14 +99,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string expand = null, string filter = null, CancellationToken cancellationToken = default) { using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); scope.Start(); try { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); @@ -119,7 +121,7 @@ public virtual async Task> GetAsync(Cancel } /// - /// Gets a recoverable database, which is a resource representing a database's geo backup + /// Gets a recoverable database. /// /// /// Request Path @@ -131,14 +133,16 @@ public virtual async Task> GetAsync(Cancel /// /// /// + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(string expand = null, string filter = null, CancellationToken cancellationToken = default) { using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); scope.Start(); try { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs index 2fb8b082ec30e..72e541f6f0dcb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs @@ -33,7 +33,7 @@ public DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations(HttpPipeline pi { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs index b3f531964603c..587389236363f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs @@ -32,7 +32,7 @@ public DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations(HttpPipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs index c76af454835c2..07e52e7cc552f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs @@ -33,7 +33,7 @@ public DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations(HttpPipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs index 291ecd644eb95..f06237336d82c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs @@ -33,7 +33,7 @@ public DatabaseSqlVulnerabilityAssessmentScanResultRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs index 1472644beeb2c..50aeb7364466f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs @@ -33,7 +33,7 @@ public DatabaseSqlVulnerabilityAssessmentScansRestOperations(HttpPipeline pipeli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs index 0f5af913ed4de..dd7d2e80e614d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs @@ -33,7 +33,7 @@ public DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations(HttpPipeline pi { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs index 936a0a6e9aebc..14041c74e31d7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs @@ -33,7 +33,7 @@ public IPv6FirewallRulesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-11-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs index 7ea391acf5d01..93c2388616a0a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs @@ -33,7 +33,7 @@ public ManagedDatabasesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-05-01-preview"; + _apiVersion = apiVersion ?? "2022-08-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs index b261222f84103..84a930c4b7e2c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs @@ -33,11 +33,90 @@ public RecoverableDatabasesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2014-04-01"; + _apiVersion = apiVersion ?? "2022-08-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/recoverableDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a list of recoverable databases. + /// The subscription ID that identifies an Azure subscription. + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The name of the server. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByServerAsync(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); + + using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RecoverableDatabaseListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RecoverableDatabaseListResult.DeserializeRecoverableDatabaseListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a list of recoverable databases. + /// The subscription ID that identifies an Azure subscription. + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The name of the server. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByServer(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); + + using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RecoverableDatabaseListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RecoverableDatabaseListResult.DeserializeRecoverableDatabaseListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand, string filter) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -52,6 +131,14 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou uri.AppendPath(serverName, true); uri.AppendPath("/recoverableDatabases/", false); uri.AppendPath(databaseName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -59,22 +146,24 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Gets a recoverable database, which is a resource representing a database's geo backup. + /// Gets a recoverable database. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server. /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, serverName, databaseName); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, serverName, databaseName, expand, filter); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -92,22 +181,24 @@ public async Task> GetAsync(string subscriptio } } - /// Gets a recoverable database, which is a resource representing a database's geo backup. + /// Gets a recoverable database. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server. /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, serverName, databaseName); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, serverName, databaseName, expand, filter); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -125,21 +216,14 @@ public Response Get(string subscriptionId, string resou } } - internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.Sql/servers/", false); - uri.AppendPath(serverName, true); - uri.AppendPath("/recoverableDatabases", false); - uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendRawNextLink(nextLink, false); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -147,19 +231,21 @@ internal HttpMessage CreateListByServerRequest(string subscriptionId, string res } /// Gets a list of recoverable databases. + /// The URL to the next page of results. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server. /// The cancellation token to use. - /// , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByServerAsync(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + public async Task> ListByServerNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) { + Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); - using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + using var message = CreateListByServerNextPageRequest(nextLink, subscriptionId, resourceGroupName, serverName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,19 +262,21 @@ public async Task> ListByServerAsync(str } /// Gets a list of recoverable databases. + /// The URL to the next page of results. /// The subscription ID that identifies an Azure subscription. /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// The name of the server. /// The cancellation token to use. - /// , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByServer(string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) + public Response ListByServerNextPage(string nextLink, string subscriptionId, string resourceGroupName, string serverName, CancellationToken cancellationToken = default) { + Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(serverName, nameof(serverName)); - using var message = CreateListByServerRequest(subscriptionId, resourceGroupName, serverName); + using var message = CreateListByServerNextPageRequest(nextLink, subscriptionId, resourceGroupName, serverName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs index bf717295b7f4a..75d2172ca5ac8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs @@ -33,7 +33,7 @@ public SqlVulnerabilityAssessmentBaselineRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs index 678bfc2328314..9f4b6007bed28 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs @@ -33,7 +33,7 @@ public SqlVulnerabilityAssessmentBaselinesRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs index 7fd9c9d986e25..ae5f0b594c60a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs @@ -32,7 +32,7 @@ public SqlVulnerabilityAssessmentExecuteScanRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs index 8dac863a45357..00f5d59c9b920 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs @@ -33,7 +33,7 @@ public SqlVulnerabilityAssessmentRuleBaselineRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs index 8bbf4e147ee8e..55138a7045a4d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs @@ -32,7 +32,7 @@ public SqlVulnerabilityAssessmentRuleBaselinesRestOperations(HttpPipeline pipeli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs index 85cd8d8416417..d04e94bb5fd59 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs @@ -33,7 +33,7 @@ public SqlVulnerabilityAssessmentScanResultRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs index ec786f97a96c8..c304b428230e3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs @@ -33,7 +33,7 @@ public SqlVulnerabilityAssessmentScansRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs index 3595c57cef08c..4f84ecf89bc00 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs @@ -32,7 +32,7 @@ public SqlVulnerabilityAssessmentsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs index cb48c2544649a..ba98f21154bdd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs @@ -33,7 +33,7 @@ public SqlVulnerabilityAssessmentsSettingsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01-preview"; + _apiVersion = apiVersion ?? "2022-11-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs index 4d7132ffa41b0..e47d5e1d09281 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs @@ -669,55 +669,6 @@ public virtual Response GetWorkloadGroup(string workloadG return GetWorkloadGroups().Get(workloadGroupName, cancellationToken); } - /// Gets a collection of LogicalDatabaseTransparentDataEncryptionResources in the SqlDatabase. - /// An object representing collection of LogicalDatabaseTransparentDataEncryptionResources and their operations over a LogicalDatabaseTransparentDataEncryptionResource. - public virtual LogicalDatabaseTransparentDataEncryptionCollection GetLogicalDatabaseTransparentDataEncryptions() - { - return GetCachedClient(Client => new LogicalDatabaseTransparentDataEncryptionCollection(Client, Id)); - } - - /// - /// Gets a logical database's transparent data encryption. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{tdeName} - /// - /// - /// Operation Id - /// TransparentDataEncryptions_Get - /// - /// - /// - /// The name of the transparent data encryption configuration. - /// The cancellation token to use. - [ForwardsClientCalls] - public virtual async Task> GetLogicalDatabaseTransparentDataEncryptionAsync(TransparentDataEncryptionName tdeName, CancellationToken cancellationToken = default) - { - return await GetLogicalDatabaseTransparentDataEncryptions().GetAsync(tdeName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a logical database's transparent data encryption. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{tdeName} - /// - /// - /// Operation Id - /// TransparentDataEncryptions_Get - /// - /// - /// - /// The name of the transparent data encryption configuration. - /// The cancellation token to use. - [ForwardsClientCalls] - public virtual Response GetLogicalDatabaseTransparentDataEncryption(TransparentDataEncryptionName tdeName, CancellationToken cancellationToken = default) - { - return GetLogicalDatabaseTransparentDataEncryptions().Get(tdeName, cancellationToken); - } - /// Gets a collection of BackupShortTermRetentionPolicyResources in the SqlDatabase. /// An object representing collection of BackupShortTermRetentionPolicyResources and their operations over a BackupShortTermRetentionPolicyResource. public virtual BackupShortTermRetentionPolicyCollection GetBackupShortTermRetentionPolicies() @@ -963,106 +914,155 @@ public virtual Response GetDatabaseAdv return GetDatabaseAdvancedThreatProtections().Get(advancedThreatProtectionName, cancellationToken); } - /// Gets a collection of SqlDatabaseSqlVulnerabilityAssessmentResources in the SqlDatabase. - /// An object representing collection of SqlDatabaseSqlVulnerabilityAssessmentResources and their operations over a SqlDatabaseSqlVulnerabilityAssessmentResource. - public virtual SqlDatabaseSqlVulnerabilityAssessmentCollection GetSqlDatabaseSqlVulnerabilityAssessments() + /// Gets a collection of SqlServerDatabaseReplicationLinkResources in the SqlDatabase. + /// An object representing collection of SqlServerDatabaseReplicationLinkResources and their operations over a SqlServerDatabaseReplicationLinkResource. + public virtual SqlServerDatabaseReplicationLinkCollection GetSqlServerDatabaseReplicationLinks() { - return GetCachedClient(Client => new SqlDatabaseSqlVulnerabilityAssessmentCollection(Client, Id)); + return GetCachedClient(Client => new SqlServerDatabaseReplicationLinkCollection(Client, Id)); } /// - /// Gets SQL Vulnerability Assessment policy for database. + /// Gets a replication link. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId} /// /// /// Operation Id - /// DatabaseSqlVulnerabilityAssessmentsSettings_Get + /// ReplicationLinks_Get /// /// /// - /// The name of the SQL Vulnerability Assessment. + /// The name of the replication link. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetSqlDatabaseSqlVulnerabilityAssessmentAsync(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + public virtual async Task> GetSqlServerDatabaseReplicationLinkAsync(string linkId, CancellationToken cancellationToken = default) { - return await GetSqlDatabaseSqlVulnerabilityAssessments().GetAsync(vulnerabilityAssessmentName, cancellationToken).ConfigureAwait(false); + return await GetSqlServerDatabaseReplicationLinks().GetAsync(linkId, cancellationToken).ConfigureAwait(false); } /// - /// Gets SQL Vulnerability Assessment policy for database. + /// Gets a replication link. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId} /// /// /// Operation Id - /// DatabaseSqlVulnerabilityAssessmentsSettings_Get + /// ReplicationLinks_Get /// /// /// - /// The name of the SQL Vulnerability Assessment. + /// The name of the replication link. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetSqlDatabaseSqlVulnerabilityAssessment(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + public virtual Response GetSqlServerDatabaseReplicationLink(string linkId, CancellationToken cancellationToken = default) { - return GetSqlDatabaseSqlVulnerabilityAssessments().Get(vulnerabilityAssessmentName, cancellationToken); + return GetSqlServerDatabaseReplicationLinks().Get(linkId, cancellationToken); } - /// Gets a collection of SqlServerDatabaseReplicationLinkResources in the SqlDatabase. - /// An object representing collection of SqlServerDatabaseReplicationLinkResources and their operations over a SqlServerDatabaseReplicationLinkResource. - public virtual SqlServerDatabaseReplicationLinkCollection GetSqlServerDatabaseReplicationLinks() + /// Gets a collection of LogicalDatabaseTransparentDataEncryptionResources in the SqlDatabase. + /// An object representing collection of LogicalDatabaseTransparentDataEncryptionResources and their operations over a LogicalDatabaseTransparentDataEncryptionResource. + public virtual LogicalDatabaseTransparentDataEncryptionCollection GetLogicalDatabaseTransparentDataEncryptions() { - return GetCachedClient(Client => new SqlServerDatabaseReplicationLinkCollection(Client, Id)); + return GetCachedClient(Client => new LogicalDatabaseTransparentDataEncryptionCollection(Client, Id)); } /// - /// Gets a replication link. + /// Gets a logical database's transparent data encryption. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{tdeName} /// /// /// Operation Id - /// ReplicationLinks_Get + /// TransparentDataEncryptions_Get /// /// /// - /// The name of the replication link. + /// The name of the transparent data encryption configuration. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. [ForwardsClientCalls] - public virtual async Task> GetSqlServerDatabaseReplicationLinkAsync(string linkId, CancellationToken cancellationToken = default) + public virtual async Task> GetLogicalDatabaseTransparentDataEncryptionAsync(TransparentDataEncryptionName tdeName, CancellationToken cancellationToken = default) { - return await GetSqlServerDatabaseReplicationLinks().GetAsync(linkId, cancellationToken).ConfigureAwait(false); + return await GetLogicalDatabaseTransparentDataEncryptions().GetAsync(tdeName, cancellationToken).ConfigureAwait(false); } /// - /// Gets a replication link. + /// Gets a logical database's transparent data encryption. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{tdeName} /// /// /// Operation Id - /// ReplicationLinks_Get + /// TransparentDataEncryptions_Get /// /// /// - /// The name of the replication link. + /// The name of the transparent data encryption configuration. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. [ForwardsClientCalls] - public virtual Response GetSqlServerDatabaseReplicationLink(string linkId, CancellationToken cancellationToken = default) + public virtual Response GetLogicalDatabaseTransparentDataEncryption(TransparentDataEncryptionName tdeName, CancellationToken cancellationToken = default) { - return GetSqlServerDatabaseReplicationLinks().Get(linkId, cancellationToken); + return GetLogicalDatabaseTransparentDataEncryptions().Get(tdeName, cancellationToken); + } + + /// Gets a collection of SqlDatabaseSqlVulnerabilityAssessmentResources in the SqlDatabase. + /// An object representing collection of SqlDatabaseSqlVulnerabilityAssessmentResources and their operations over a SqlDatabaseSqlVulnerabilityAssessmentResource. + public virtual SqlDatabaseSqlVulnerabilityAssessmentCollection GetSqlDatabaseSqlVulnerabilityAssessments() + { + return GetCachedClient(Client => new SqlDatabaseSqlVulnerabilityAssessmentCollection(Client, Id)); + } + + /// + /// Gets SQL Vulnerability Assessment policy for database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// + /// + /// Operation Id + /// DatabaseSqlVulnerabilityAssessmentsSettings_Get + /// + /// + /// + /// The name of the SQL Vulnerability Assessment. + /// The cancellation token to use. + [ForwardsClientCalls] + public virtual async Task> GetSqlDatabaseSqlVulnerabilityAssessmentAsync(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + { + return await GetSqlDatabaseSqlVulnerabilityAssessments().GetAsync(vulnerabilityAssessmentName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets SQL Vulnerability Assessment policy for database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// + /// + /// Operation Id + /// DatabaseSqlVulnerabilityAssessmentsSettings_Get + /// + /// + /// + /// The name of the SQL Vulnerability Assessment. + /// The cancellation token to use. + [ForwardsClientCalls] + public virtual Response GetSqlDatabaseSqlVulnerabilityAssessment(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + { + return GetSqlDatabaseSqlVulnerabilityAssessments().Get(vulnerabilityAssessmentName, cancellationToken); } /// diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs index 12302b9992f2f..3ba0dde5c8b46 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs @@ -41,7 +41,7 @@ public SqlServerData(AzureLocation location) : base(location) /// The state of the server. /// The fully qualified domain name of the server. /// List of private endpoint connections on a server. - /// Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'. + /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. /// Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'. /// Whether or not existing server has a workspace created and if it allows connection from workspace. /// The resource id of a user assigned identity to be used by default. @@ -87,7 +87,7 @@ internal SqlServerData(ResourceIdentifier id, string name, ResourceType resource public string FullyQualifiedDomainName { get; } /// List of private endpoint connections on a server. public IReadOnlyList PrivateEndpointConnections { get; } - /// Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'. + /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. public string MinimalTlsVersion { get; set; } /// Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'. public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs index 634aa602de7a0..089dd7aae2b0e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs @@ -111,59 +111,6 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RecoverableDatabaseResources in the SqlServer. - /// An object representing collection of RecoverableDatabaseResources and their operations over a RecoverableDatabaseResource. - public virtual RecoverableDatabaseCollection GetRecoverableDatabases() - { - return GetCachedClient(Client => new RecoverableDatabaseCollection(Client, Id)); - } - - /// - /// Gets a recoverable database, which is a resource representing a database's geo backup - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, CancellationToken cancellationToken = default) - { - return await GetRecoverableDatabases().GetAsync(databaseName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a recoverable database, which is a resource representing a database's geo backup - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual Response GetRecoverableDatabase(string databaseName, CancellationToken cancellationToken = default) - { - return GetRecoverableDatabases().Get(databaseName, cancellationToken); - } - /// Gets a collection of SqlServerCommunicationLinkResources in the SqlServer. /// An object representing collection of SqlServerCommunicationLinkResources and their operations over a SqlServerCommunicationLinkResource. public virtual SqlServerCommunicationLinkCollection GetSqlServerCommunicationLinks() @@ -372,59 +319,6 @@ public virtual Response GetEncryptionProtector(Encr return GetEncryptionProtectors().Get(encryptionProtectorName, cancellationToken); } - /// Gets a collection of FailoverGroupResources in the SqlServer. - /// An object representing collection of FailoverGroupResources and their operations over a FailoverGroupResource. - public virtual FailoverGroupCollection GetFailoverGroups() - { - return GetCachedClient(Client => new FailoverGroupCollection(Client, Id)); - } - - /// - /// Gets a failover group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName} - /// - /// - /// Operation Id - /// FailoverGroups_Get - /// - /// - /// - /// The name of the failover group. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual async Task> GetFailoverGroupAsync(string failoverGroupName, CancellationToken cancellationToken = default) - { - return await GetFailoverGroups().GetAsync(failoverGroupName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a failover group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName} - /// - /// - /// Operation Id - /// FailoverGroups_Get - /// - /// - /// - /// The name of the failover group. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual Response GetFailoverGroup(string failoverGroupName, CancellationToken cancellationToken = default) - { - return GetFailoverGroups().Get(failoverGroupName, cancellationToken); - } - /// Gets a collection of SqlFirewallRuleResources in the SqlServer. /// An object representing collection of SqlFirewallRuleResources and their operations over a SqlFirewallRuleResource. public virtual SqlFirewallRuleCollection GetSqlFirewallRules() @@ -1158,63 +1052,6 @@ public virtual Response GetOutboundFirewallRule(st return GetOutboundFirewallRules().Get(outboundRuleFqdn, cancellationToken); } - /// Gets a collection of RestorableDroppedDatabaseResources in the SqlServer. - /// An object representing collection of RestorableDroppedDatabaseResources and their operations over a RestorableDroppedDatabaseResource. - public virtual RestorableDroppedDatabaseCollection GetRestorableDroppedDatabases() - { - return GetCachedClient(Client => new RestorableDroppedDatabaseCollection(Client, Id)); - } - - /// - /// Gets a restorable dropped database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId} - /// - /// - /// Operation Id - /// RestorableDroppedDatabases_Get - /// - /// - /// - /// The String to use. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual async Task> GetRestorableDroppedDatabaseAsync(string restorableDroppedDatabaseId, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - return await GetRestorableDroppedDatabases().GetAsync(restorableDroppedDatabaseId, expand, filter, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a restorable dropped database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId} - /// - /// - /// Operation Id - /// RestorableDroppedDatabases_Get - /// - /// - /// - /// The String to use. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual Response GetRestorableDroppedDatabase(string restorableDroppedDatabaseId, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - return GetRestorableDroppedDatabases().Get(restorableDroppedDatabaseId, expand, filter, cancellationToken); - } - /// Gets a collection of SqlServerConnectionPolicyResources in the SqlServer. /// An object representing collection of SqlServerConnectionPolicyResources and their operations over a SqlServerConnectionPolicyResource. public virtual SqlServerConnectionPolicyCollection GetSqlServerConnectionPolicies() @@ -1264,363 +1101,530 @@ public virtual Response GetSqlServerConnectio return GetSqlServerConnectionPolicies().Get(connectionPolicyName, cancellationToken); } - /// Gets a collection of ElasticPoolResources in the SqlServer. - /// An object representing collection of ElasticPoolResources and their operations over a ElasticPoolResource. - public virtual ElasticPoolCollection GetElasticPools() + /// Gets a collection of SqlServerBlobAuditingPolicyResources in the SqlServer. + /// An object representing collection of SqlServerBlobAuditingPolicyResources and their operations over a SqlServerBlobAuditingPolicyResource. + public virtual SqlServerBlobAuditingPolicyCollection GetSqlServerBlobAuditingPolicies() { - return GetCachedClient(Client => new ElasticPoolCollection(Client, Id)); + return GetCachedClient(Client => new SqlServerBlobAuditingPolicyCollection(Client, Id)); } /// - /// Gets an elastic pool. + /// Gets a server's blob auditing policy. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName} /// /// /// Operation Id - /// ElasticPools_Get + /// ServerBlobAuditingPolicies_Get /// /// /// - /// The name of the elastic pool. + /// The name of the blob auditing policy. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. [ForwardsClientCalls] - public virtual async Task> GetElasticPoolAsync(string elasticPoolName, CancellationToken cancellationToken = default) + public virtual async Task> GetSqlServerBlobAuditingPolicyAsync(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) { - return await GetElasticPools().GetAsync(elasticPoolName, cancellationToken).ConfigureAwait(false); + return await GetSqlServerBlobAuditingPolicies().GetAsync(blobAuditingPolicyName, cancellationToken).ConfigureAwait(false); } /// - /// Gets an elastic pool. + /// Gets a server's blob auditing policy. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName} /// /// /// Operation Id - /// ElasticPools_Get + /// ServerBlobAuditingPolicies_Get /// /// /// - /// The name of the elastic pool. + /// The name of the blob auditing policy. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. [ForwardsClientCalls] - public virtual Response GetElasticPool(string elasticPoolName, CancellationToken cancellationToken = default) + public virtual Response GetSqlServerBlobAuditingPolicy(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) { - return GetElasticPools().Get(elasticPoolName, cancellationToken); + return GetSqlServerBlobAuditingPolicies().Get(blobAuditingPolicyName, cancellationToken); } - /// Gets a collection of IPv6FirewallRuleResources in the SqlServer. - /// An object representing collection of IPv6FirewallRuleResources and their operations over a IPv6FirewallRuleResource. - public virtual IPv6FirewallRuleCollection GetIPv6FirewallRules() + /// Gets a collection of ExtendedServerBlobAuditingPolicyResources in the SqlServer. + /// An object representing collection of ExtendedServerBlobAuditingPolicyResources and their operations over a ExtendedServerBlobAuditingPolicyResource. + public virtual ExtendedServerBlobAuditingPolicyCollection GetExtendedServerBlobAuditingPolicies() { - return GetCachedClient(Client => new IPv6FirewallRuleCollection(Client, Id)); + return GetCachedClient(Client => new ExtendedServerBlobAuditingPolicyCollection(Client, Id)); } /// - /// Gets an IPv6 firewall rule. + /// Gets an extended server's blob auditing policy. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName} /// /// /// Operation Id - /// IPv6FirewallRules_Get + /// ExtendedServerBlobAuditingPolicies_Get /// /// /// - /// The name of the firewall rule. + /// The name of the blob auditing policy. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. [ForwardsClientCalls] - public virtual async Task> GetIPv6FirewallRuleAsync(string firewallRuleName, CancellationToken cancellationToken = default) + public virtual async Task> GetExtendedServerBlobAuditingPolicyAsync(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) { - return await GetIPv6FirewallRules().GetAsync(firewallRuleName, cancellationToken).ConfigureAwait(false); + return await GetExtendedServerBlobAuditingPolicies().GetAsync(blobAuditingPolicyName, cancellationToken).ConfigureAwait(false); } /// - /// Gets an IPv6 firewall rule. + /// Gets an extended server's blob auditing policy. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName} /// /// /// Operation Id - /// IPv6FirewallRules_Get + /// ExtendedServerBlobAuditingPolicies_Get /// /// /// - /// The name of the firewall rule. + /// The name of the blob auditing policy. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. [ForwardsClientCalls] - public virtual Response GetIPv6FirewallRule(string firewallRuleName, CancellationToken cancellationToken = default) + public virtual Response GetExtendedServerBlobAuditingPolicy(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) { - return GetIPv6FirewallRules().Get(firewallRuleName, cancellationToken); + return GetExtendedServerBlobAuditingPolicies().Get(blobAuditingPolicyName, cancellationToken); } - /// Gets a collection of SqlServerBlobAuditingPolicyResources in the SqlServer. - /// An object representing collection of SqlServerBlobAuditingPolicyResources and their operations over a SqlServerBlobAuditingPolicyResource. - public virtual SqlServerBlobAuditingPolicyCollection GetSqlServerBlobAuditingPolicies() + /// Gets a collection of ServerAdvancedThreatProtectionResources in the SqlServer. + /// An object representing collection of ServerAdvancedThreatProtectionResources and their operations over a ServerAdvancedThreatProtectionResource. + public virtual ServerAdvancedThreatProtectionCollection GetServerAdvancedThreatProtections() { - return GetCachedClient(Client => new SqlServerBlobAuditingPolicyCollection(Client, Id)); + return GetCachedClient(Client => new ServerAdvancedThreatProtectionCollection(Client, Id)); } /// - /// Gets a server's blob auditing policy. + /// Get a server's Advanced Threat Protection state. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName} /// /// /// Operation Id - /// ServerBlobAuditingPolicies_Get + /// ServerAdvancedThreatProtectionSettings_Get /// /// /// - /// The name of the blob auditing policy. + /// The name of the Advanced Threat Protection state. /// The cancellation token to use. [ForwardsClientCalls] - public virtual async Task> GetSqlServerBlobAuditingPolicyAsync(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) + public virtual async Task> GetServerAdvancedThreatProtectionAsync(AdvancedThreatProtectionName advancedThreatProtectionName, CancellationToken cancellationToken = default) { - return await GetSqlServerBlobAuditingPolicies().GetAsync(blobAuditingPolicyName, cancellationToken).ConfigureAwait(false); + return await GetServerAdvancedThreatProtections().GetAsync(advancedThreatProtectionName, cancellationToken).ConfigureAwait(false); } /// - /// Gets a server's blob auditing policy. + /// Get a server's Advanced Threat Protection state. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName} /// /// /// Operation Id - /// ServerBlobAuditingPolicies_Get + /// ServerAdvancedThreatProtectionSettings_Get /// /// /// - /// The name of the blob auditing policy. + /// The name of the Advanced Threat Protection state. /// The cancellation token to use. [ForwardsClientCalls] - public virtual Response GetSqlServerBlobAuditingPolicy(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) + public virtual Response GetServerAdvancedThreatProtection(AdvancedThreatProtectionName advancedThreatProtectionName, CancellationToken cancellationToken = default) { - return GetSqlServerBlobAuditingPolicies().Get(blobAuditingPolicyName, cancellationToken); + return GetServerAdvancedThreatProtections().Get(advancedThreatProtectionName, cancellationToken); } - /// Gets a collection of ExtendedServerBlobAuditingPolicyResources in the SqlServer. - /// An object representing collection of ExtendedServerBlobAuditingPolicyResources and their operations over a ExtendedServerBlobAuditingPolicyResource. - public virtual ExtendedServerBlobAuditingPolicyCollection GetExtendedServerBlobAuditingPolicies() + /// Gets a collection of SqlDatabaseResources in the SqlServer. + /// An object representing collection of SqlDatabaseResources and their operations over a SqlDatabaseResource. + public virtual SqlDatabaseCollection GetSqlDatabases() { - return GetCachedClient(Client => new ExtendedServerBlobAuditingPolicyCollection(Client, Id)); + return GetCachedClient(Client => new SqlDatabaseCollection(Client, Id)); } /// - /// Gets an extended server's blob auditing policy. + /// Gets a database. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} /// /// /// Operation Id - /// ExtendedServerBlobAuditingPolicies_Get + /// Databases_Get /// /// /// - /// The name of the blob auditing policy. + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetExtendedServerBlobAuditingPolicyAsync(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) + public virtual async Task> GetSqlDatabaseAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { - return await GetExtendedServerBlobAuditingPolicies().GetAsync(blobAuditingPolicyName, cancellationToken).ConfigureAwait(false); + return await GetSqlDatabases().GetAsync(databaseName, expand, filter, cancellationToken).ConfigureAwait(false); } /// - /// Gets an extended server's blob auditing policy. + /// Gets a database. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} /// /// /// Operation Id - /// ExtendedServerBlobAuditingPolicies_Get + /// Databases_Get /// /// /// - /// The name of the blob auditing policy. + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetExtendedServerBlobAuditingPolicy(BlobAuditingPolicyName blobAuditingPolicyName, CancellationToken cancellationToken = default) + public virtual Response GetSqlDatabase(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { - return GetExtendedServerBlobAuditingPolicies().Get(blobAuditingPolicyName, cancellationToken); + return GetSqlDatabases().Get(databaseName, expand, filter, cancellationToken); } - /// Gets a collection of ServerAdvancedThreatProtectionResources in the SqlServer. - /// An object representing collection of ServerAdvancedThreatProtectionResources and their operations over a ServerAdvancedThreatProtectionResource. - public virtual ServerAdvancedThreatProtectionCollection GetServerAdvancedThreatProtections() + /// Gets a collection of ElasticPoolResources in the SqlServer. + /// An object representing collection of ElasticPoolResources and their operations over a ElasticPoolResource. + public virtual ElasticPoolCollection GetElasticPools() { - return GetCachedClient(Client => new ServerAdvancedThreatProtectionCollection(Client, Id)); + return GetCachedClient(Client => new ElasticPoolCollection(Client, Id)); } /// - /// Get a server's Advanced Threat Protection state. + /// Gets an elastic pool. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName} /// /// /// Operation Id - /// ServerAdvancedThreatProtectionSettings_Get + /// ElasticPools_Get /// /// /// - /// The name of the Advanced Threat Protection state. + /// The name of the elastic pool. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetServerAdvancedThreatProtectionAsync(AdvancedThreatProtectionName advancedThreatProtectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetElasticPoolAsync(string elasticPoolName, CancellationToken cancellationToken = default) { - return await GetServerAdvancedThreatProtections().GetAsync(advancedThreatProtectionName, cancellationToken).ConfigureAwait(false); + return await GetElasticPools().GetAsync(elasticPoolName, cancellationToken).ConfigureAwait(false); } /// - /// Get a server's Advanced Threat Protection state. + /// Gets an elastic pool. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName} /// /// /// Operation Id - /// ServerAdvancedThreatProtectionSettings_Get + /// ElasticPools_Get /// /// /// - /// The name of the Advanced Threat Protection state. + /// The name of the elastic pool. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetServerAdvancedThreatProtection(AdvancedThreatProtectionName advancedThreatProtectionName, CancellationToken cancellationToken = default) + public virtual Response GetElasticPool(string elasticPoolName, CancellationToken cancellationToken = default) { - return GetServerAdvancedThreatProtections().Get(advancedThreatProtectionName, cancellationToken); + return GetElasticPools().Get(elasticPoolName, cancellationToken); } - /// Gets a collection of SqlServerSqlVulnerabilityAssessmentResources in the SqlServer. - /// An object representing collection of SqlServerSqlVulnerabilityAssessmentResources and their operations over a SqlServerSqlVulnerabilityAssessmentResource. - public virtual SqlServerSqlVulnerabilityAssessmentCollection GetSqlServerSqlVulnerabilityAssessments() + /// Gets a collection of RecoverableDatabaseResources in the SqlServer. + /// An object representing collection of RecoverableDatabaseResources and their operations over a RecoverableDatabaseResource. + public virtual RecoverableDatabaseCollection GetRecoverableDatabases() { - return GetCachedClient(Client => new SqlServerSqlVulnerabilityAssessmentCollection(Client, Id)); + return GetCachedClient(Client => new RecoverableDatabaseCollection(Client, Id)); } /// - /// Gets SQL Vulnerability Assessment policy. + /// Gets a recoverable database. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} /// /// /// Operation Id - /// SqlVulnerabilityAssessmentsSettings_Get + /// RecoverableDatabases_Get /// /// /// - /// The name of the SQL Vulnerability Assessment. + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetSqlServerSqlVulnerabilityAssessmentAsync(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { - return await GetSqlServerSqlVulnerabilityAssessments().GetAsync(vulnerabilityAssessmentName, cancellationToken).ConfigureAwait(false); + return await GetRecoverableDatabases().GetAsync(databaseName, expand, filter, cancellationToken).ConfigureAwait(false); } /// - /// Gets SQL Vulnerability Assessment policy. + /// Gets a recoverable database. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} /// /// /// Operation Id - /// SqlVulnerabilityAssessmentsSettings_Get + /// RecoverableDatabases_Get /// /// /// - /// The name of the SQL Vulnerability Assessment. + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetSqlServerSqlVulnerabilityAssessment(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + public virtual Response GetRecoverableDatabase(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) { - return GetSqlServerSqlVulnerabilityAssessments().Get(vulnerabilityAssessmentName, cancellationToken); + return GetRecoverableDatabases().Get(databaseName, expand, filter, cancellationToken); } - /// Gets a collection of SqlDatabaseResources in the SqlServer. - /// An object representing collection of SqlDatabaseResources and their operations over a SqlDatabaseResource. - public virtual SqlDatabaseCollection GetSqlDatabases() + /// Gets a collection of RestorableDroppedDatabaseResources in the SqlServer. + /// An object representing collection of RestorableDroppedDatabaseResources and their operations over a RestorableDroppedDatabaseResource. + public virtual RestorableDroppedDatabaseCollection GetRestorableDroppedDatabases() { - return GetCachedClient(Client => new SqlDatabaseCollection(Client, Id)); + return GetCachedClient(Client => new RestorableDroppedDatabaseCollection(Client, Id)); } /// - /// Gets a database. + /// Gets a restorable dropped database. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId} /// /// /// Operation Id - /// Databases_Get + /// RestorableDroppedDatabases_Get /// /// /// - /// The name of the database. + /// The String to use. /// The child resources to include in the response. /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetSqlDatabaseAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + public virtual async Task> GetRestorableDroppedDatabaseAsync(string restorableDroppedDatabaseId, string expand = null, string filter = null, CancellationToken cancellationToken = default) { - return await GetSqlDatabases().GetAsync(databaseName, expand, filter, cancellationToken).ConfigureAwait(false); + return await GetRestorableDroppedDatabases().GetAsync(restorableDroppedDatabaseId, expand, filter, cancellationToken).ConfigureAwait(false); } /// - /// Gets a database. + /// Gets a restorable dropped database. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId} /// /// /// Operation Id - /// Databases_Get + /// RestorableDroppedDatabases_Get /// /// /// - /// The name of the database. + /// The String to use. /// The child resources to include in the response. /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetSqlDatabase(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + public virtual Response GetRestorableDroppedDatabase(string restorableDroppedDatabaseId, string expand = null, string filter = null, CancellationToken cancellationToken = default) { - return GetSqlDatabases().Get(databaseName, expand, filter, cancellationToken); + return GetRestorableDroppedDatabases().Get(restorableDroppedDatabaseId, expand, filter, cancellationToken); + } + + /// Gets a collection of FailoverGroupResources in the SqlServer. + /// An object representing collection of FailoverGroupResources and their operations over a FailoverGroupResource. + public virtual FailoverGroupCollection GetFailoverGroups() + { + return GetCachedClient(Client => new FailoverGroupCollection(Client, Id)); + } + + /// + /// Gets a failover group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName} + /// + /// + /// Operation Id + /// FailoverGroups_Get + /// + /// + /// + /// The name of the failover group. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetFailoverGroupAsync(string failoverGroupName, CancellationToken cancellationToken = default) + { + return await GetFailoverGroups().GetAsync(failoverGroupName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a failover group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName} + /// + /// + /// Operation Id + /// FailoverGroups_Get + /// + /// + /// + /// The name of the failover group. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetFailoverGroup(string failoverGroupName, CancellationToken cancellationToken = default) + { + return GetFailoverGroups().Get(failoverGroupName, cancellationToken); + } + + /// Gets a collection of IPv6FirewallRuleResources in the SqlServer. + /// An object representing collection of IPv6FirewallRuleResources and their operations over a IPv6FirewallRuleResource. + public virtual IPv6FirewallRuleCollection GetIPv6FirewallRules() + { + return GetCachedClient(Client => new IPv6FirewallRuleCollection(Client, Id)); + } + + /// + /// Gets an IPv6 firewall rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName} + /// + /// + /// Operation Id + /// IPv6FirewallRules_Get + /// + /// + /// + /// The name of the firewall rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetIPv6FirewallRuleAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + return await GetIPv6FirewallRules().GetAsync(firewallRuleName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets an IPv6 firewall rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName} + /// + /// + /// Operation Id + /// IPv6FirewallRules_Get + /// + /// + /// + /// The name of the firewall rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetIPv6FirewallRule(string firewallRuleName, CancellationToken cancellationToken = default) + { + return GetIPv6FirewallRules().Get(firewallRuleName, cancellationToken); + } + + /// Gets a collection of SqlServerSqlVulnerabilityAssessmentResources in the SqlServer. + /// An object representing collection of SqlServerSqlVulnerabilityAssessmentResources and their operations over a SqlServerSqlVulnerabilityAssessmentResource. + public virtual SqlServerSqlVulnerabilityAssessmentCollection GetSqlServerSqlVulnerabilityAssessments() + { + return GetCachedClient(Client => new SqlServerSqlVulnerabilityAssessmentCollection(Client, Id)); + } + + /// + /// Gets SQL Vulnerability Assessment policy. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// + /// + /// Operation Id + /// SqlVulnerabilityAssessmentsSettings_Get + /// + /// + /// + /// The name of the SQL Vulnerability Assessment. + /// The cancellation token to use. + [ForwardsClientCalls] + public virtual async Task> GetSqlServerSqlVulnerabilityAssessmentAsync(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + { + return await GetSqlServerSqlVulnerabilityAssessments().GetAsync(vulnerabilityAssessmentName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets SQL Vulnerability Assessment policy. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName} + /// + /// + /// Operation Id + /// SqlVulnerabilityAssessmentsSettings_Get + /// + /// + /// + /// The name of the SQL Vulnerability Assessment. + /// The cancellation token to use. + [ForwardsClientCalls] + public virtual Response GetSqlServerSqlVulnerabilityAssessment(VulnerabilityAssessmentName vulnerabilityAssessmentName, CancellationToken cancellationToken = default) + { + return GetSqlServerSqlVulnerabilityAssessments().Get(vulnerabilityAssessmentName, cancellationToken); } /// From cb266fa1ce67540e2b2a201a82e0d3d67fc91407 Mon Sep 17 00:00:00 2001 From: Wei Hu Date: Tue, 25 Jul 2023 14:57:31 +0800 Subject: [PATCH 08/25] Update samples --- .../Samples/Sample_ElasticPoolCollection.cs | 279 +++++++++++++++++- .../Samples/Sample_ElasticPoolResource.cs | 228 +++++++++++--- .../Samples/Sample_FailoverGroupCollection.cs | 82 ++--- .../Samples/Sample_FailoverGroupResource.cs | 43 ++- .../Sample_IPv6FirewallRuleCollection.cs | 10 +- .../Sample_IPv6FirewallRuleResource.cs | 8 +- .../Sample_ManagedDatabaseCollection.cs | 64 +++- .../Samples/Sample_ManagedDatabaseResource.cs | 26 +- .../Sample_ManagedInstanceCollection.cs | 2 +- .../Samples/Sample_ManagedInstanceResource.cs | 2 +- .../Sample_RecoverableDatabaseCollection.cs | 108 +++++-- .../Sample_RecoverableDatabaseResource.cs | 37 ++- ...lnerabilityAssessmentBaselineCollection.cs | 10 +- ...VulnerabilityAssessmentBaselineResource.cs | 6 +- ...abilityAssessmentBaselineRuleCollection.cs | 8 +- ...erabilityAssessmentBaselineRuleResource.cs | 6 +- ...aseSqlVulnerabilityAssessmentCollection.cs | 6 +- ...abaseSqlVulnerabilityAssessmentResource.cs | 4 +- ...qlVulnerabilityAssessmentScanCollection.cs | 6 +- ...eSqlVulnerabilityAssessmentScanResource.cs | 2 +- ...erabilityAssessmentScanResultCollection.cs | 6 +- ...lnerabilityAssessmentScanResultResource.cs | 2 +- ...lnerabilityAssessmentBaselineCollection.cs | 10 +- ...VulnerabilityAssessmentBaselineResource.cs | 6 +- ...abilityAssessmentBaselineRuleCollection.cs | 8 +- ...erabilityAssessmentBaselineRuleResource.cs | 6 +- ...verSqlVulnerabilityAssessmentCollection.cs | 8 +- ...erverSqlVulnerabilityAssessmentResource.cs | 8 +- ...qlVulnerabilityAssessmentScanCollection.cs | 6 +- ...rSqlVulnerabilityAssessmentScanResource.cs | 2 +- ...erabilityAssessmentScanResultCollection.cs | 6 +- ...lnerabilityAssessmentScanResultResource.cs | 2 +- 32 files changed, 791 insertions(+), 216 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolCollection.cs index d52546a86af68..6e7898df7ea30 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ElasticPoolCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetAllElasticPoolsInAServer() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolListByServer.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolListByServer.json // this example is just showing the usage of "ElasticPools_ListByServer" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_GetAllElasticPoolsInAServer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAHyperscaleElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/HyperscaleElasticPoolGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/HyperscaleElasticPoolGet.json // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAHyperscaleElasticPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAHyperscaleElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/HyperscaleElasticPoolGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/HyperscaleElasticPoolGet.json // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetAHyperscaleElasticPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAnElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolGet.json // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_GetAnElasticPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAnElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolGet.json // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -187,12 +187,191 @@ public async Task Exists_GetAnElasticPool() Console.WriteLine($"Succeeded: {result}"); } + // Get an elastic pool with Availability Zone + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAnElasticPoolWithAvailabilityZone() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/GetElasticPoolWithAvailabilityZone.json + // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this ElasticPoolResource + ElasticPoolCollection collection = sqlServer.GetElasticPools(); + + // invoke the operation + string elasticPoolName = "sqlcrudtest-8102"; + ElasticPoolResource result = await collection.GetAsync(elasticPoolName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get an elastic pool with Availability Zone + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAnElasticPoolWithAvailabilityZone() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/GetElasticPoolWithAvailabilityZone.json + // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this ElasticPoolResource + ElasticPoolCollection collection = sqlServer.GetElasticPools(); + + // invoke the operation + string elasticPoolName = "sqlcrudtest-8102"; + bool result = await collection.ExistsAsync(elasticPoolName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get an elastic pool with preferred enclave type parameter + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAnElasticPoolWithPreferredEnclaveTypeParameter() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolGetWithPreferredEnclaveType.json + // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this ElasticPoolResource + ElasticPoolCollection collection = sqlServer.GetElasticPools(); + + // invoke the operation + string elasticPoolName = "sqlcrudtest-8102"; + ElasticPoolResource result = await collection.GetAsync(elasticPoolName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get an elastic pool with preferred enclave type parameter + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAnElasticPoolWithPreferredEnclaveTypeParameter() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolGetWithPreferredEnclaveType.json + // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this ElasticPoolResource + ElasticPoolCollection collection = sqlServer.GetElasticPools(); + + // invoke the operation + string elasticPoolName = "sqlcrudtest-8102"; + bool result = await collection.ExistsAsync(elasticPoolName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Create or Update an elastic pool with Availability Zone + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateAnElasticPoolWithAvailabilityZone() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/CreateElasticPoolWithAvailabilityZone.json + // this example is just showing the usage of "ElasticPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this ElasticPoolResource + ElasticPoolCollection collection = sqlServer.GetElasticPools(); + + // invoke the operation + string elasticPoolName = "sqlcrudtest-8102"; + ElasticPoolData data = new ElasticPoolData(new AzureLocation("Japan East")) + { + Sku = new SqlSku("HS_Gen5_4"), + PerDatabaseSettings = new ElasticPoolPerDatabaseSettings() + { + MinCapacity = 0.25, + MaxCapacity = 2, + }, + IsZoneRedundant = true, + AvailabilityZone = SqlAvailabilityZoneType.One, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, elasticPoolName, data); + ElasticPoolResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Create or update Hyperscale elastic pool with high availability replica count parameter [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateHyperscaleElasticPoolWithHighAvailabilityReplicaCountParameter() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/HyperscaleElasticPoolCreateOrUpdateSetHighAvailabilityReplicaCount.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/HyperscaleElasticPoolCreateOrUpdateSetHighAvailabilityReplicaCount.json // this example is just showing the usage of "ElasticPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -233,7 +412,7 @@ public async Task CreateOrUpdate_CreateOrUpdateHyperscaleElasticPoolWithHighAvai [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithAllParameter() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolCreateOrUpdateMax.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolCreateOrUpdateMax.json // this example is just showing the usage of "ElasticPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -282,7 +461,7 @@ public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithAllParameter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithMaintenanceConfigurationParameter() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolCreateOrUpdateSetMaintenanceConfiguration.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolCreateOrUpdateSetMaintenanceConfiguration.json // this example is just showing the usage of "ElasticPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -322,7 +501,7 @@ public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithMaintenanceConfigu [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithMinimumParameters() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolCreateOrUpdateMin.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolCreateOrUpdateMin.json // this example is just showing the usage of "ElasticPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -353,5 +532,87 @@ public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithMinimumParameters( // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + + // Create or update elastic pool with preferred enclave type parameter as Default + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithPreferredEnclaveTypeParameterAsDefault() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolCreateWithDefaultPreferredEnclaveType.json + // this example is just showing the usage of "ElasticPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this ElasticPoolResource + ElasticPoolCollection collection = sqlServer.GetElasticPools(); + + // invoke the operation + string elasticPoolName = "sqlcrudtest-8102"; + ElasticPoolData data = new ElasticPoolData(new AzureLocation("Japan East")) + { + Sku = new SqlSku("GP_Gen5_4"), + PreferredEnclaveType = SqlAlwaysEncryptedEnclaveType.Default, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, elasticPoolName, data); + ElasticPoolResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or update elastic pool with preferred enclave type parameter as VBS + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateElasticPoolWithPreferredEnclaveTypeParameterAsVBS() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolCreateWithVBSPreferredEnclaveType.json + // this example is just showing the usage of "ElasticPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this ElasticPoolResource + ElasticPoolCollection collection = sqlServer.GetElasticPools(); + + // invoke the operation + string elasticPoolName = "sqlcrudtest-8102"; + ElasticPoolData data = new ElasticPoolData(new AzureLocation("Japan East")) + { + Sku = new SqlSku("GP_Gen5_4"), + PreferredEnclaveType = SqlAlwaysEncryptedEnclaveType.Vbs, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, elasticPoolName, data); + ElasticPoolResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolResource.cs index 77ecb7ea76a34..7ca2bf1dc6f2a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ElasticPoolResource.cs @@ -203,12 +203,47 @@ public async Task GetElasticPoolOperations_ListTheElasticPoolManagementOperation Console.WriteLine($"Succeeded"); } + // Gets a list of databases in an elastic pool. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetDatabases_GetsAListOfDatabasesInAnElasticPool() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ListDatabasesByElasticPool.json + // this example is just showing the usage of "Databases_ListByElasticPool" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ElasticPoolResource created on azure + // for more information of creating ElasticPoolResource, please refer to the document of ElasticPoolResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "Default-SQL-SouthEastAsia"; + string serverName = "testsvr"; + string elasticPoolName = "pool1"; + ResourceIdentifier elasticPoolResourceId = ElasticPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, elasticPoolName); + ElasticPoolResource elasticPool = client.GetElasticPoolResource(elasticPoolResourceId); + + // invoke the operation and iterate over the result + await foreach (SqlDatabaseResource item in elasticPool.GetDatabasesAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SqlDatabaseData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + // Get a Hyperscale elastic pool [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAHyperscaleElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/HyperscaleElasticPoolGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/HyperscaleElasticPoolGet.json // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -240,7 +275,71 @@ public async Task Get_GetAHyperscaleElasticPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAnElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolGet.json + // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ElasticPoolResource created on azure + // for more information of creating ElasticPoolResource, please refer to the document of ElasticPoolResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + string elasticPoolName = "sqlcrudtest-8102"; + ResourceIdentifier elasticPoolResourceId = ElasticPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, elasticPoolName); + ElasticPoolResource elasticPool = client.GetElasticPoolResource(elasticPoolResourceId); + + // invoke the operation + ElasticPoolResource result = await elasticPool.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get an elastic pool with Availability Zone + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAnElasticPoolWithAvailabilityZone() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/GetElasticPoolWithAvailabilityZone.json + // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ElasticPoolResource created on azure + // for more information of creating ElasticPoolResource, please refer to the document of ElasticPoolResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + string elasticPoolName = "sqlcrudtest-8102"; + ResourceIdentifier elasticPoolResourceId = ElasticPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, elasticPoolName); + ElasticPoolResource elasticPool = client.GetElasticPoolResource(elasticPoolResourceId); + + // invoke the operation + ElasticPoolResource result = await elasticPool.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get an elastic pool with preferred enclave type parameter + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAnElasticPoolWithPreferredEnclaveTypeParameter() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolGetWithPreferredEnclaveType.json // this example is just showing the usage of "ElasticPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -272,7 +371,7 @@ public async Task Get_GetAnElasticPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAnElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolDelete.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolDelete.json // this example is just showing the usage of "ElasticPools_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -300,7 +399,7 @@ public async Task Delete_DeleteAnElasticPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AssignsMaintenanceConfigurationToAnElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolUpdateAssignMaintenanceConfiguration.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolUpdateAssignMaintenanceConfiguration.json // this example is just showing the usage of "ElasticPools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -332,12 +431,88 @@ public async Task Update_AssignsMaintenanceConfigurationToAnElasticPool() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // Create or update elastic pool with preferred enclave type parameter as Default + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateElasticPoolWithPreferredEnclaveTypeParameterAsDefault() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolUpdateWithDefaultPreferredEnclaveType.json + // this example is just showing the usage of "ElasticPools_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ElasticPoolResource created on azure + // for more information of creating ElasticPoolResource, please refer to the document of ElasticPoolResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + string elasticPoolName = "sqlcrudtest-8102"; + ResourceIdentifier elasticPoolResourceId = ElasticPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, elasticPoolName); + ElasticPoolResource elasticPool = client.GetElasticPoolResource(elasticPoolResourceId); + + // invoke the operation + ElasticPoolPatch patch = new ElasticPoolPatch() + { + Sku = new SqlSku("GP_Gen5_4"), + PreferredEnclaveType = SqlAlwaysEncryptedEnclaveType.Default, + }; + ArmOperation lro = await elasticPool.UpdateAsync(WaitUntil.Completed, patch); + ElasticPoolResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or update elastic pool with preferred enclave type parameter as VBS + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateElasticPoolWithPreferredEnclaveTypeParameterAsVBS() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolUpdateWithVBSPreferredEnclaveType.json + // this example is just showing the usage of "ElasticPools_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ElasticPoolResource created on azure + // for more information of creating ElasticPoolResource, please refer to the document of ElasticPoolResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "sqlcrudtest-2369"; + string serverName = "sqlcrudtest-8069"; + string elasticPoolName = "sqlcrudtest-8102"; + ResourceIdentifier elasticPoolResourceId = ElasticPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, elasticPoolName); + ElasticPoolResource elasticPool = client.GetElasticPoolResource(elasticPoolResourceId); + + // invoke the operation + ElasticPoolPatch patch = new ElasticPoolPatch() + { + Sku = new SqlSku("GP_Gen5_4"), + PreferredEnclaveType = SqlAlwaysEncryptedEnclaveType.Vbs, + }; + ArmOperation lro = await elasticPool.UpdateAsync(WaitUntil.Completed, patch); + ElasticPoolResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ElasticPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Resets maintenance configuration of an elastic pool to default. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ResetsMaintenanceConfigurationOfAnElasticPoolToDefault() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolUpdateResetMaintenanceConfiguration.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolUpdateResetMaintenanceConfiguration.json // this example is just showing the usage of "ElasticPools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -374,7 +549,7 @@ public async Task Update_ResetsMaintenanceConfigurationOfAnElasticPoolToDefault( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAnElasticPoolWithAllParameter() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolUpdateMax.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolUpdateMax.json // this example is just showing the usage of "ElasticPools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -422,7 +597,7 @@ public async Task Update_UpdateAnElasticPoolWithAllParameter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAnElasticPoolWithMinimumParameters() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolUpdateMin.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ElasticPoolUpdateMin.json // this example is just showing the usage of "ElasticPools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -456,7 +631,7 @@ public async Task Update_UpdateAnElasticPoolWithMinimumParameters() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateHighAvailabilityReplicaCountOfAHyperscaleElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/HyperscaleElasticPoolUpdateSetHighAvailabilityReplicaCount.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/HyperscaleElasticPoolUpdateSetHighAvailabilityReplicaCount.json // this example is just showing the usage of "ElasticPools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -493,7 +668,7 @@ public async Task Update_UpdateHighAvailabilityReplicaCountOfAHyperscaleElasticP [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Failover_FailoverAnElasticPool() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/FailoverElasticPool.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/FailoverElasticPool.json // this example is just showing the usage of "ElasticPools_Failover" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -515,40 +690,5 @@ public async Task Failover_FailoverAnElasticPool() Console.WriteLine($"Succeeded"); } - - // Gets a list of databases in an elastic pool. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetDatabases_GetsAListOfDatabasesInAnElasticPool() - { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ListDatabasesByElasticPool.json - // this example is just showing the usage of "Databases_ListByElasticPool" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ElasticPoolResource created on azure - // for more information of creating ElasticPoolResource, please refer to the document of ElasticPoolResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "Default-SQL-SouthEastAsia"; - string serverName = "testsvr"; - string elasticPoolName = "pool1"; - ResourceIdentifier elasticPoolResourceId = ElasticPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, elasticPoolName); - ElasticPoolResource elasticPool = client.GetElasticPoolResource(elasticPoolResourceId); - - // invoke the operation and iterate over the result - await foreach (SqlDatabaseResource item in elasticPool.GetDatabasesAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - SqlDatabaseData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs index bbd2c49622cf1..dfd5ebd62974a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs @@ -18,12 +18,49 @@ namespace Azure.ResourceManager.Sql.Samples { public partial class Sample_FailoverGroupCollection { + // List failover group + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListFailoverGroup() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupList.json + // this example is just showing the usage of "FailoverGroups_ListByServer" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "Default"; + string serverName = "failover-group-primary-server"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this FailoverGroupResource + FailoverGroupCollection collection = sqlServer.GetFailoverGroups(); + + // invoke the operation and iterate over the result + await foreach (FailoverGroupResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FailoverGroupData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + // Get failover group [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFailoverGroup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupGet.json // this example is just showing the usage of "FailoverGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +95,7 @@ public async Task Get_GetFailoverGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFailoverGroup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupGet.json // this example is just showing the usage of "FailoverGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +126,7 @@ public async Task Exists_GetFailoverGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFailoverGroup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupCreateOrUpdate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupCreateOrUpdate.json // this example is just showing the usage of "FailoverGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +160,7 @@ public async Task CreateOrUpdate_CreateFailoverGroup() }, Databases = { -"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server/databases/testdb-1","/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server/databases/testdb-2" +new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server/databases/testdb-1"),new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server/databases/testdb-2") }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, failoverGroupName, data); @@ -135,42 +172,5 @@ public async Task CreateOrUpdate_CreateFailoverGroup() // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - - // List failover group - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListFailoverGroup() - { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupList.json - // this example is just showing the usage of "FailoverGroups_ListByServer" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SqlServerResource created on azure - // for more information of creating SqlServerResource, please refer to the document of SqlServerResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "Default"; - string serverName = "failover-group-primary-server"; - ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); - SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); - - // get the collection of this FailoverGroupResource - FailoverGroupCollection collection = sqlServer.GetFailoverGroups(); - - // invoke the operation and iterate over the result - await foreach (FailoverGroupResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - FailoverGroupData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupResource.cs index dd0aa5cf27d61..a810a311d335b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_FailoverGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFailoverGroup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupGet.json // this example is just showing the usage of "FailoverGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetFailoverGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFailoverGroup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupDelete.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupDelete.json // this example is just showing the usage of "FailoverGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteFailoverGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateFailoverGroup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupUpdate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupUpdate.json // this example is just showing the usage of "FailoverGroups_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Update_UpdateFailoverGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Failover_PlannedFailoverOfAFailoverGroup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupFailover.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupFailover.json // this example is just showing the usage of "FailoverGroups_Failover" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Failover_PlannedFailoverOfAFailoverGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ForceFailoverAllowDataLoss_ForcedFailoverOfAFailoverGroupAllowingDataLoss() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupForceFailoverAllowDataLoss.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupForceFailoverAllowDataLoss.json // this example is just showing the usage of "FailoverGroups_ForceFailoverAllowDataLoss" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -187,5 +187,38 @@ public async Task ForceFailoverAllowDataLoss_ForcedFailoverOfAFailoverGroupAllow // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + + // Try planned before forced failover of a failover group + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TryPlannedBeforeForcedFailover_TryPlannedBeforeForcedFailoverOfAFailoverGroup() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/FailoverGroupTryPlannedBeforeForcedFailover.json + // this example is just showing the usage of "FailoverGroups_TryPlannedBeforeForcedFailover" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FailoverGroupResource created on azure + // for more information of creating FailoverGroupResource, please refer to the document of FailoverGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "Default"; + string serverName = "failovergroupsecondaryserver"; + string failoverGroupName = "failovergrouptest3"; + ResourceIdentifier failoverGroupResourceId = FailoverGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, failoverGroupName); + FailoverGroupResource failoverGroup = client.GetFailoverGroupResource(failoverGroupResourceId); + + // invoke the operation + ArmOperation lro = await failoverGroup.TryPlannedBeforeForcedFailoverAsync(WaitUntil.Completed); + FailoverGroupResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FailoverGroupData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleCollection.cs index a0e59e37e3f98..584aea8889c54 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_IPv6FirewallRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListIPv6FirewallRules() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleList.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleList.json // this example is just showing the usage of "IPv6FirewallRules_ListByServer" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetAll_ListIPv6FirewallRules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIPv6FirewallRule() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleGet.json // this example is just showing the usage of "IPv6FirewallRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetIPv6FirewallRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetIPv6FirewallRule() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleGet.json // this example is just showing the usage of "IPv6FirewallRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetIPv6FirewallRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnIPv6FirewallRuleMaxMin() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleCreate.json // this example is just showing the usage of "IPv6FirewallRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreateAnIPv6FirewallRuleMaxMin() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateAnIPv6FirewallRuleMaxMin() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleUpdate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleUpdate.json // this example is just showing the usage of "IPv6FirewallRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleResource.cs index 0e203732493ce..ee33fe05e4c9d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_IPv6FirewallRuleResource.cs @@ -22,7 +22,7 @@ public partial class Sample_IPv6FirewallRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIPv6FirewallRule() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleGet.json // this example is just showing the usage of "IPv6FirewallRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetIPv6FirewallRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateAnIPv6FirewallRuleMaxMin() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleCreate.json // this example is just showing the usage of "IPv6FirewallRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_CreateAnIPv6FirewallRuleMaxMin() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAnIPv6FirewallRuleMaxMin() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleUpdate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleUpdate.json // this example is just showing the usage of "IPv6FirewallRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task Update_UpdateAnIPv6FirewallRuleMaxMin() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAnIPv6FirewallRule() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleDelete.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/IPv6FirewallRuleDelete.json // this example is just showing the usage of "IPv6FirewallRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseCollection.cs index 4071800055ae4..ecb55bf23decf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ManagedDatabaseCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDatabasesByManagedInstances() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseListByManagedInstance.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseListByManagedInstance.json // this example is just showing the usage of "ManagedDatabases_ListByInstance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListDatabasesByManagedInstances() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAManagedDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseGet.json // this example is just showing the usage of "ManagedDatabases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetsAManagedDatabase() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAManagedDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseGet.json // this example is just showing the usage of "ManagedDatabases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetsAManagedDatabase() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseByRestoringFromAnExternalBackup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreateRestoreExternalBackup.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreateRestoreExternalBackup.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseByRestoringFromAnExte [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseByRestoringFromAnExternalBackupUsingManagedIdentity() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreateRestoreExternalBackupManagedIdentity.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreateRestoreExternalBackupManagedIdentity.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -216,7 +216,7 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseByRestoringFromAnExte [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseFromRestoringAGeoReplicatedBackup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreateRecovery.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreateRecovery.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -257,7 +257,7 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseFromRestoringAGeoRepl [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseFromRestoringALongTermRetentionBackup() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreateRestoreLtrBackup.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreateRestoreLtrBackup.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -300,7 +300,7 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseFromRestoringALongTer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseUsingCrossSubscriptionPointInTimeRestore() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreateCrossSubscriptionPointInTimeRestore.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreateCrossSubscriptionPointInTimeRestore.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -325,7 +325,7 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseUsingCrossSubscriptio { RestorePointInTime = DateTimeOffset.Parse("2017-07-14T05:35:31.503Z"), CreateMode = ManagedDatabaseCreateMode.PointInTimeRestore, - CrossSubscriptionSourceDatabaseId = "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/testsvr2/databases/testdb", + CrossSubscriptionSourceDatabaseId = new ResourceIdentifier("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/testsvr2/databases/testdb"), CrossSubscriptionTargetManagedInstanceId = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/testsvr"), }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseName, data); @@ -343,7 +343,7 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseUsingCrossSubscriptio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseUsingPointInTimeRestore() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreatePointInTimeRestore.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreatePointInTimeRestore.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -380,12 +380,52 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseUsingPointInTimeResto Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // Creates a new managed database with ledger on. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreatesANewManagedDatabaseWithLedgerOn() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/CreateManagedDatabaseLedger.json + // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ManagedInstanceResource created on azure + // for more information of creating ManagedInstanceResource, please refer to the document of ManagedInstanceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "Default-SQL-SouthEastAsia"; + string managedInstanceName = "managedInstance"; + ResourceIdentifier managedInstanceResourceId = ManagedInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, managedInstanceName); + ManagedInstanceResource managedInstance = client.GetManagedInstanceResource(managedInstanceResourceId); + + // get the collection of this ManagedDatabaseResource + ManagedDatabaseCollection collection = managedInstance.GetManagedDatabases(); + + // invoke the operation + string databaseName = "managedDatabase"; + ManagedDatabaseData data = new ManagedDatabaseData(new AzureLocation("southeastasia")) + { + IsLedgerOn = true, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseName, data); + ManagedDatabaseResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ManagedDatabaseData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Creates a new managed database with maximal properties [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseWithMaximalProperties() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreateMax.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreateMax.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -428,7 +468,7 @@ public async Task CreateOrUpdate_CreatesANewManagedDatabaseWithMaximalProperties [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesANewManagedDatabaseWithMinimalProperties() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCreateMin.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCreateMin.json // this example is just showing the usage of "ManagedDatabases_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseResource.cs index 3d03d4dc90ebf..7a01b974d03ff 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedDatabaseResource.cs @@ -495,7 +495,7 @@ public async Task UpdateRecommendedManagedDatabaseSensitivityLabel_UpdateRecomme [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAManagedDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseGet.json // this example is just showing the usage of "ManagedDatabases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -527,7 +527,7 @@ public async Task Get_GetsAManagedDatabase() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteManagedDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseDelete.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseDelete.json // this example is just showing the usage of "ManagedDatabases_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -555,7 +555,7 @@ public async Task Delete_DeleteManagedDatabase() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatesAManagedDatabaseWithMaximalProperties() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseUpdateMax.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseUpdateMax.json // this example is just showing the usage of "ManagedDatabases_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -595,7 +595,7 @@ public async Task Update_UpdatesAManagedDatabaseWithMaximalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatesAManagedDatabaseWithMinimalProperties() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseUpdateMin.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseUpdateMin.json // this example is just showing the usage of "ManagedDatabases_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -635,7 +635,7 @@ public async Task Update_UpdatesAManagedDatabaseWithMinimalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CancelMove_CancelsAManagedDatabaseMove() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCancelMove.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCancelMove.json // this example is just showing the usage of "ManagedDatabases_CancelMove" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -653,7 +653,7 @@ public async Task CancelMove_CancelsAManagedDatabaseMove() ManagedDatabaseResource managedDatabase = client.GetManagedDatabaseResource(managedDatabaseResourceId); // invoke the operation - ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition = new ManagedDatabaseMoveDefinition(new ResourceIdentifier("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")); + ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition = new ManagedDatabaseMoveDefinition(new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")); await managedDatabase.CancelMoveAsync(WaitUntil.Completed, managedDatabaseMoveDefinition); Console.WriteLine($"Succeeded"); @@ -664,7 +664,7 @@ public async Task CancelMove_CancelsAManagedDatabaseMove() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CompleteMove_CompletesAManagedDatabaseMove() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCompleteMove.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCompleteMove.json // this example is just showing the usage of "ManagedDatabases_CompleteMove" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -682,7 +682,7 @@ public async Task CompleteMove_CompletesAManagedDatabaseMove() ManagedDatabaseResource managedDatabase = client.GetManagedDatabaseResource(managedDatabaseResourceId); // invoke the operation - ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition = new ManagedDatabaseMoveDefinition(new ResourceIdentifier("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")); + ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition = new ManagedDatabaseMoveDefinition(new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")); await managedDatabase.CompleteMoveAsync(WaitUntil.Completed, managedDatabaseMoveDefinition); Console.WriteLine($"Succeeded"); @@ -693,7 +693,7 @@ public async Task CompleteMove_CompletesAManagedDatabaseMove() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CompleteRestore_CompletesAManagedDatabaseExternalBackupRestore() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseCompleteExternalRestore.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCompleteExternalRestore.json // this example is just showing the usage of "ManagedDatabases_CompleteRestore" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -722,7 +722,7 @@ public async Task CompleteRestore_CompletesAManagedDatabaseExternalBackupRestore [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartMove_StartsAManagedDatabaseMoveWithAllOptionalParametersSpecified() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseStartMoveMax.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMax.json // this example is just showing the usage of "ManagedDatabases_StartMove" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -740,7 +740,7 @@ public async Task StartMove_StartsAManagedDatabaseMoveWithAllOptionalParametersS ManagedDatabaseResource managedDatabase = client.GetManagedDatabaseResource(managedDatabaseResourceId); // invoke the operation - ManagedDatabaseStartMoveDefinition managedDatabaseStartMoveDefinition = new ManagedDatabaseStartMoveDefinition(new ResourceIdentifier("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")) + ManagedDatabaseStartMoveDefinition managedDatabaseStartMoveDefinition = new ManagedDatabaseStartMoveDefinition(new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")) { OperationMode = ManagedDatabaseMoveOperationMode.Copy, }; @@ -754,7 +754,7 @@ public async Task StartMove_StartsAManagedDatabaseMoveWithAllOptionalParametersS [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartMove_StartsAManagedDatabaseMoveWithNoOptionalParametersSpecified() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/ManagedDatabaseStartMoveMin.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMin.json // this example is just showing the usage of "ManagedDatabases_StartMove" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -772,7 +772,7 @@ public async Task StartMove_StartsAManagedDatabaseMoveWithNoOptionalParametersSp ManagedDatabaseResource managedDatabase = client.GetManagedDatabaseResource(managedDatabaseResourceId); // invoke the operation - ManagedDatabaseStartMoveDefinition managedDatabaseStartMoveDefinition = new ManagedDatabaseStartMoveDefinition(new ResourceIdentifier("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")); + ManagedDatabaseStartMoveDefinition managedDatabaseStartMoveDefinition = new ManagedDatabaseStartMoveDefinition(new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase")); await managedDatabase.StartMoveAsync(WaitUntil.Completed, managedDatabaseStartMoveDefinition); Console.WriteLine($"Succeeded"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs index 7f56a611caa32..a2cbe813fa034 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs @@ -257,7 +257,7 @@ public async Task CreateOrUpdate_CreateManagedInstanceWithAllProperties() VCores = 8, StorageSizeInGB = 1024, Collation = "SQL_Latin1_General_CP1_CI_AS", - DnsZonePartner = "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + DnsZonePartner = new ResourceIdentifier("/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance"), IsPublicDataEndpointEnabled = false, ProxyOverride = ManagedInstanceProxyOverride.Redirect, TimezoneId = "UTC", diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceResource.cs index 92471cbd281c2..3a609b8121779 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceResource.cs @@ -89,7 +89,7 @@ public async Task GetSqlServerTrustGroups_ListServerTrustGroupsByManagedInstance [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetInaccessibleManagedDatabases_ListInaccessibleManagedDatabasesByManagedInstances() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/examples/InaccessibleManagedDatabaseListByManagedInstance.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/InaccessibleManagedDatabaseListByManagedInstance.json // this example is just showing the usage of "ManagedDatabases_ListInaccessibleByInstance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs index c202872ccdfca..cc94d2422ab39 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs @@ -16,12 +16,49 @@ namespace Azure.ResourceManager.Sql.Samples { public partial class Sample_RecoverableDatabaseCollection { - // Get a recoverable database + // Get list of recoverable databases. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_GetListOfRecoverableDatabases() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/RecoverableDatabaseList.json + // this example is just showing the usage of "RecoverableDatabases_ListByServer" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "recoverabledatabasetest-1234"; + string serverName = "recoverabledatabasetest-7177"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this RecoverableDatabaseResource + RecoverableDatabaseCollection collection = sqlServer.GetRecoverableDatabases(); + + // invoke the operation and iterate over the result + await foreach (RecoverableDatabaseResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RecoverableDatabaseData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get a recoverable database. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetARecoverableDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/RecoverableDatabaseGet.json // this example is just showing the usage of "RecoverableDatabases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,12 +88,12 @@ public async Task Get_GetARecoverableDatabase() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get a recoverable database + // Get a recoverable database. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetARecoverableDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/RecoverableDatabaseGet.json // this example is just showing the usage of "RecoverableDatabases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,13 +119,13 @@ public async Task Exists_GetARecoverableDatabase() Console.WriteLine($"Succeeded: {result}"); } - // Get list of restorable dropped databases + // Gets a recoverable database with expand equals keys. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_GetListOfRestorableDroppedDatabases() + public async Task Get_GetsARecoverableDatabaseWithExpandEqualsKeys() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseList.json - // this example is just showing the usage of "RecoverableDatabases_ListByServer" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/RecoverableDatabaseGetWithExpandEqualsKeys.json + // this example is just showing the usage of "RecoverableDatabases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -98,25 +135,56 @@ public async Task GetAll_GetListOfRestorableDroppedDatabases() // this example assumes you already have this SqlServerResource created on azure // for more information of creating SqlServerResource, please refer to the document of SqlServerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "recoverabledatabasetest-1234"; - string serverName = "recoverabledatabasetest-7177"; + string resourceGroupName = "recoverabledatabasetest-6852"; + string serverName = "recoverabledatabasetest-2080"; ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); // get the collection of this RecoverableDatabaseResource RecoverableDatabaseCollection collection = sqlServer.GetRecoverableDatabases(); - // invoke the operation and iterate over the result - await foreach (RecoverableDatabaseResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RecoverableDatabaseData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } + // invoke the operation + string databaseName = "recoverabledatabasetest-9187"; + string expand = "keys"; + RecoverableDatabaseResource result = await collection.GetAsync(databaseName, expand: expand); - Console.WriteLine($"Succeeded"); + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RecoverableDatabaseData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Gets a recoverable database with expand equals keys. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetsARecoverableDatabaseWithExpandEqualsKeys() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/RecoverableDatabaseGetWithExpandEqualsKeys.json + // this example is just showing the usage of "RecoverableDatabases_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SqlServerResource created on azure + // for more information of creating SqlServerResource, please refer to the document of SqlServerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "recoverabledatabasetest-6852"; + string serverName = "recoverabledatabasetest-2080"; + ResourceIdentifier sqlServerResourceId = SqlServerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName); + SqlServerResource sqlServer = client.GetSqlServerResource(sqlServerResourceId); + + // get the collection of this RecoverableDatabaseResource + RecoverableDatabaseCollection collection = sqlServer.GetRecoverableDatabases(); + + // invoke the operation + string databaseName = "recoverabledatabasetest-9187"; + string expand = "keys"; + bool result = await collection.ExistsAsync(databaseName, expand: expand); + + Console.WriteLine($"Succeeded: {result}"); } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs index 3c7eff0697938..f6d46d7060c5f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs @@ -16,12 +16,12 @@ namespace Azure.ResourceManager.Sql.Samples { public partial class Sample_RecoverableDatabaseResource { - // Get a recoverable database + // Get a recoverable database. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetARecoverableDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/RecoverableDatabaseGet.json // this example is just showing the usage of "RecoverableDatabases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,5 +47,38 @@ public async Task Get_GetARecoverableDatabase() // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + + // Gets a recoverable database with expand equals keys. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsARecoverableDatabaseWithExpandEqualsKeys() + { + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/RecoverableDatabaseGetWithExpandEqualsKeys.json + // this example is just showing the usage of "RecoverableDatabases_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RecoverableDatabaseResource created on azure + // for more information of creating RecoverableDatabaseResource, please refer to the document of RecoverableDatabaseResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "recoverabledatabasetest-6852"; + string serverName = "recoverabledatabasetest-2080"; + string databaseName = "recoverabledatabasetest-9187"; + ResourceIdentifier recoverableDatabaseResourceId = RecoverableDatabaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, serverName, databaseName); + RecoverableDatabaseResource recoverableDatabase = client.GetRecoverableDatabaseResource(recoverableDatabaseResourceId); + + // invoke the operation + string expand = "keys"; + RecoverableDatabaseResource result = await recoverableDatabase.GetAsync(expand: expand); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RecoverableDatabaseData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs index 8bd9d11eca631..91091d85391f6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineCollect [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_ListBySqlVulnerabilityAssessment" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task GetAll_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBasel [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaseline [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task Exists_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBasel [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AddADatabaseSVulnerabilityAssessmentRuleBaselineFromTheLatestScanResult() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAddLatest.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAddLatest.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task CreateOrUpdate_AddADatabaseSVulnerabilityAssessmentRuleBaselin [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AddADatabaseSVulnerabilityAssessmentRuleBaselineList() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAdd.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAdd.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs index 1b1653e092a4f..0952a3202d0e5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs @@ -24,7 +24,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineResourc [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaseline [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AddADatabaseSVulnerabilityAssessmentRuleBaselineFromTheLatestScanResult() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAddLatest.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAddLatest.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Update_AddADatabaseSVulnerabilityAssessmentRuleBaselineFromThe [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AddADatabaseSVulnerabilityAssessmentRuleBaselineList() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAdd.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAdd.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs index 01aefb9809b90..66c3a10598ba8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCol [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineListByBaseline.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineListByBaseline.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentRuleBaselines_ListByBaseline" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task GetAll_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBasel [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsADatabaseSSqlVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentRuleBaselines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task Get_GetsADatabaseSSqlVulnerabilityAssessmentRuleBaseline() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsADatabaseSSqlVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentRuleBaselines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task Exists_GetsADatabaseSSqlVulnerabilityAssessmentRuleBaseline() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesOrUpdatesADatabaseSVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineCreate.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentRuleBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs index bb16dc5e9b7dd..1cfbec8c0c1e7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleRes [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsADatabaseSSqlVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentRuleBaselines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetsADatabaseSSqlVulnerabilityAssessmentRuleBaseline() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatesOrUpdatesADatabaseSVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineCreate.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentRuleBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_CreatesOrUpdatesADatabaseSVulnerabilityAssessmentRuleBa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RemovesADatabaseSVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineDelete.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineDelete.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentRuleBaselines_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentCollection.cs index 3071b4464496f..5457c4f4e9525 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetSQLVulnerabilityAssessmentPoliciesOnAGivenDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListByDatabase.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListByDatabase.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentsSettings_ListByDatabase" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_GetSQLVulnerabilityAssessmentPoliciesOnAGivenDatabase() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSQLVulnerabilityAssessmentPolicyForDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentsSettings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetSQLVulnerabilityAssessmentPolicyForDatabase() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSQLVulnerabilityAssessmentPolicyForDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentsSettings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentResource.cs index 3e3af598d00ad..52fe216a4660c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ExecuteScan_ExecutesADatabaseSVulnerabilityAssessmentScan() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansExecute.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansExecute.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentExecuteScan_Execute" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task ExecuteScan_ExecutesADatabaseSVulnerabilityAssessmentScan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSQLVulnerabilityAssessmentPolicyForDatabase() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentsSettings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanCollection.cs index 50ba3fb252e57..aa7f23d949e75 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentScanCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsTheListOfADatabaseVulnerabilityAssessmentScanRecords() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScanRecordsListByDatabase.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScanRecordsListByDatabase.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScans_ListBySqlVulnerabilityAssessments" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_GetsTheListOfADatabaseVulnerabilityAssessmentScanRecord [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADatabaseSVulnerabilityAssessmentScan() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetADatabaseSVulnerabilityAssessmentScan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetADatabaseSVulnerabilityAssessmentScan() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResource.cs index 2af4f3be22252..d1a36a1ac23d6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResource.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADatabaseSVulnerabilityAssessmentScan() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultCollection.cs index 59393a092321e..158fb693ef8fb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultColle [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDatabaseSQLVulnerabilityAssessmentScanResultsForScanId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListScansResults.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScanResult_ListByScan" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetAll_ListDatabaseSQLVulnerabilityAssessmentScanResultsForSca [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADatabaseSQLVulnerabilityAssessmentScanResultForScanIdAndScanResultId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScanResult_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Get_GetADatabaseSQLVulnerabilityAssessmentScanResultForScanIdA [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetADatabaseSQLVulnerabilityAssessmentScanResultForScanIdAndScanResultId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScanResult_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.cs index f5b159bb9b43d..390f0aec3734a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlDatabaseSqlVulnerabilityAssessmentScanResultResou [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADatabaseSQLVulnerabilityAssessmentScanResultForScanIdAndScanResultId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json // this example is just showing the usage of "DatabaseSqlVulnerabilityAssessmentScanResult_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs index fcadb100389f5..26b89929ccd3f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentBaselineCollectio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaseline_ListBySqlVulnerabilityAssessment" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetAll_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBasel [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaseline_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaseline [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaseline_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task Exists_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBasel [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AddADatabaseSVulnerabilityAssessmentRuleBaselineFromTheLatestScanResult() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineAddLatest.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineAddLatest.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task CreateOrUpdate_AddADatabaseSVulnerabilityAssessmentRuleBaselin [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AddADatabaseSVulnerabilityAssessmentRuleBaselineList() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineAdd.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineAdd.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineResource.cs index c83b02234bd94..55fba464e0945 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineResource.cs @@ -24,7 +24,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentBaselineResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaselines() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaseline_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetsAListOfDatabaseSSqlVulnerabilityAssessmentRuleBaseline [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AddADatabaseSVulnerabilityAssessmentRuleBaselineFromTheLatestScanResult() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineAddLatest.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineAddLatest.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_AddADatabaseSVulnerabilityAssessmentRuleBaselineFromThe [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AddADatabaseSVulnerabilityAssessmentRuleBaselineList() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentBaselineAdd.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentBaselineAdd.json // this example is just showing the usage of "SqlVulnerabilityAssessmentBaselines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs index 4235554961158..2b96b8f6d7c48 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleColle [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineListByBaseline.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineListByBaseline.json // this example is just showing the usage of "SqlVulnerabilityAssessmentRuleBaseline_ListByBaseline" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetAll_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBasel [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentRuleBaseline_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBaseline [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentRuleBaseline_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Exists_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBasel [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesOrUpdatesADatabaseSVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineCreate.json // this example is just showing the usage of "SqlVulnerabilityAssessmentRuleBaseline_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs index e0c7b46095c6d..5447dbe0def35 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentBaselineRuleResou [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentRuleBaseline_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetsASystemDatabaseSSqlVulnerabilityAssessmentRuleBaseline [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatesOrUpdatesADatabaseSVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineCreate.json // this example is just showing the usage of "SqlVulnerabilityAssessmentRuleBaseline_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task Update_CreatesOrUpdatesADatabaseSVulnerabilityAssessmentRuleBa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RemovesADatabaseSVulnerabilityAssessmentRuleBaseline() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineDelete.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentRuleBaselineDelete.json // this example is just showing the usage of "SqlVulnerabilityAssessmentRuleBaselines_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentCollection.cs index 716bc2cc25845..b44511a292a53 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetSQLVulnerabilityAssessmentPolicies() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentListByServer.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentListByServer.json // this example is just showing the usage of "SqlVulnerabilityAssessmentsSettings_ListByServer" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_GetSQLVulnerabilityAssessmentPolicies() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSQLVulnerabilityAssessmentPolicy() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentsSettings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetSQLVulnerabilityAssessmentPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSQLVulnerabilityAssessmentPolicy() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentsSettings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetSQLVulnerabilityAssessmentPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateASQLVulnerabilityAssessmentPolicy() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentCreate.json // this example is just showing the usage of "SqlVulnerabilityAssessmentsSettings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentResource.cs index 1a46c1d15dfe0..55f388b60d1c6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ExecuteScan_ExecutesADatabaseSVulnerabilityAssessmentScan() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScansExecute.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScansExecute.json // this example is just showing the usage of "SqlVulnerabilityAssessmentExecuteScan_Execute" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task ExecuteScan_ExecutesADatabaseSVulnerabilityAssessmentScan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSQLVulnerabilityAssessmentPolicy() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentGet.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentGet.json // this example is just showing the usage of "SqlVulnerabilityAssessmentsSettings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetSQLVulnerabilityAssessmentPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateASQLVulnerabilityAssessmentPolicy() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentCreate.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentCreate.json // this example is just showing the usage of "SqlVulnerabilityAssessmentsSettings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Update_CreateASQLVulnerabilityAssessmentPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RemoveSQLVulnerabilityAssessment() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentDelete.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentDelete.json // this example is just showing the usage of "SqlVulnerabilityAssessments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanCollection.cs index 043bc895dd1bf..1a4e0abc5bda2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentScanCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsTheListOfADatabaseVulnerabilityAssessmentScanRecords() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScanRecordsListByDatabase.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScanRecordsListByDatabase.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScans_ListBySqlVulnerabilityAssessments" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_GetsTheListOfADatabaseVulnerabilityAssessmentScanRecord [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsTheADatabaseVulnerabilityAssessmentScanRecords() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScan.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScan.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetsTheADatabaseVulnerabilityAssessmentScanRecords() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsTheADatabaseVulnerabilityAssessmentScanRecords() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScan.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScan.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResource.cs index 4eab61317ecda..4df31702eadfe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResource.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentScanResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsTheADatabaseVulnerabilityAssessmentScanRecords() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScan.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScan.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultCollection.cs index 68f6385e76962..cd6ba6e19368f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentScanResultCollect [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSystemDatabaseSQLVulnerabilityAssessmentScanResultsForScanId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentListScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentListScansResults.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScanResult_ListByScan" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_ListSystemDatabaseSQLVulnerabilityAssessmentScanResults [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASystemDatabaseSQLVulnerabilityAssessmentScanResultForScanIdAndScanResultId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScansResults.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScanResult_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetASystemDatabaseSQLVulnerabilityAssessmentScanResultForS [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetASystemDatabaseSQLVulnerabilityAssessmentScanResultForScanIdAndScanResultId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScansResults.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScanResult_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultResource.cs index 510efdc5f9037..dff2a6b00989a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlServerSqlVulnerabilityAssessmentScanResultResource.cs @@ -22,7 +22,7 @@ public partial class Sample_SqlServerSqlVulnerabilityAssessmentScanResultResourc [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASystemDatabaseSQLVulnerabilityAssessmentScanResultForScanIdAndScanResultId() { - // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/SqlVulnerabilityAssessmentScansResults.json + // Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SqlVulnerabilityAssessmentScansResults.json // this example is just showing the usage of "SqlVulnerabilityAssessmentScanResult_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line From 779008afa975eb52657534e344ee283f4a675989 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 10:18:36 +0800 Subject: [PATCH 09/25] Mitigate breaking changes, example pending change --- .../tests/Scenario/AlertTests.cs | 2 + .../Samples/Sample_FailoverGroupCollection.cs | 2 +- .../Sample_ManagedInstanceCollection.cs | 2 +- .../Sample_RecoverableDatabaseCollection.cs | 4 +- .../Sample_RecoverableDatabaseResource.cs | 2 +- .../src/Custom/FailoverGroupData.cs | 15 ++ .../src/Custom/ManagedInstanceData.cs | 14 + .../src/Custom/Models/ManagedInstancePatch.cs | 11 + .../Custom/RecoverableDatabaseCollection.cs | 245 ++++++++++++++++++ .../src/Custom/RecoverableDatabaseResource.cs | 114 ++++++++ .../src/Custom/SqlServerResource.cs | 92 +++++++ .../src/Generated/ArmSqlModelFactory.cs | 14 +- .../src/Generated/FailoverGroupData.cs | 10 +- .../src/Generated/ManagedInstanceData.cs | 8 +- .../Models/FailoverGroupData.Serialization.cs | 4 +- .../ManagedInstanceData.Serialization.cs | 4 +- .../ManagedInstancePatch.Serialization.cs | 4 +- .../Generated/Models/ManagedInstancePatch.cs | 2 +- .../RecoverableDatabaseCollection.cs | 152 ----------- .../Generated/RecoverableDatabaseResource.cs | 68 ----- .../src/Generated/SqlServerResource.cs | 50 ---- .../Azure.ResourceManager.Sql/src/autorest.md | 6 + 22 files changed, 527 insertions(+), 298 deletions(-) create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/Models/ManagedInstancePatch.cs create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs index df3f1d0790991..84f0735112662 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs @@ -7,6 +7,7 @@ using System.Text; using System.Threading.Tasks; using Azure.Core; +using Azure.Core.Diagnostics; using Azure.Core.TestFramework; using NUnit.Framework; @@ -29,6 +30,7 @@ public void SetUp() [RecordedTest] public async Task GetAll() { + using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger(System.Diagnostics.Tracing.EventLevel.Verbose); var list = await _alertCollection.GetAllAsync().ToEnumerableAsync(); Assert.IsEmpty(list); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs index dfd5ebd62974a..a8ef293c6ffdb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_FailoverGroupCollection.cs @@ -158,7 +158,7 @@ public async Task CreateOrUpdate_CreateFailoverGroup() { new PartnerServerInfo(new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-secondary-server")) }, - Databases = + FailoverDatabases = { new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server/databases/testdb-1"),new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server/databases/testdb-2") }, diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs index a2cbe813fa034..f755d2ec5b0bf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_ManagedInstanceCollection.cs @@ -257,7 +257,7 @@ public async Task CreateOrUpdate_CreateManagedInstanceWithAllProperties() VCores = 8, StorageSizeInGB = 1024, Collation = "SQL_Latin1_General_CP1_CI_AS", - DnsZonePartner = new ResourceIdentifier("/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance"), + ManagedDnsZonePartner = new ResourceIdentifier("/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance"), IsPublicDataEndpointEnabled = false, ProxyOverride = ManagedInstanceProxyOverride.Redirect, TimezoneId = "UTC", diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs index cc94d2422ab39..194edd75f133f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs @@ -146,7 +146,7 @@ public async Task Get_GetsARecoverableDatabaseWithExpandEqualsKeys() // invoke the operation string databaseName = "recoverabledatabasetest-9187"; string expand = "keys"; - RecoverableDatabaseResource result = await collection.GetAsync(databaseName, expand: expand); + RecoverableDatabaseResource result = await collection.GetAsync(databaseName, expand, null); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -182,7 +182,7 @@ public async Task Exists_GetsARecoverableDatabaseWithExpandEqualsKeys() // invoke the operation string databaseName = "recoverabledatabasetest-9187"; string expand = "keys"; - bool result = await collection.ExistsAsync(databaseName, expand: expand); + bool result = await collection.ExistsAsync(databaseName, expand, null, default); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs index f6d46d7060c5f..9e340c3230053 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs @@ -72,7 +72,7 @@ public async Task Get_GetsARecoverableDatabaseWithExpandEqualsKeys() // invoke the operation string expand = "keys"; - RecoverableDatabaseResource result = await recoverableDatabase.GetAsync(expand: expand); + RecoverableDatabaseResource result = await recoverableDatabase.GetAsync(expand, null); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs new file mode 100644 index 0000000000000..2afebaf56f8e4 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.ComponentModel; + +namespace Azure.ResourceManager.Sql +{ + public partial class FailoverGroupData + { + /// List of databases in the failover group. + [EditorBrowsable(EditorBrowsableState.Never)] + public IList Databases { get; } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs new file mode 100644 index 0000000000000..1f8c660dd9f1d --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.ComponentModel; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceData + { + /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. + [EditorBrowsable(EditorBrowsableState.Never)] + public string DnsZonePartner { get; set; } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/Models/ManagedInstancePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/Models/ManagedInstancePatch.cs new file mode 100644 index 0000000000000..5601d5eb30e6f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/Models/ManagedInstancePatch.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.ResourceManager.Sql.Models +{ + public partial class ManagedInstancePatch + { + /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. + public string DnsZonePartner { get; set; } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs new file mode 100644 index 0000000000000..544ab6da186d4 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs @@ -0,0 +1,245 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; +using System.Threading; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.Sql +{ + public partial class RecoverableDatabaseCollection + { + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string databaseName, CancellationToken cancellationToken = default) + => Exists(databaseName, null, null, cancellationToken); + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); + scope.Start(); + try + { + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string databaseName, CancellationToken cancellationToken = default) + => await ExistsAsync(databaseName, null, null, cancellationToken).ConfigureAwait(false); + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); + scope.Start(); + try + { + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a recoverable database, which is a resource representing a database's geo backup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string databaseName, CancellationToken cancellationToken = default) + => Get(databaseName, null, null, cancellationToken); + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); + scope.Start(); + try + { + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a recoverable database, which is a resource representing a database's geo backup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string databaseName, CancellationToken cancellationToken = default) + => await GetAsync(databaseName, null, null, cancellationToken).ConfigureAwait(false); + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); + scope.Start(); + try + { + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs new file mode 100644 index 0000000000000..fb94195b0eefb --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.Sql +{ + public partial class RecoverableDatabaseResource + { + /// + /// Gets a recoverable database, which is a resource representing a database's geo backup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + => Get(null, null, cancellationToken); + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + public virtual Response Get(string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); + scope.Start(); + try + { + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a recoverable database, which is a resource representing a database's geo backup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + => await GetAsync(null, null, cancellationToken).ConfigureAwait(false); + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + public virtual async Task> GetAsync(string expand, string filter, CancellationToken cancellationToken = default) + { + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); + scope.Start(); + try + { + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs index 756bb5c08a53f..b7b242f09db86 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs @@ -20,6 +20,98 @@ namespace Azure.ResourceManager.Sql /// public partial class SqlServerResource : ArmResource { + /// + /// Gets a recoverable database, which is a resource representing a database's geo backup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, CancellationToken cancellationToken = default) + => await GetRecoverableDatabaseAsync(databaseName, null, null, cancellationToken).ConfigureAwait(false); + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) + { + return await GetRecoverableDatabases().GetAsync(databaseName, expand, filter, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a recoverable database, which is a resource representing a database's geo backup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRecoverableDatabase(string databaseName, CancellationToken cancellationToken = default) + => GetRecoverableDatabase(databaseName, null, null, cancellationToken); + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRecoverableDatabase(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) + { + return GetRecoverableDatabases().Get(databaseName, expand, filter, cancellationToken); + } + /// /// Gets a restorable dropped database. /// diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs index 1cfdd0036dd1d..7c8b0cdacab60 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ArmSqlModelFactory.cs @@ -3374,7 +3374,7 @@ public static ManagedDatabaseData ManagedDatabaseData(ResourceIdentifier id = nu /// Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. /// Collation of the managed instance. /// The Dns Zone that the managed instance is in. - /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. + /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. /// Whether or not the public data endpoint is enabled. /// The resource identifier of the source managed instance associated with create operation of this instance. /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. @@ -3399,12 +3399,12 @@ public static ManagedDatabaseData ManagedDatabaseData(ResourceIdentifier id = nu /// The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. /// The managed instance's service principal. /// A new instance for mocking. - public static ManagedInstanceData ManagedInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, SqlSku sku = null, ManagedInstancePropertiesProvisioningState? provisioningState = null, ManagedServerCreateMode? managedInstanceCreateMode = null, string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, ResourceIdentifier subnetId = null, string state = null, ManagedInstanceLicenseType? licenseType = null, int? vCores = null, int? storageSizeInGB = null, string collation = null, string dnsZone = null, ResourceIdentifier dnsZonePartner = null, bool? isPublicDataEndpointEnabled = null, ResourceIdentifier sourceManagedInstanceId = null, DateTimeOffset? restorePointInTime = null, ManagedInstanceProxyOverride? proxyOverride = null, string timezoneId = null, ResourceIdentifier instancePoolId = null, ResourceIdentifier maintenanceConfigurationId = null, IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, SqlBackupStorageRedundancy? currentBackupStorageRedundancy = null, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = null, bool? isZoneRedundant = null, ResourceIdentifier primaryUserAssignedIdentityId = null, Uri keyId = null, ManagedInstanceExternalAdministrator administrators = null, SqlServicePrincipal servicePrincipal = null) + public static ManagedInstanceData ManagedInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, SqlSku sku = null, ManagedInstancePropertiesProvisioningState? provisioningState = null, ManagedServerCreateMode? managedInstanceCreateMode = null, string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, ResourceIdentifier subnetId = null, string state = null, ManagedInstanceLicenseType? licenseType = null, int? vCores = null, int? storageSizeInGB = null, string collation = null, string dnsZone = null, ResourceIdentifier managedDnsZonePartner = null, bool? isPublicDataEndpointEnabled = null, ResourceIdentifier sourceManagedInstanceId = null, DateTimeOffset? restorePointInTime = null, ManagedInstanceProxyOverride? proxyOverride = null, string timezoneId = null, ResourceIdentifier instancePoolId = null, ResourceIdentifier maintenanceConfigurationId = null, IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, SqlBackupStorageRedundancy? currentBackupStorageRedundancy = null, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = null, bool? isZoneRedundant = null, ResourceIdentifier primaryUserAssignedIdentityId = null, Uri keyId = null, ManagedInstanceExternalAdministrator administrators = null, SqlServicePrincipal servicePrincipal = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); - return new ManagedInstanceData(id, name, resourceType, systemData, tags, location, identity, sku, provisioningState, managedInstanceCreateMode, fullyQualifiedDomainName, administratorLogin, administratorLoginPassword, subnetId, state, licenseType, vCores, storageSizeInGB, collation, dnsZone, dnsZonePartner, isPublicDataEndpointEnabled, sourceManagedInstanceId, restorePointInTime, proxyOverride, timezoneId, instancePoolId, maintenanceConfigurationId, privateEndpointConnections?.ToList(), minimalTlsVersion, currentBackupStorageRedundancy, requestedBackupStorageRedundancy, isZoneRedundant, primaryUserAssignedIdentityId, keyId, administrators, servicePrincipal); + return new ManagedInstanceData(id, name, resourceType, systemData, tags, location, identity, sku, provisioningState, managedInstanceCreateMode, fullyQualifiedDomainName, administratorLogin, administratorLoginPassword, subnetId, state, licenseType, vCores, storageSizeInGB, collation, dnsZone, managedDnsZonePartner, isPublicDataEndpointEnabled, sourceManagedInstanceId, restorePointInTime, proxyOverride, timezoneId, instancePoolId, maintenanceConfigurationId, privateEndpointConnections?.ToList(), minimalTlsVersion, currentBackupStorageRedundancy, requestedBackupStorageRedundancy, isZoneRedundant, primaryUserAssignedIdentityId, keyId, administrators, servicePrincipal); } /// Initializes a new instance of ManagedInstancePecProperty. @@ -3666,15 +3666,15 @@ public static LogicalDatabaseTransparentDataEncryptionData LogicalDatabaseTransp /// Local replication role of the failover group instance. /// Replication state of the failover group instance. /// List of partner server information for the failover group. - /// List of databases in the failover group. + /// List of databases in the failover group. /// A new instance for mocking. - public static FailoverGroupData FailoverGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, IDictionary tags = null, FailoverGroupReadWriteEndpoint readWriteEndpoint = null, ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = null, FailoverGroupReplicationRole? replicationRole = null, string replicationState = null, IEnumerable partnerServers = null, IEnumerable databases = null) + public static FailoverGroupData FailoverGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, IDictionary tags = null, FailoverGroupReadWriteEndpoint readWriteEndpoint = null, ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = null, FailoverGroupReplicationRole? replicationRole = null, string replicationState = null, IEnumerable partnerServers = null, IEnumerable failoverDatabases = null) { tags ??= new Dictionary(); partnerServers ??= new List(); - databases ??= new List(); + failoverDatabases ??= new List(); - return new FailoverGroupData(id, name, resourceType, systemData, location, tags, readWriteEndpoint, readOnlyEndpointFailoverPolicy != null ? new FailoverGroupReadOnlyEndpoint(readOnlyEndpointFailoverPolicy) : null, replicationRole, replicationState, partnerServers?.ToList(), databases?.ToList()); + return new FailoverGroupData(id, name, resourceType, systemData, location, tags, readWriteEndpoint, readOnlyEndpointFailoverPolicy != null ? new FailoverGroupReadOnlyEndpoint(readOnlyEndpointFailoverPolicy) : null, replicationRole, replicationState, partnerServers?.ToList(), failoverDatabases?.ToList()); } /// Initializes a new instance of PartnerServerInfo. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs index 5810c5330e66a..82094f5586554 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs @@ -23,7 +23,7 @@ public FailoverGroupData() { Tags = new ChangeTrackingDictionary(); PartnerServers = new ChangeTrackingList(); - Databases = new ChangeTrackingList(); + FailoverDatabases = new ChangeTrackingList(); } /// Initializes a new instance of FailoverGroupData. @@ -38,8 +38,8 @@ public FailoverGroupData() /// Local replication role of the failover group instance. /// Replication state of the failover group instance. /// List of partner server information for the failover group. - /// List of databases in the failover group. - internal FailoverGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, IDictionary tags, FailoverGroupReadWriteEndpoint readWriteEndpoint, FailoverGroupReadOnlyEndpoint readOnlyEndpoint, FailoverGroupReplicationRole? replicationRole, string replicationState, IList partnerServers, IList databases) : base(id, name, resourceType, systemData) + /// List of databases in the failover group. + internal FailoverGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, IDictionary tags, FailoverGroupReadWriteEndpoint readWriteEndpoint, FailoverGroupReadOnlyEndpoint readOnlyEndpoint, FailoverGroupReplicationRole? replicationRole, string replicationState, IList partnerServers, IList failoverDatabases) : base(id, name, resourceType, systemData) { Location = location; Tags = tags; @@ -48,7 +48,7 @@ internal FailoverGroupData(ResourceIdentifier id, string name, ResourceType reso ReplicationRole = replicationRole; ReplicationState = replicationState; PartnerServers = partnerServers; - Databases = databases; + FailoverDatabases = failoverDatabases; } /// Resource location. @@ -78,6 +78,6 @@ public ReadOnlyEndpointFailoverPolicy? ReadOnlyEndpointFailoverPolicy /// List of partner server information for the failover group. public IList PartnerServers { get; } /// List of databases in the failover group. - public IList Databases { get; } + public IList FailoverDatabases { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs index a2b44fbca3bf6..27a62b8e51f8e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs @@ -53,7 +53,7 @@ public ManagedInstanceData(AzureLocation location) : base(location) /// Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. /// Collation of the managed instance. /// The Dns Zone that the managed instance is in. - /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. + /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. /// Whether or not the public data endpoint is enabled. /// The resource identifier of the source managed instance associated with create operation of this instance. /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. @@ -77,7 +77,7 @@ public ManagedInstanceData(AzureLocation location) : base(location) /// A CMK URI of the key to use for encryption. /// The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. /// The managed instance's service principal. - internal ManagedInstanceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, SqlSku sku, ManagedInstancePropertiesProvisioningState? provisioningState, ManagedServerCreateMode? managedInstanceCreateMode, string fullyQualifiedDomainName, string administratorLogin, string administratorLoginPassword, ResourceIdentifier subnetId, string state, ManagedInstanceLicenseType? licenseType, int? vCores, int? storageSizeInGB, string collation, string dnsZone, ResourceIdentifier dnsZonePartner, bool? isPublicDataEndpointEnabled, ResourceIdentifier sourceManagedInstanceId, DateTimeOffset? restorePointInTime, ManagedInstanceProxyOverride? proxyOverride, string timezoneId, ResourceIdentifier instancePoolId, ResourceIdentifier maintenanceConfigurationId, IReadOnlyList privateEndpointConnections, string minimalTlsVersion, SqlBackupStorageRedundancy? currentBackupStorageRedundancy, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy, bool? isZoneRedundant, ResourceIdentifier primaryUserAssignedIdentityId, Uri keyId, ManagedInstanceExternalAdministrator administrators, SqlServicePrincipal servicePrincipal) : base(id, name, resourceType, systemData, tags, location) + internal ManagedInstanceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, SqlSku sku, ManagedInstancePropertiesProvisioningState? provisioningState, ManagedServerCreateMode? managedInstanceCreateMode, string fullyQualifiedDomainName, string administratorLogin, string administratorLoginPassword, ResourceIdentifier subnetId, string state, ManagedInstanceLicenseType? licenseType, int? vCores, int? storageSizeInGB, string collation, string dnsZone, ResourceIdentifier managedDnsZonePartner, bool? isPublicDataEndpointEnabled, ResourceIdentifier sourceManagedInstanceId, DateTimeOffset? restorePointInTime, ManagedInstanceProxyOverride? proxyOverride, string timezoneId, ResourceIdentifier instancePoolId, ResourceIdentifier maintenanceConfigurationId, IReadOnlyList privateEndpointConnections, string minimalTlsVersion, SqlBackupStorageRedundancy? currentBackupStorageRedundancy, SqlBackupStorageRedundancy? requestedBackupStorageRedundancy, bool? isZoneRedundant, ResourceIdentifier primaryUserAssignedIdentityId, Uri keyId, ManagedInstanceExternalAdministrator administrators, SqlServicePrincipal servicePrincipal) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Sku = sku; @@ -93,7 +93,7 @@ internal ManagedInstanceData(ResourceIdentifier id, string name, ResourceType re StorageSizeInGB = storageSizeInGB; Collation = collation; DnsZone = dnsZone; - DnsZonePartner = dnsZonePartner; + ManagedDnsZonePartner = managedDnsZonePartner; IsPublicDataEndpointEnabled = isPublicDataEndpointEnabled; SourceManagedInstanceId = sourceManagedInstanceId; RestorePointInTime = restorePointInTime; @@ -147,7 +147,7 @@ internal ManagedInstanceData(ResourceIdentifier id, string name, ResourceType re /// The Dns Zone that the managed instance is in. public string DnsZone { get; } /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. - public ResourceIdentifier DnsZonePartner { get; set; } + public ResourceIdentifier ManagedDnsZonePartner { get; set; } /// Whether or not the public data endpoint is enabled. public bool? IsPublicDataEndpointEnabled { get; set; } /// The resource identifier of the source managed instance associated with create operation of this instance. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs index a39c445f9a8f8..0d2704143c9a8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs @@ -51,11 +51,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsCollectionDefined(Databases)) + if (Optional.IsCollectionDefined(FailoverDatabases)) { writer.WritePropertyName("databases"u8); writer.WriteStartArray(); - foreach (var item in Databases) + foreach (var item in FailoverDatabases) { if (item == null) { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs index 7a9a1ab6232ee..8a4f14c80f275 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs @@ -85,10 +85,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("collation"u8); writer.WriteStringValue(Collation); } - if (Optional.IsDefined(DnsZonePartner)) + if (Optional.IsDefined(ManagedDnsZonePartner)) { writer.WritePropertyName("dnsZonePartner"u8); - writer.WriteStringValue(DnsZonePartner); + writer.WriteStringValue(ManagedDnsZonePartner); } if (Optional.IsDefined(IsPublicDataEndpointEnabled)) { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.Serialization.cs index b388107e871b2..0ff2a1968faa0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.Serialization.cs @@ -80,10 +80,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("collation"u8); writer.WriteStringValue(Collation); } - if (Optional.IsDefined(DnsZonePartner)) + if (Optional.IsDefined(ManagedDnsZonePartner)) { writer.WritePropertyName("dnsZonePartner"u8); - writer.WriteStringValue(DnsZonePartner); + writer.WriteStringValue(ManagedDnsZonePartner); } if (Optional.IsDefined(IsPublicDataEndpointEnabled)) { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs index 75208dc710cd8..10c1537140930 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs @@ -59,7 +59,7 @@ public ManagedInstancePatch() /// The Dns Zone that the managed instance is in. public string DnsZone { get; } /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. - public ResourceIdentifier DnsZonePartner { get; set; } + public ResourceIdentifier ManagedDnsZonePartner { get; set; } /// Whether or not the public data endpoint is enabled. public bool? IsPublicDataEndpointEnabled { get; set; } /// The resource identifier of the source managed instance associated with create operation of this instance. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs index 84534c95f35f6..ffbb119ca03f7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs @@ -52,84 +52,6 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SqlServerResource.ResourceType), nameof(id)); } - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); - scope.Start(); - try - { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); - scope.Start(); - try - { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Gets a list of recoverable databases. /// @@ -174,80 +96,6 @@ public virtual Pageable GetAll(CancellationToken ca return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RecoverableDatabaseResource(Client, RecoverableDatabaseData.DeserializeRecoverableDatabaseData(e)), _recoverableDatabaseClientDiagnostics, Pipeline, "RecoverableDatabaseCollection.GetAll", "value", "nextLink", cancellationToken); } - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); - scope.Start(); - try - { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); - scope.Start(); - try - { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs index 769efd848aa20..504016f90af3b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs @@ -85,73 +85,5 @@ internal static void ValidateResourceId(ResourceIdentifier id) if (id.ResourceType != ResourceType) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - public virtual async Task> GetAsync(string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); - scope.Start(); - try - { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - public virtual Response Get(string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); - scope.Start(); - try - { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs index 089dd7aae2b0e..a8e15c597c306 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs @@ -1365,56 +1365,6 @@ public virtual RecoverableDatabaseCollection GetRecoverableDatabases() return GetCachedClient(Client => new RecoverableDatabaseCollection(Client, Id)); } - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - return await GetRecoverableDatabases().GetAsync(databaseName, expand, filter, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual Response GetRecoverableDatabase(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - return GetRecoverableDatabases().Get(databaseName, expand, filter, cancellationToken); - } - /// Gets a collection of RestorableDroppedDatabaseResources in the SqlServer. /// An object representing collection of RestorableDroppedDatabaseResources and their operations over a RestorableDroppedDatabaseResource. public virtual RestorableDroppedDatabaseCollection GetRestorableDroppedDatabases() diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md index 2b23402197306..6713d1a62a0ae 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md @@ -329,6 +329,12 @@ rename-mapping: OutboundEnvironmentEndpoint: SqlOutboundEnvironmentEndpoint OutboundEnvironmentEndpointCollection: SqlOutboundEnvironmentEndpointCollection MetricDefinition.resourceUri: ResourceUriString + FailoverGroup.properties.databases: FailoverDatabases + ManagedInstance.properties.dnsZonePartner: ManagedDnsZonePartner + ManagedInstanceUpdate.properties.dnsZonePartner: ManagedDnsZonePartner + +# mgmt-debug: +# show-serialized-names: true prompted-enum-values: - Default From 11da8262b37fff160be7de8cd8fdf4714a94a809 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 12:54:18 +0800 Subject: [PATCH 10/25] Update --- .../tests/Scenario/AlertTests.cs | 1 - .../Sample_RecoverableDatabaseCollection.cs | 4 +- .../Sample_RecoverableDatabaseResource.cs | 2 +- .../Custom/RecoverableDatabaseCollection.cs | 165 +----------------- .../src/Custom/RecoverableDatabaseResource.cs | 75 +------- .../src/Custom/SqlServerResource.cs | 56 +----- .../RecoverableDatabaseCollection.cs | 152 ++++++++++++++++ .../Generated/RecoverableDatabaseResource.cs | 68 ++++++++ .../src/Generated/SqlServerResource.cs | 50 ++++++ 9 files changed, 291 insertions(+), 282 deletions(-) diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs index 84f0735112662..1f50d0431e09b 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs @@ -30,7 +30,6 @@ public void SetUp() [RecordedTest] public async Task GetAll() { - using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger(System.Diagnostics.Tracing.EventLevel.Verbose); var list = await _alertCollection.GetAllAsync().ToEnumerableAsync(); Assert.IsEmpty(list); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs index 194edd75f133f..cc94d2422ab39 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseCollection.cs @@ -146,7 +146,7 @@ public async Task Get_GetsARecoverableDatabaseWithExpandEqualsKeys() // invoke the operation string databaseName = "recoverabledatabasetest-9187"; string expand = "keys"; - RecoverableDatabaseResource result = await collection.GetAsync(databaseName, expand, null); + RecoverableDatabaseResource result = await collection.GetAsync(databaseName, expand: expand); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -182,7 +182,7 @@ public async Task Exists_GetsARecoverableDatabaseWithExpandEqualsKeys() // invoke the operation string databaseName = "recoverabledatabasetest-9187"; string expand = "keys"; - bool result = await collection.ExistsAsync(databaseName, expand, null, default); + bool result = await collection.ExistsAsync(databaseName, expand: expand); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs index 9e340c3230053..f6d46d7060c5f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_RecoverableDatabaseResource.cs @@ -72,7 +72,7 @@ public async Task Get_GetsARecoverableDatabaseWithExpandEqualsKeys() // invoke the operation string expand = "keys"; - RecoverableDatabaseResource result = await recoverableDatabase.GetAsync(expand, null); + RecoverableDatabaseResource result = await recoverableDatabase.GetAsync(expand: expand); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs index 544ab6da186d4..4768de2b9d63d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseCollection.cs @@ -5,6 +5,7 @@ using Azure.Core; using System.Threading; using System.Threading.Tasks; +using System.ComponentModel; namespace Azure.ResourceManager.Sql { @@ -27,7 +28,8 @@ public partial class RecoverableDatabaseCollection /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Exists(string databaseName, CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response Exists(string databaseName, CancellationToken cancellationToken) => Exists(databaseName, null, null, cancellationToken); /// @@ -44,86 +46,13 @@ public virtual Response Exists(string databaseName, CancellationToken canc /// /// /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Exists(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); - scope.Start(); - try - { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string databaseName, CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> ExistsAsync(string databaseName, CancellationToken cancellationToken) => await ExistsAsync(databaseName, null, null, cancellationToken).ConfigureAwait(false); - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); - scope.Start(); - try - { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Gets a recoverable database, which is a resource representing a database's geo backup /// @@ -141,48 +70,10 @@ public virtual async Task> ExistsAsync(string databaseName, strin /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string databaseName, CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response Get(string databaseName, CancellationToken cancellationToken) => Get(databaseName, null, null, cancellationToken); - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); - scope.Start(); - try - { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Gets a recoverable database, which is a resource representing a database's geo backup /// @@ -200,46 +91,8 @@ public virtual Response Get(string databaseName, st /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string databaseName, CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetAsync(string databaseName, CancellationToken cancellationToken) => await GetAsync(databaseName, null, null, cancellationToken).ConfigureAwait(false); - - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); - scope.Start(); - try - { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs index fb94195b0eefb..0e6719b50b7be 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecoverableDatabaseResource.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; using System.Threading; using System.Threading.Tasks; @@ -23,43 +24,10 @@ public partial class RecoverableDatabaseResource /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response Get(CancellationToken cancellationToken) => Get(null, null, cancellationToken); - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - public virtual Response Get(string expand = null, string filter = null, CancellationToken cancellationToken = default) - { - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); - scope.Start(); - try - { - var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Gets a recoverable database, which is a resource representing a database's geo backup /// @@ -74,41 +42,8 @@ public virtual Response Get(string expand = null, s /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetAsync(CancellationToken cancellationToken) => await GetAsync(null, null, cancellationToken).ConfigureAwait(false); - - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - public virtual async Task> GetAsync(string expand, string filter, CancellationToken cancellationToken = default) - { - using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); - scope.Start(); - try - { - var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs index b7b242f09db86..f74c1b4970070 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/SqlServerResource.cs @@ -38,34 +38,10 @@ public partial class SqlServerResource : ArmResource /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, CancellationToken cancellationToken) => await GetRecoverableDatabaseAsync(databaseName, null, null, cancellationToken).ConfigureAwait(false); - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) - { - return await GetRecoverableDatabases().GetAsync(databaseName, expand, filter, cancellationToken).ConfigureAwait(false); - } - /// /// Gets a recoverable database, which is a resource representing a database's geo backup /// @@ -84,34 +60,10 @@ public virtual async Task> GetRecoverableD /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRecoverableDatabase(string databaseName, CancellationToken cancellationToken = default) + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetRecoverableDatabase(string databaseName, CancellationToken cancellationToken) => GetRecoverableDatabase(databaseName, null, null, cancellationToken); - /// - /// Gets a recoverable database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} - /// - /// - /// Operation Id - /// RecoverableDatabases_Get - /// - /// - /// - /// The name of the database. - /// The child resources to include in the response. - /// An OData filter expression that filters elements in the collection. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual Response GetRecoverableDatabase(string databaseName, string expand, string filter, CancellationToken cancellationToken = default) - { - return GetRecoverableDatabases().Get(databaseName, expand, filter, cancellationToken); - } - /// /// Gets a restorable dropped database. /// diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs index ffbb119ca03f7..84534c95f35f6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseCollection.cs @@ -52,6 +52,84 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SqlServerResource.ResourceType), nameof(id)); } + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); + scope.Start(); + try + { + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Get"); + scope.Start(); + try + { + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Gets a list of recoverable databases. /// @@ -96,6 +174,80 @@ public virtual Pageable GetAll(CancellationToken ca return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RecoverableDatabaseResource(Client, RecoverableDatabaseData.DeserializeRecoverableDatabaseData(e)), _recoverableDatabaseClientDiagnostics, Pipeline, "RecoverableDatabaseCollection.GetAll", "value", "nextLink", cancellationToken); } + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); + scope.Start(); + try + { + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseCollection.Exists"); + scope.Start(); + try + { + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, expand, filter, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs index 504016f90af3b..769efd848aa20 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseResource.cs @@ -85,5 +85,73 @@ internal static void ValidateResourceId(ResourceIdentifier id) if (id.ResourceType != ResourceType) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + public virtual async Task> GetAsync(string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); + scope.Start(); + try + { + var response = await _recoverableDatabaseRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + public virtual Response Get(string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + using var scope = _recoverableDatabaseClientDiagnostics.CreateScope("RecoverableDatabaseResource.Get"); + scope.Start(); + try + { + var response = _recoverableDatabaseRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, filter, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RecoverableDatabaseResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs index a8e15c597c306..089dd7aae2b0e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs @@ -1365,6 +1365,56 @@ public virtual RecoverableDatabaseCollection GetRecoverableDatabases() return GetCachedClient(Client => new RecoverableDatabaseCollection(Client, Id)); } + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRecoverableDatabaseAsync(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + return await GetRecoverableDatabases().GetAsync(databaseName, expand, filter, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a recoverable database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName} + /// + /// + /// Operation Id + /// RecoverableDatabases_Get + /// + /// + /// + /// The name of the database. + /// The child resources to include in the response. + /// An OData filter expression that filters elements in the collection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRecoverableDatabase(string databaseName, string expand = null, string filter = null, CancellationToken cancellationToken = default) + { + return GetRecoverableDatabases().Get(databaseName, expand, filter, cancellationToken); + } + /// Gets a collection of RestorableDroppedDatabaseResources in the SqlServer. /// An object representing collection of RestorableDroppedDatabaseResources and their operations over a RestorableDroppedDatabaseResource. public virtual RestorableDroppedDatabaseCollection GetRestorableDroppedDatabases() From 3cd610887dfadf1d2f5bb1b2cde7167569843795 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Wed, 26 Jul 2023 21:57:27 -0700 Subject: [PATCH 11/25] recordings pushed to assets repo --- sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json | 2 +- sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json index d5cbdabd337e5..138c0b3b8f495 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/sqlmanagement/Azure.ResourceManager.Sql", - "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_2430b66b98" + "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_4324f3f94a" } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md index 6713d1a62a0ae..cc814400f69da 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md @@ -4,7 +4,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -tag: package-composite-v5 require: https://github.com/Azure/azure-rest-api-specs/blob/eba34b9c764e877193788a87a81cebfa915eb858/specification/sql/resource-manager/readme.md namespace: Azure.ResourceManager.Sql output-folder: $(this-folder)/Generated From f89cc49bcc15289636211414a57d0358f2a7c519 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 13:03:17 +0800 Subject: [PATCH 12/25] minor --- .../tests/Scenario/AlertTests.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs index 1f50d0431e09b..df3f1d0790991 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/tests/Scenario/AlertTests.cs @@ -7,7 +7,6 @@ using System.Text; using System.Threading.Tasks; using Azure.Core; -using Azure.Core.Diagnostics; using Azure.Core.TestFramework; using NUnit.Framework; From 23f2a20399bfdfd8eb8a5c2eb0065eaf130d4423 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 13:06:31 +0800 Subject: [PATCH 13/25] Export API --- ...zure.ResourceManager.Sql.netstandard2.0.cs | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs index 2a225fbb088a1..bdddcfd0aac16 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs @@ -467,7 +467,9 @@ protected FailoverGroupCollection() { } public partial class FailoverGroupData : Azure.ResourceManager.Models.ResourceData { public FailoverGroupData() { } - public System.Collections.Generic.IList Databases { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.Collections.Generic.IList Databases { get { throw null; } } + public System.Collections.Generic.IList FailoverDatabases { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } public System.Collections.Generic.IList PartnerServers { get { throw null; } } public Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy? ReadOnlyEndpointFailoverPolicy { get { throw null; } set { } } @@ -1404,7 +1406,8 @@ public ManagedInstanceData(Azure.Core.AzureLocation location) : base (default(Az public string Collation { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get { throw null; } } public string DnsZone { get { throw null; } } - public Azure.Core.ResourceIdentifier DnsZonePartner { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string DnsZonePartner { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Core.ResourceIdentifier InstancePoolId { get { throw null; } set { } } @@ -1413,6 +1416,7 @@ public ManagedInstanceData(Azure.Core.AzureLocation location) : base (default(Az public System.Uri KeyId { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType? LicenseType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier MaintenanceConfigurationId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ManagedDnsZonePartner { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ManagedServerCreateMode? ManagedInstanceCreateMode { get { throw null; } set { } } public string MinimalTlsVersion { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PrimaryUserAssignedIdentityId { get { throw null; } set { } } @@ -2196,11 +2200,19 @@ public partial class RecoverableDatabaseCollection : Azure.ResourceManager.ArmCo { protected RecoverableDatabaseCollection() { } public virtual Azure.Response Exists(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Exists(string databaseName, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> ExistsAsync(string databaseName, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Response Get(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Get(string databaseName, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetAsync(string databaseName, System.Threading.CancellationToken cancellationToken) { throw null; } System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } @@ -2222,7 +2234,11 @@ protected RecoverableDatabaseResource() { } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { throw null; } public virtual Azure.Response Get(string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class RecoverableManagedDatabaseCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -4396,7 +4412,11 @@ protected SqlServerResource() { } public virtual System.Threading.Tasks.Task> GetOutboundFirewallRuleAsync(string outboundRuleFqdn, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Sql.OutboundFirewallRuleCollection GetOutboundFirewallRules() { throw null; } public virtual Azure.Response GetRecoverableDatabase(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetRecoverableDatabase(string databaseName, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetRecoverableDatabaseAsync(string databaseName, string expand = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetRecoverableDatabaseAsync(string databaseName, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.ResourceManager.Sql.RecoverableDatabaseCollection GetRecoverableDatabases() { throw null; } public virtual Azure.Pageable GetReplicationLinks(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetReplicationLinksAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -5324,7 +5344,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.EndpointCertificateData EndpointCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string publicBlob = null) { throw null; } public static Azure.ResourceManager.Sql.ExtendedDatabaseBlobAuditingPolicyData ExtendedDatabaseBlobAuditingPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string predicateExpression = null, int? retentionDays = default(int?), System.Collections.Generic.IEnumerable auditActionsAndGroups = null, bool? isStorageSecondaryKeyInUse = default(bool?), bool? isAzureMonitorTargetEnabled = default(bool?), int? queueDelayMs = default(int?), bool? isManagedIdentityInUse = default(bool?), Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState? state = default(Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState?), string storageEndpoint = null, string storageAccountAccessKey = null, System.Guid? storageAccountSubscriptionId = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.Sql.ExtendedServerBlobAuditingPolicyData ExtendedServerBlobAuditingPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isDevopsAuditEnabled = default(bool?), string predicateExpression = null, int? retentionDays = default(int?), System.Collections.Generic.IEnumerable auditActionsAndGroups = null, bool? isStorageSecondaryKeyInUse = default(bool?), bool? isAzureMonitorTargetEnabled = default(bool?), int? queueDelayMs = default(int?), bool? isManagedIdentityInUse = default(bool?), Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState? state = default(Azure.ResourceManager.Sql.Models.BlobAuditingPolicyState?), string storageEndpoint = null, string storageAccountAccessKey = null, System.Guid? storageAccountSubscriptionId = default(System.Guid?)) { throw null; } - public static Azure.ResourceManager.Sql.FailoverGroupData FailoverGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Sql.Models.FailoverGroupReadWriteEndpoint readWriteEndpoint = null, Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = default(Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy?), Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole? replicationRole = default(Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole?), string replicationState = null, System.Collections.Generic.IEnumerable partnerServers = null, System.Collections.Generic.IEnumerable databases = null) { throw null; } + public static Azure.ResourceManager.Sql.FailoverGroupData FailoverGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Sql.Models.FailoverGroupReadWriteEndpoint readWriteEndpoint = null, Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy? readOnlyEndpointFailoverPolicy = default(Azure.ResourceManager.Sql.Models.ReadOnlyEndpointFailoverPolicy?), Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole? replicationRole = default(Azure.ResourceManager.Sql.Models.FailoverGroupReplicationRole?), string replicationState = null, System.Collections.Generic.IEnumerable partnerServers = null, System.Collections.Generic.IEnumerable failoverDatabases = null) { throw null; } public static Azure.ResourceManager.Sql.GeoBackupPolicyData GeoBackupPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Sql.Models.GeoBackupPolicyState state = Azure.ResourceManager.Sql.Models.GeoBackupPolicyState.Disabled, string storageType = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult ImportExportExtensionsOperationResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? requestId = default(System.Guid?), string requestType = null, string lastModifiedTime = null, string serverName = null, string databaseName = null, string status = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.Sql.Models.ImportExportOperationResult ImportExportOperationResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? requestId = default(System.Guid?), string requestType = null, string queuedTime = null, string lastModifiedTime = null, System.Uri blobUri = null, string serverName = null, string databaseName = null, string status = null, string errorMessage = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } @@ -5357,7 +5377,7 @@ public static partial class ArmSqlModelFactory public static Azure.ResourceManager.Sql.ManagedInstanceAdministratorData ManagedInstanceAdministratorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Sql.Models.ManagedInstanceAdministratorType? administratorType = default(Azure.ResourceManager.Sql.Models.ManagedInstanceAdministratorType?), string login = null, System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceAdvancedThreatProtectionData ManagedInstanceAdvancedThreatProtectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Sql.Models.AdvancedThreatProtectionState? state = default(Azure.ResourceManager.Sql.Models.AdvancedThreatProtectionState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceAzureADOnlyAuthenticationData ManagedInstanceAzureADOnlyAuthenticationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isAzureADOnlyAuthenticationEnabled = default(bool?)) { throw null; } - public static Azure.ResourceManager.Sql.ManagedInstanceData ManagedInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Sql.Models.SqlSku sku = null, Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState? provisioningState = default(Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState?), Azure.ResourceManager.Sql.Models.ManagedServerCreateMode? managedInstanceCreateMode = default(Azure.ResourceManager.Sql.Models.ManagedServerCreateMode?), string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, Azure.Core.ResourceIdentifier subnetId = null, string state = null, Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType? licenseType = default(Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = null, string dnsZone = null, Azure.Core.ResourceIdentifier dnsZonePartner = null, bool? isPublicDataEndpointEnabled = default(bool?), Azure.Core.ResourceIdentifier sourceManagedInstanceId = null, System.DateTimeOffset? restorePointInTime = default(System.DateTimeOffset?), Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride? proxyOverride = default(Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride?), string timezoneId = null, Azure.Core.ResourceIdentifier instancePoolId = null, Azure.Core.ResourceIdentifier maintenanceConfigurationId = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? currentBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), bool? isZoneRedundant = default(bool?), Azure.Core.ResourceIdentifier primaryUserAssignedIdentityId = null, System.Uri keyId = null, Azure.ResourceManager.Sql.Models.ManagedInstanceExternalAdministrator administrators = null, Azure.ResourceManager.Sql.Models.SqlServicePrincipal servicePrincipal = null) { throw null; } + public static Azure.ResourceManager.Sql.ManagedInstanceData ManagedInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Sql.Models.SqlSku sku = null, Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState? provisioningState = default(Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState?), Azure.ResourceManager.Sql.Models.ManagedServerCreateMode? managedInstanceCreateMode = default(Azure.ResourceManager.Sql.Models.ManagedServerCreateMode?), string fullyQualifiedDomainName = null, string administratorLogin = null, string administratorLoginPassword = null, Azure.Core.ResourceIdentifier subnetId = null, string state = null, Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType? licenseType = default(Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = null, string dnsZone = null, Azure.Core.ResourceIdentifier managedDnsZonePartner = null, bool? isPublicDataEndpointEnabled = default(bool?), Azure.Core.ResourceIdentifier sourceManagedInstanceId = null, System.DateTimeOffset? restorePointInTime = default(System.DateTimeOffset?), Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride? proxyOverride = default(Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride?), string timezoneId = null, Azure.Core.ResourceIdentifier instancePoolId = null, Azure.Core.ResourceIdentifier maintenanceConfigurationId = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string minimalTlsVersion = null, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? currentBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = default(Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy?), bool? isZoneRedundant = default(bool?), Azure.Core.ResourceIdentifier primaryUserAssignedIdentityId = null, System.Uri keyId = null, Azure.ResourceManager.Sql.Models.ManagedInstanceExternalAdministrator administrators = null, Azure.ResourceManager.Sql.Models.SqlServicePrincipal servicePrincipal = null) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceDtcData ManagedInstanceDtcData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? dtcEnabled = default(bool?), Azure.ResourceManager.Sql.Models.ManagedInstanceDtcSecuritySettings securitySettings = null, System.Collections.Generic.IEnumerable externalDnsSuffixSearchList = null, string dtcHostNameDnsSuffix = null, Azure.ResourceManager.Sql.Models.JobExecutionProvisioningState? provisioningState = default(Azure.ResourceManager.Sql.Models.JobExecutionProvisioningState?)) { throw null; } public static Azure.ResourceManager.Sql.Models.ManagedInstanceEditionCapability ManagedInstanceEditionCapability(string name = null, System.Collections.Generic.IEnumerable supportedFamilies = null, System.Collections.Generic.IEnumerable supportedStorageCapabilities = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.Sql.Models.SqlCapabilityStatus? status = default(Azure.ResourceManager.Sql.Models.SqlCapabilityStatus?), string reason = null) { throw null; } public static Azure.ResourceManager.Sql.ManagedInstanceEncryptionProtectorData ManagedInstanceEncryptionProtectorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = null, string serverKeyName = null, Azure.ResourceManager.Sql.Models.SqlServerKeyType? serverKeyType = default(Azure.ResourceManager.Sql.Models.SqlServerKeyType?), System.Uri uri = null, string thumbprint = null, bool? isAutoRotationEnabled = default(bool?)) { throw null; } @@ -6917,7 +6937,7 @@ public ManagedInstancePatch() { } public string Collation { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get { throw null; } } public string DnsZone { get { throw null; } } - public Azure.Core.ResourceIdentifier DnsZonePartner { get { throw null; } set { } } + public string DnsZonePartner { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Core.ResourceIdentifier InstancePoolId { get { throw null; } set { } } @@ -6926,6 +6946,7 @@ public ManagedInstancePatch() { } public System.Uri KeyId { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType? LicenseType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier MaintenanceConfigurationId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ManagedDnsZonePartner { get { throw null; } set { } } public Azure.ResourceManager.Sql.Models.ManagedServerCreateMode? ManagedInstanceCreateMode { get { throw null; } set { } } public string MinimalTlsVersion { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PrimaryUserAssignedIdentityId { get { throw null; } set { } } From 64b593d81b699a5e0cfcf583d74c4897c5da2268 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Wed, 26 Jul 2023 22:19:30 -0700 Subject: [PATCH 14/25] updated CHANGELOG --- sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md index e6321f3e7357c..a8b4b4b3a893a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md @@ -1,9 +1,11 @@ # Release History -## 1.3.0-beta.2 (Unreleased) +## 1.3.0-beta.2 (2023-07-31) ### Features Added +- Supported Sql Elastic Pool creation and update with `PreferredEnclaveType`. + ### Breaking Changes ### Bugs Fixed From 84ea1383258d869b1dda9289c480d4566cb41f61 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Wed, 26 Jul 2023 22:23:08 -0700 Subject: [PATCH 15/25] remove session records folder --- .../ElasticPoolTests/ElasticPoolApiTests.json | 1463 ---------- .../ElasticPoolApiTestsAsync.json | 1462 ---------- .../ElasticPoolApiTestsWithEnclaves.json | 2386 ---------------- .../ElasticPoolApiTestsWithEnclavesAsync.json | 2415 ----------------- .../ElasticPoolTests(False).json | 94 - .../ElasticPoolTests(True)Async.json | 93 - 6 files changed, 7913 deletions(-) delete mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json delete mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json delete mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json delete mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json delete mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json delete mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json deleted file mode 100644 index ee615c3782288..0000000000000 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTests.json +++ /dev/null @@ -1,1463 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-1560?api-version=**", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-940aff586e3f7f469c3f11e732d1e033-a059771db8b02e44-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "81711dec73b9f883b538f7ee1acfde49", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "220", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ae52b222-0fd4-4bd8-b67f-7669f47cb580", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "ae52b222-0fd4-4bd8-b67f-7669f47cb580", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193349Z:ae52b222-0fd4-4bd8-b67f-7669f47cb580" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560", - "name": "Sql-RG-1560", - "type": "Microsoft.Resources/resourceGroups", - "location": "uksouth", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "140", - "Content-Type": "application/json", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-7e8c27c4b5408b49-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c136f30df21527c51b30782e30b885f2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "administratorLogin": "admin-sql-server-2346", - "administratorLoginPassword": "HvVJ%paVC@%GBKmi" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "73", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "60369350-a22d-4292-a03f-729bc6ad8cd0", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193352Z:60369350-a22d-4292-a03f-729bc6ad8cd0" - }, - "ResponseBody": { - "operation": "UpsertLogicalServer", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-11894aa32b8e9f4d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "125be3aa6d232bd6ab599d420ac9857f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a878aed8-6eb0-434c-8130-d059b96a9958", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "b5fc282b-2f0a-4393-aeb4-9e0e38c6a2c9", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193352Z:a878aed8-6eb0-434c-8130-d059b96a9958" - }, - "ResponseBody": { - "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "status": "InProgress", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-33c85b0ffdc8104e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2dc8fb712ca1315832808abe5713fccf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "91b85a60-0bca-4b9a-8c42-4ac2f1273901", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "9a0a3d41-608b-48d2-9471-a1a1d0578b36", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193353Z:91b85a60-0bca-4b9a-8c42-4ac2f1273901" - }, - "ResponseBody": { - "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "status": "InProgress", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-761d1aea0ec54141-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4d83306c735de4cfcc11702b3e7dab6c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "70598200-1a04-45bc-934a-3bc5fc87e626", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "1f699ce3-da64-42c7-ad66-dec482164324", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193355Z:70598200-1a04-45bc-934a-3bc5fc87e626" - }, - "ResponseBody": { - "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "status": "InProgress", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-939dfd3fc6ca2640-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2f3f1bd196847ea68b2adfa2e317d498", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8bf6a121-bef2-4d1d-a49e-15daf3895bb3", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "afdc4382-f8fc-4bc5-9105-f5c4ce8f2afb", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193356Z:8bf6a121-bef2-4d1d-a49e-15daf3895bb3" - }, - "ResponseBody": { - "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "status": "InProgress", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-25e0a5a1e901b74d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "dad6ce5c3746fe222be46190bc2df3b4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "94703de4-90bb-437e-a199-248fc7a81060", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "b811e6f0-d30a-4560-81fc-5513e1282594", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193358Z:94703de4-90bb-437e-a199-248fc7a81060" - }, - "ResponseBody": { - "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "status": "InProgress", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-af219ec635525041-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3bec1dd4cdd4d64a8905c132932c00b4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:34:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6dfa3f60-84b1-478f-90c5-a4421b5c2b88", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "e6261ede-e6ce-41be-bbf8-4c26bccfc166", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193418Z:6dfa3f60-84b1-478f-90c5-a4421b5c2b88" - }, - "ResponseBody": { - "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "status": "InProgress", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/fedd3f46-4189-4e46-9bb6-3cb0f353aef2?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-01cf5daf32433543-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6fced83cd1a79a26f840039f3516c15d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:34:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a2fa2381-cd47-480c-aa03-39651f1cd5b1", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "85479dec-a1ae-46a5-8e73-e13545792c8c", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193438Z:a2fa2381-cd47-480c-aa03-39651f1cd5b1" - }, - "ResponseBody": { - "name": "fedd3f46-4189-4e46-9bb6-3cb0f353aef2", - "status": "Succeeded", - "startTime": "2023-06-29T19:33:52.34Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-915cc48540c1fb419d0d313f49e4f3ab-aa6fdd9d18534d43-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c5cd2a36982b8fc383ff514176ef6bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "568", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:34:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c66ef032-36c6-47a3-b9e5-53a7506c08d8", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "aa13389b-eee3-4caa-ba5b-6da35f87aa56", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193439Z:c66ef032-36c6-47a3-b9e5-53a7506c08d8" - }, - "ResponseBody": { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-2346", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-2346.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346", - "name": "sql-server-2346", - "type": "Microsoft.Sql/servers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "48", - "Content-Type": "application/json", - "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-44ec703db30fb042-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "845fe353030d52f74293c9aba1734364", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:34:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a23f5b4e-55b6-4819-8fee-deb2acfa73c2", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "29fde036-e04f-48cf-9924-e09f7df0b3f4", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193441Z:a23f5b4e-55b6-4819-8fee-deb2acfa73c2" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:34:41.293Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-b1d142f50bd56b41-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "dec288bcb2feca1dced85530c5d85ede", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:34:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8080ab9f-dc7a-4240-ba7e-7392e5b591c4", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "393e54a0-864e-4897-ab20-41cecda9d63c", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193441Z:8080ab9f-dc7a-4240-ba7e-7392e5b591c4" - }, - "ResponseBody": { - "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", - "status": "InProgress", - "startTime": "2023-06-29T19:34:41.293Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-f989acc225c7404e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "02f311fda8a0af23ce20986582122e39", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:34:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0d76837d-19cf-43fc-8bb6-24e8283ebfe0", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "a2c6396f-48c7-4d8d-aac8-b43ae56d4771", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193456Z:0d76837d-19cf-43fc-8bb6-24e8283ebfe0" - }, - "ResponseBody": { - "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", - "status": "InProgress", - "startTime": "2023-06-29T19:34:41.293Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-93b29e87ee395e42-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "18eec5be64b049654b946cb04ee47913", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ee98d65f-28d3-4c7d-9a51-7de13d9d2a1c", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "7b925ff4-bb5c-44a3-9bce-323db046aa90", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193512Z:ee98d65f-28d3-4c7d-9a51-7de13d9d2a1c" - }, - "ResponseBody": { - "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", - "status": "InProgress", - "startTime": "2023-06-29T19:34:41.293Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/29fde036-e04f-48cf-9924-e09f7df0b3f4?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-56eeb791f23cc549-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "12e6a249d315136465130fde1ab747bb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fed16e6e-acee-401d-a3fb-d6e768f0c879", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "b52f1a54-444d-404f-a98f-524df9e56180", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193527Z:fed16e6e-acee-401d-a3fb-d6e768f0c879" - }, - "ResponseBody": { - "name": "29fde036-e04f-48cf-9924-e09f7df0b3f4", - "status": "Succeeded", - "startTime": "2023-06-29T19:34:41.293Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-64861faabb1d2042ad1d9d9141358dc6-1639bf373d1ce947-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "00711baa46e9992dacaab70b3b7260e9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "770", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "623f9bf5-ed79-4fef-aa4a-c04ceb8c0714", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "04209c4c-4750-4769-822b-d8bb21ceb31a", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193527Z:623f9bf5-ed79-4fef-aa4a-c04ceb8c0714" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:34:41.42Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", - "name": "sql-pool-4814", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-7c2490e308ebf547b0f4206abfae1834-73ce300c221f7f46-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e01c85a71c2bea2460dab29d55872e93", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "770", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ee09546a-410c-4973-8dc4-06ad890c3aef", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "136356ab-15e0-433f-8478-71d2fbe92c99", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193528Z:ee09546a-410c-4973-8dc4-06ad890c3aef" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:34:41.42Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", - "name": "sql-pool-4814", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-8b3636833d1ae34588e2f830cde463eb-963ff2e6f0ffec4e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3206b04c78720229744d656a1b58d8f2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "247", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cd1f24d9-aafe-4e6d-946f-c51b4120e78f", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "cd1f24d9-aafe-4e6d-946f-c51b4120e78f", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193528Z:cd1f24d9-aafe-4e6d-946f-c51b4120e78f" - }, - "ResponseBody": { - "error": { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-2346/elasticpools/sql-pool-5442\u0027 under resource group \u0027Sql-RG-1560\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-d67bfdf625a0a74f84cbcbca28fc013d-bc2518cae083bb47-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "943626b2679b8d90f7879f0e93904325", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "770", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a6d827ef-0da9-4792-8cea-34035f360e02", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "84a34884-ca84-454e-a287-c4c2688bc2c2", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193528Z:a6d827ef-0da9-4792-8cea-34035f360e02" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:34:41.42Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", - "name": "sql-pool-4814", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "48", - "Content-Type": "application/json", - "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-7054c40d8c2bf04f-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8abf237b2d6c2e765c196bddb7b9cf07", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "993eb1bb-ffea-4bbb-8107-b096253790ee", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "1cc940e2-9731-494f-bf6b-447f01412929", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193530Z:993eb1bb-ffea-4bbb-8107-b096253790ee" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:35:30.183Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-abf4fe6f854c2c47-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f8ee40094d998486af083881fbb2d63d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d5f212c8-f93c-46d1-b87e-8b0a9c36064d", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "107a7e82-e703-4fc3-9c94-6b8d2b021509", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193530Z:d5f212c8-f93c-46d1-b87e-8b0a9c36064d" - }, - "ResponseBody": { - "name": "1cc940e2-9731-494f-bf6b-447f01412929", - "status": "InProgress", - "startTime": "2023-06-29T19:35:30.183Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-c26f0d145e2e2348-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d30c98b715a5e1d42bda69f3f28a5541", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:35:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c471dc9e-1740-4366-aaae-83a0f1da4677", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "9c483d1b-823f-43e3-9690-a0c5e57793c5", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193545Z:c471dc9e-1740-4366-aaae-83a0f1da4677" - }, - "ResponseBody": { - "name": "1cc940e2-9731-494f-bf6b-447f01412929", - "status": "InProgress", - "startTime": "2023-06-29T19:35:30.183Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-1fabe2fdaedc7f42-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "76d387aad6cab46d39657f486176e96e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b7a66858-7478-4c1c-a6b3-bd49b8de7ee3", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "7672e0e3-42b1-4cf6-b48e-c3e23b91d248", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193600Z:b7a66858-7478-4c1c-a6b3-bd49b8de7ee3" - }, - "ResponseBody": { - "name": "1cc940e2-9731-494f-bf6b-447f01412929", - "status": "InProgress", - "startTime": "2023-06-29T19:35:30.183Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-d2511a92454e104c-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4133fda29c0ef43e6b0dccbfe3929224", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1072f37c-e4ba-47bc-994a-d19bdfb7255f", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "395c2a74-fb7d-473c-affb-36f2f4232358", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193616Z:1072f37c-e4ba-47bc-994a-d19bdfb7255f" - }, - "ResponseBody": { - "name": "1cc940e2-9731-494f-bf6b-447f01412929", - "status": "InProgress", - "startTime": "2023-06-29T19:35:30.183Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/1cc940e2-9731-494f-bf6b-447f01412929?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-1cbaddee15e59f40-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "74d7f6b25fdee1722a57993f958b7fb4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5b661ba2-6cb6-4833-ac85-39b187134e8b", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "7af25ee2-e48f-4188-ae77-dedae9d3e011", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193631Z:5b661ba2-6cb6-4833-ac85-39b187134e8b" - }, - "ResponseBody": { - "name": "1cc940e2-9731-494f-bf6b-447f01412929", - "status": "Succeeded", - "startTime": "2023-06-29T19:35:30.183Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-9e6dbd7a9291d8429c4a00293a10cb2e-32a82c07b5a17a42-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f451fbf014560d3348de0bbd09add0a7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "02592ca2-89b8-4fcf-96ba-445eae33b382", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "17403425-7601-4a1f-9ee0-99d9c2d1ee8a", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193631Z:02592ca2-89b8-4fcf-96ba-445eae33b382" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:35:30.327Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442", - "name": "sql-pool-5442", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-d3b054e80ec6a448831caefe8829b4dd-0fd94513ebd63a4a-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6a955ad3749f428f8b5216b603fe5fdf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1554", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9b8d5e46-5e8c-40fc-afc6-37842bb328ab", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "4564514c-a1ac-452a-8a2c-ed050df17bf1", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193631Z:9b8d5e46-5e8c-40fc-afc6-37842bb328ab" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:34:41.42Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", - "name": "sql-pool-4814", - "type": "Microsoft.Sql/servers/elasticPools" - }, - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:35:30.327Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442", - "name": "sql-pool-5442", - "type": "Microsoft.Sql/servers/elasticPools" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-d50d49ce06ad5c4a91f032732b92cc94-fb3cfa916b852846-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e8ce188d9e419ecec3c92c0054b5d77c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "770", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6775f204-f60b-44a8-8b12-1af459f1f8cd", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "2751f9c8-4d1a-481d-b71d-abd472f5a5af", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193632Z:6775f204-f60b-44a8-8b12-1af459f1f8cd" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:34:41.42Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814", - "name": "sql-pool-4814", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-4814?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e2f7551d7e0a484d94fe18b8bbf8de91-104201aca622c047-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3b6cf28615f57c156c0e6903fd7c0a49", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:36:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cc18646d-4c3f-4441-a03a-852ddbac9342", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "3c8eda04-5b3d-4f0b-93a8-2ae6d79a271a", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193637Z:cc18646d-4c3f-4441-a03a-852ddbac9342" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-19cd9888864fa84ca405383582f9f6bd-2bc7fd6ef855da4a-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "11309a7b249278e902527b3234caa047", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d47519a3-e5d4-4519-abfe-777ac034fbb8", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "13663ea6-c8a9-4373-9342-e9d3fe21d4ed", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193637Z:d47519a3-e5d4-4519-abfe-777ac034fbb8" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:35:30.327Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442", - "name": "sql-pool-5442", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools/sql-pool-5442?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-819ba62c3938184ea528ed94b465f8a2-ff82e0057bd52e43-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2980e2bfe5859d9d8c37aefe6e4034dd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:36:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "511a7414-dc7c-4fea-9b68-33644e2ee4b7", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "c159bbe3-2837-4027-882c-46f41f4f0b1a", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193640Z:511a7414-dc7c-4fea-9b68-33644e2ee4b7" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-60763c47207f794ba61c93904ebeb257-41a89279df7dd34b-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "65155f56c40e9650fc92845a75eb0ac2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a90e393a-d13a-4251-a8ba-91cd9d7ad22f", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "f2844589-842e-4bab-9f50-8ea6b8a87e6e", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193640Z:a90e393a-d13a-4251-a8ba-91cd9d7ad22f" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-89f5ee53c32aac47922f6eca3759e9f2-c5177e7a2309df49-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a2119d1e3d41c6fb2b25e7cef6113059", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "580", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c0e64730-4664-403a-8d57-500d64297d13", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "5793a38f-23ba-42b4-911b-031d40f7b175", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193641Z:c0e64730-4664-403a-8d57-500d64297d13" - }, - "ResponseBody": { - "value": [ - { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-2346", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-2346.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346", - "name": "sql-server-2346", - "type": "Microsoft.Sql/servers" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-2346?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-28a8c7b9f618fd45b05d8b3d47ac1594-1a403f54b16c4a4e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0ea7ec37ce2a5ccf41f266b9745ce556", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "72", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b21a2ca6-ce7e-4a75-aabf-6694537a0157", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "a124bf3c-e9fa-4033-8d3b-678bbd506246", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193641Z:b21a2ca6-ce7e-4a75-aabf-6694537a0157" - }, - "ResponseBody": { - "operation": "DropLogicalServer", - "startTime": "2023-06-29T19:36:41.763Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-28a8c7b9f618fd45b05d8b3d47ac1594-be1559a6dd486047-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "89232a61fb434f97ceb5604fd74252cf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2ab38a9b-afbf-4bb8-a4a7-68f0de4e6b92", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "203dbdb6-188e-4cac-8cd4-406a0064ef9d", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193642Z:2ab38a9b-afbf-4bb8-a4a7-68f0de4e6b92" - }, - "ResponseBody": { - "name": "a124bf3c-e9fa-4033-8d3b-678bbd506246", - "status": "InProgress", - "startTime": "2023-06-29T19:36:41.763Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/a124bf3c-e9fa-4033-8d3b-678bbd506246?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-28a8c7b9f618fd45b05d8b3d47ac1594-3e2482b16f0d1f48-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c822913f61a3d8386b8fabdb95e67ebf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "20bc0f3f-0ed4-4f0a-964e-4b6706e5002d", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "258192f6-fd26-494c-9122-242972737eb8", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193657Z:20bc0f3f-0ed4-4f0a-964e-4b6706e5002d" - }, - "ResponseBody": { - "name": "a124bf3c-e9fa-4033-8d3b-678bbd506246", - "status": "Succeeded", - "startTime": "2023-06-29T19:36:41.763Z" - } - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "1590744437", - "RESOURCE_MANAGER_URL": null, - "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" - } -} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json deleted file mode 100644 index 8a0606b76f132..0000000000000 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsAsync.json +++ /dev/null @@ -1,1462 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-2241?api-version=**", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-22cf7c81a2408b488b38d6826530bda5-521f7f5c29d46742-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f0fee70be409d7591676d5168ec3f036", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "220", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d5e2a1f6-1f46-44dd-bb46-2637ce6c69eb", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "d5e2a1f6-1f46-44dd-bb46-2637ce6c69eb", - "x-ms-routing-request-id": "WESTUS:20230629T194205Z:d5e2a1f6-1f46-44dd-bb46-2637ce6c69eb" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241", - "name": "Sql-RG-2241", - "type": "Microsoft.Resources/resourceGroups", - "location": "uksouth", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "140", - "Content-Type": "application/json", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-383b1dcdfbc38143-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b3c07cb5e4cf0b61e003440463d36fe7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "administratorLogin": "admin-sql-server-6633", - "administratorLoginPassword": "HvVJ%paVC@%GBKmi" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "74", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f6e4c73c-f044-4d6f-ab4f-0b7f67c4ac26", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "68d44100-6f70-49cc-827a-e66cac18b84d", - "x-ms-routing-request-id": "WESTUS:20230629T194206Z:f6e4c73c-f044-4d6f-ab4f-0b7f67c4ac26" - }, - "ResponseBody": { - "operation": "UpsertLogicalServer", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-344c25f1f8520446-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "9e93b8feed7d033b9de428e015d3b3a3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "089ae9f6-3700-49e3-91bd-e6ee742a21e3", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "7126321e-1ae6-44e4-90c7-f3bd4d9e4721", - "x-ms-routing-request-id": "WESTUS:20230629T194207Z:089ae9f6-3700-49e3-91bd-e6ee742a21e3" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "InProgress", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-bc466e0f00f25d44-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7a0a2e65aa826f784f5da3fce043b987", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e6b0ed80-8bd7-45c7-8094-0a254fab8210", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "66888322-a094-4e10-a0ce-d56ee736926f", - "x-ms-routing-request-id": "WESTUS:20230629T194208Z:e6b0ed80-8bd7-45c7-8094-0a254fab8210" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "InProgress", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-8baeb1912b274540-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ab053aa4d03f966a0d6aef391d4c4d3c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0e6ae889-6144-4f2a-8c5d-17779f439c80", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "32add4ea-6d9b-453e-978a-1d96dd8411bd", - "x-ms-routing-request-id": "WESTUS:20230629T194209Z:0e6ae889-6144-4f2a-8c5d-17779f439c80" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "InProgress", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-14c11454acde6145-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "23b85f20e54e54873f234f1f493f225a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3330243a-c480-4868-92ea-cac9c984f002", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "463ec28f-cb11-4119-a7cd-dc49571b1bd2", - "x-ms-routing-request-id": "WESTUS:20230629T194210Z:3330243a-c480-4868-92ea-cac9c984f002" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "InProgress", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-c96812ce125dbc4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "da3ca12b08cd9563c4746c18bb3e5202", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8446b747-1a40-491e-b88e-2e6e5b0f6d03", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "653eb947-5a31-45c0-9c73-19906c47ba17", - "x-ms-routing-request-id": "WESTUS:20230629T194213Z:8446b747-1a40-491e-b88e-2e6e5b0f6d03" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "InProgress", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-eba99ef88a4b6349-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "80dc670f958abf38b3b16b1c804a4cce", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b8283da9-58b4-4312-8826-d3bc0519b66d", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "3c12e0fe-286d-4797-864f-1f9d5b802e47", - "x-ms-routing-request-id": "WESTUS:20230629T194233Z:b8283da9-58b4-4312-8826-d3bc0519b66d" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "InProgress", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-994b791c08d21143-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7b0e94487310186ffc235fd9786f9900", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ab066624-6729-4703-916a-bf76ce7b23aa", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "5a3f3733-5ac0-413f-b88a-cb3e147b70ab", - "x-ms-routing-request-id": "WESTUS:20230629T194253Z:ab066624-6729-4703-916a-bf76ce7b23aa" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "InProgress", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/68d44100-6f70-49cc-827a-e66cac18b84d?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-31bb0599e1334f40-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e20f4dd1a16396cf687c271c9c471479", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:43:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0141a089-5398-4094-a502-20f48f80b5e8", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "e028edd5-3fbc-4b7d-8503-e4bbf3a6f422", - "x-ms-routing-request-id": "WESTUS:20230629T194314Z:0141a089-5398-4094-a502-20f48f80b5e8" - }, - "ResponseBody": { - "name": "68d44100-6f70-49cc-827a-e66cac18b84d", - "status": "Succeeded", - "startTime": "2023-06-29T19:42:06.853Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-1d13d449d3cc7d4fa1d745cb48de0b20-4b3882181d2fc247-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "26d09d28d6309cf1f7c38467355f4644", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "568", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:43:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9617f1ec-9cc5-4a59-bc98-a414dd018846", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "68358257-169d-4c8d-b7c3-45735c67a73c", - "x-ms-routing-request-id": "WESTUS:20230629T194314Z:9617f1ec-9cc5-4a59-bc98-a414dd018846" - }, - "ResponseBody": { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-6633", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-6633.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633", - "name": "sql-server-6633", - "type": "Microsoft.Sql/servers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "48", - "Content-Type": "application/json", - "traceparent": "00-930b447bc59b454d8f774d5231497c15-78f3a5a79e562b41-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "693a334aa66b78c513934b527bb40ee5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:43:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d4327d49-c98b-4d05-915a-5cbc02c414c5", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "095e5896-ad9b-4e31-956a-d92651cf9383", - "x-ms-routing-request-id": "WESTUS:20230629T194317Z:d4327d49-c98b-4d05-915a-5cbc02c414c5" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:43:16.997Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-930b447bc59b454d8f774d5231497c15-bb2edf3401fbed47-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e1fc3104be3e2a3161b7c35d50a548d0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:43:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2a597abe-27c0-4ad7-8709-43d4d03a68b0", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "058e1f91-c463-4ae9-b199-b82d3c89924d", - "x-ms-routing-request-id": "WESTUS:20230629T194317Z:2a597abe-27c0-4ad7-8709-43d4d03a68b0" - }, - "ResponseBody": { - "name": "095e5896-ad9b-4e31-956a-d92651cf9383", - "status": "InProgress", - "startTime": "2023-06-29T19:43:16.997Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-930b447bc59b454d8f774d5231497c15-6a856ad082b01041-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6bae4f58a4a5509ad7c77fcc885d180a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:43:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e43c18c6-5278-4d1f-bbec-8663309be9b2", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "b4f15aab-444f-4285-af3b-e73ef5264ab4", - "x-ms-routing-request-id": "WESTUS:20230629T194332Z:e43c18c6-5278-4d1f-bbec-8663309be9b2" - }, - "ResponseBody": { - "name": "095e5896-ad9b-4e31-956a-d92651cf9383", - "status": "InProgress", - "startTime": "2023-06-29T19:43:16.997Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-930b447bc59b454d8f774d5231497c15-c193257daaaf7b4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "494d685d2db8f2a6a974111937fe2245", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:43:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "13ce872d-93a7-47fa-b6b6-5b14c0ec406b", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "e9f85677-f685-412f-9eec-b9fcfa2cfca7", - "x-ms-routing-request-id": "WESTUS:20230629T194347Z:13ce872d-93a7-47fa-b6b6-5b14c0ec406b" - }, - "ResponseBody": { - "name": "095e5896-ad9b-4e31-956a-d92651cf9383", - "status": "InProgress", - "startTime": "2023-06-29T19:43:16.997Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/095e5896-ad9b-4e31-956a-d92651cf9383?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-930b447bc59b454d8f774d5231497c15-afe36c2b7a3e6b44-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "100f4d56ca5a5f3e97ac0a773f64a104", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0620b900-b9d9-4f25-b26d-c25a124ae075", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "0e70ce00-86e5-478a-a3f2-27e2976a5959", - "x-ms-routing-request-id": "WESTUS:20230629T194403Z:0620b900-b9d9-4f25-b26d-c25a124ae075" - }, - "ResponseBody": { - "name": "095e5896-ad9b-4e31-956a-d92651cf9383", - "status": "Succeeded", - "startTime": "2023-06-29T19:43:16.997Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-930b447bc59b454d8f774d5231497c15-ac67c1697f44a04a-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e8ffb89ffe572a18a9bcc130928118d8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d7359577-4885-4958-be27-3fab6742dc53", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "61a6a7f7-7f4c-47a3-a72e-25a1328fa7c4", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194403Z:d7359577-4885-4958-be27-3fab6742dc53" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:43:17.187Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", - "name": "sql-pool-7573", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-5020d631a0ad8f4187942d6696233759-ff6c6b54eb55674c-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3b763aa5074d92b029edb20b232fb244", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b5c0ff4d-c9f5-42c5-970d-07fc64eb7e2e", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "8b3c9209-19a5-4d70-a320-ee6ac000549a", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194404Z:b5c0ff4d-c9f5-42c5-970d-07fc64eb7e2e" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:43:17.187Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", - "name": "sql-pool-7573", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-90aeea6c8dbdd64eb054d14980685151-cc7535e32be3e048-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7f790dd339fe58ed35e4679e080dcd16", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "247", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "68849c57-e0e1-4de2-8c0d-eb319c613b9d", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "68849c57-e0e1-4de2-8c0d-eb319c613b9d", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194404Z:68849c57-e0e1-4de2-8c0d-eb319c613b9d" - }, - "ResponseBody": { - "error": { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-6633/elasticpools/sql-pool-8774\u0027 under resource group \u0027Sql-RG-2241\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-688ab76f190ab34ca7dd9924a29acb72-45799165011d234e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "05d1319366ee98b6086dbf694b0c0779", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ee35f642-52a9-41d3-99c3-42f08662873a", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "f5061909-987d-451e-b2ff-e44670798013", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194404Z:ee35f642-52a9-41d3-99c3-42f08662873a" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:43:17.187Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", - "name": "sql-pool-7573", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "48", - "Content-Type": "application/json", - "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-62f02ff50a0b634f-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "855d7d0999076cda4c1d0669a011891b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f035bcca-b73e-4685-8f50-451bdfe3a341", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "939dfe12-3507-4495-9685-05fbaaa5aac0", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194406Z:f035bcca-b73e-4685-8f50-451bdfe3a341" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:44:06.697Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-1ba65dc70b60d943-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8b95eedc47b0fa0e5764b9d05f4cf8f6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e0954c38-f127-4170-96af-71d045ae478a", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "88f52533-1e90-4db2-a495-a52b79b93423", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194407Z:e0954c38-f127-4170-96af-71d045ae478a" - }, - "ResponseBody": { - "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", - "status": "InProgress", - "startTime": "2023-06-29T19:44:06.697Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-d0033be7f0e54048-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "af48a3e315945c1a27ef2d262248f2c8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "aaefdf51-cd1e-4a70-86fe-cae2d4b4b6d3", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "9aac6854-6f61-41c6-8439-bfc4c8e72f52", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194422Z:aaefdf51-cd1e-4a70-86fe-cae2d4b4b6d3" - }, - "ResponseBody": { - "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", - "status": "InProgress", - "startTime": "2023-06-29T19:44:06.697Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-ec1922296bb6134e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b18cdd11fe7cd86a8d7c9bf9f4850d0b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8ac82403-e773-4e71-b982-ecf9d3cca125", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "f421e60e-a898-47bf-b25e-7da8fcc442ec", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194437Z:8ac82403-e773-4e71-b982-ecf9d3cca125" - }, - "ResponseBody": { - "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", - "status": "InProgress", - "startTime": "2023-06-29T19:44:06.697Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/939dfe12-3507-4495-9685-05fbaaa5aac0?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-849336b7be25bc4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d6ae80e95c3ac794d33864c11ae7d80e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "278193f6-40a2-499e-870e-b63d4399ce68", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "73bea436-5401-4f99-949a-ed6a1cd933b4", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194452Z:278193f6-40a2-499e-870e-b63d4399ce68" - }, - "ResponseBody": { - "name": "939dfe12-3507-4495-9685-05fbaaa5aac0", - "status": "Succeeded", - "startTime": "2023-06-29T19:44:06.697Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69183f3fc7213243aea51fc5df9c6e12-9235d6f2e879814f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "82bff07246c0e57a387021177a2168a1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1bb2bdf9-3267-4b2d-b85c-1702e53acac9", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "f4dc0d81-6a52-4d76-92d4-2cd686099bdb", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194453Z:1bb2bdf9-3267-4b2d-b85c-1702e53acac9" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:44:06.853Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774", - "name": "sql-pool-8774", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a23d22e21b9ab48d49c4de4399a9bea6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1555", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "18f77ccc-b7a1-456b-8511-76f14f487de2", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "d7e14dd5-84b2-4d1b-95bf-14980dcb1a1f", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194453Z:18f77ccc-b7a1-456b-8511-76f14f487de2" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:43:17.187Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", - "name": "sql-pool-7573", - "type": "Microsoft.Sql/servers/elasticPools" - }, - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:44:06.853Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774", - "name": "sql-pool-8774", - "type": "Microsoft.Sql/servers/elasticPools" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-300cbaf60f77aa4cbdf48701d77f5591-bee19c870c1ee34e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "03868ca48bc6a34b05c99eca3b7c4db1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e25b91a7-23a2-48cc-a3ad-34bbf78a4956", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "bf1dbd59-8c14-4eb7-82a2-8d584c6257b0", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194453Z:e25b91a7-23a2-48cc-a3ad-34bbf78a4956" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:43:17.187Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573", - "name": "sql-pool-7573", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-7573?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-53250906f250f74a895908e7eab2490e-dfe60f1d4d3c0945-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f7dfc3d036aa5773620a39fb67364c8e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:44:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0b7d1e26-7112-4633-b08e-084568f7030d", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "2b96ee98-ae4a-42ef-9221-25abb6c80ce8", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194458Z:0b7d1e26-7112-4633-b08e-084568f7030d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-dcea4895d408ad4aa07a793f43c28a3f-ecded82bf3585b43-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d6732c76c6ca6dfb182fa0bb514f3bcf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "771", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:44:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8a1c3d8d-ddc5-4bce-838a-42c49f58e61d", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "c5513faa-3e51-42f6-bf8d-991da53932d2", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194459Z:8a1c3d8d-ddc5-4bce-838a-42c49f58e61d" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:44:06.853Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774", - "name": "sql-pool-8774", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools/sql-pool-8774?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-41445fd18aa4f441b5ebc61c517c8ce7-71ff0f895543d147-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c0190f7d60086b17e78720109aa2daa0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:45:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c91d35e9-492b-455c-8e3e-b6df66907e6f", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "2dd10326-7eaa-4be1-9897-4b4a935888dd", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194501Z:c91d35e9-492b-455c-8e3e-b6df66907e6f" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6d54cc5eb9a916c41507ee42a6ebd376", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fe19728a-bdfa-4d55-8151-bb2600fca3d6", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "9d814d52-9c73-4e37-92d7-40eddf0fd780", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194501Z:fe19728a-bdfa-4d55-8151-bb2600fca3d6" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e52a005500cb070c4b2d40028baca7c7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "580", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f962b902-d82c-4abf-968d-a58b2098c482", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "310b6642-c9a1-4e25-9621-fe7e5f76c348", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194502Z:f962b902-d82c-4abf-968d-a58b2098c482" - }, - "ResponseBody": { - "value": [ - { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-6633", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-6633.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633", - "name": "sql-server-6633", - "type": "Microsoft.Sql/servers" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-6633?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-8cc7554612e4734ab237814ef760e785-89d0a94754b47049-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ceb198826c4dd8f6a76d24bb87814594", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "72", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "32b44a25-5148-48ed-b568-0d49aad3d629", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "51fa3294-a28d-493f-bc5a-498b9cf73679", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194502Z:32b44a25-5148-48ed-b568-0d49aad3d629" - }, - "ResponseBody": { - "operation": "DropLogicalServer", - "startTime": "2023-06-29T19:45:02.777Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-8cc7554612e4734ab237814ef760e785-dd2a42a54a846742-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0dc0275f0439e82809523e5ddc5080ca", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2ba5a25f-13ad-4588-bf77-7c574a43b731", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "f6665b58-6d96-4ecf-87c2-baa280d76c59", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194503Z:2ba5a25f-13ad-4588-bf77-7c574a43b731" - }, - "ResponseBody": { - "name": "51fa3294-a28d-493f-bc5a-498b9cf73679", - "status": "InProgress", - "startTime": "2023-06-29T19:45:02.777Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/51fa3294-a28d-493f-bc5a-498b9cf73679?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-8cc7554612e4734ab237814ef760e785-c254b95b3b70114d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2dceabe8e39762d1dc530e004b7a5ee4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d14596b8-2d36-472a-863e-994acb1510bf", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "7a432228-5435-409d-9119-6c403087f6d3", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194518Z:d14596b8-2d36-472a-863e-994acb1510bf" - }, - "ResponseBody": { - "name": "51fa3294-a28d-493f-bc5a-498b9cf73679", - "status": "Succeeded", - "startTime": "2023-06-29T19:45:02.777Z" - } - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "1615394464", - "RESOURCE_MANAGER_URL": null, - "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" - } -} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json deleted file mode 100644 index 87ad682489a30..0000000000000 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclaves.json +++ /dev/null @@ -1,2386 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-1560?api-version=**", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-06f3824cd2d28d468467169be93c5f77-ec21fb49e7d53644-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4533db0358d05ac1c26492abb5410645", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "220", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "24c7bdf8-7098-470e-818f-556aba3f9d87", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "24c7bdf8-7098-470e-818f-556aba3f9d87", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193658Z:24c7bdf8-7098-470e-818f-556aba3f9d87" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560", - "name": "Sql-RG-1560", - "type": "Microsoft.Resources/resourceGroups", - "location": "uksouth", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "140", - "Content-Type": "application/json", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-2e7e41e8a1e1054f-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e9cd3a52ce33a6ca34790e3fc9f26f93", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "administratorLogin": "admin-sql-server-4530", - "administratorLoginPassword": "HvVJ%paVC@%GBKmi" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "74", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "aedf0676-5701-4073-aaa8-aab2382d2e91", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "e82554ff-1076-4636-ae95-c747ccad887a", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193659Z:aedf0676-5701-4073-aaa8-aab2382d2e91" - }, - "ResponseBody": { - "operation": "UpsertLogicalServer", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-7ead39d02f485045-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6301cee1bcaa0cd0689e9cdeb31bf972", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:36:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "49d8dd77-b956-48f4-be41-a59b6d560c8c", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "9160d75b-9d8d-4c43-ba8f-4fbe834ac841", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193659Z:49d8dd77-b956-48f4-be41-a59b6d560c8c" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "InProgress", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-5af8ed2fb078ca4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3c0b17238369a700267f4cffd47efbb7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:37:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "059c8cb0-da4a-44b6-b691-d3aaf0baa464", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "5cbacf46-04be-457c-a6b8-5e3caf551433", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193700Z:059c8cb0-da4a-44b6-b691-d3aaf0baa464" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "InProgress", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-c8a0287096ad754c-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "fb5e158b0bf1ede93590599a0e349b81", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:37:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "85e99ddb-6e1a-4ba7-82f3-d6df8dab6af1", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "40284db8-d775-48f4-a8de-4515b9484b07", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193702Z:85e99ddb-6e1a-4ba7-82f3-d6df8dab6af1" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "InProgress", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-463c82d1e3d16040-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "9329883bb2725d8fcd593c2b6fd138e9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:37:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1e0e4453-8012-4cfc-8c8b-6c0bab822282", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "227609f3-883a-4c9a-8180-5f65d6890a78", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193703Z:1e0e4453-8012-4cfc-8c8b-6c0bab822282" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "InProgress", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-058b4f1ea37d694e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "9d53e4a3febc17812e1e06d92a6699f2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:37:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "35bfe8f8-f65d-48f8-9d04-e3f43c901c1f", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "f1df3627-7c21-4d83-ad02-379a14cfd543", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193705Z:35bfe8f8-f65d-48f8-9d04-e3f43c901c1f" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "InProgress", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-1a23a4cf29ba284a-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4cc3cbe36755d94586012d97cebe7d63", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:37:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4ce59c5c-96bb-4cad-b6ad-ab866555054e", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "882d8b44-beb9-4973-abf2-225685904fe3", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193725Z:4ce59c5c-96bb-4cad-b6ad-ab866555054e" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "InProgress", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-ffb77c0ade6d2b45-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "29f76f57fee03cc507116553abb53267", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:37:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "10459325-4b5c-46a7-8b18-aa27e3112579", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "663d230b-4832-4862-935d-0f67729d8738", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193746Z:10459325-4b5c-46a7-8b18-aa27e3112579" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "InProgress", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/e82554ff-1076-4636-ae95-c747ccad887a?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-718c692dcc73a844-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a4474ac0ec0d3b949f7a16bbd1e94970", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6cf34e86-65bd-4597-83c7-6de69d234cf9", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "17eaf9c9-0108-4c8e-a71f-20629727c0ac", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193806Z:6cf34e86-65bd-4597-83c7-6de69d234cf9" - }, - "ResponseBody": { - "name": "e82554ff-1076-4636-ae95-c747ccad887a", - "status": "Succeeded", - "startTime": "2023-06-29T19:36:59.577Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e5f594d8ef5cef468c989b1608a5319b-fd75aa28681e7043-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ba81a3a06f6ee5120586454401f12ed1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "568", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8d0c8440-cc7b-407c-be3b-c21cffac4d02", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "ce81c0ff-6b29-4e0a-8b0a-9ac993989169", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193806Z:8d0c8440-cc7b-407c-be3b-c21cffac4d02" - }, - "ResponseBody": { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-4530", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-4530.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530", - "name": "sql-server-4530", - "type": "Microsoft.Sql/servers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "80", - "Content-Type": "application/json", - "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-78eeff227b41a044-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d97684d66b56bbdb8965e80a6b1dc7f5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "Default" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "78", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3ac6c5c0-c91c-4ddb-bbd4-78e5f094787f", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "d99c5795-0f74-43eb-9354-6f4732ca5a17", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193809Z:3ac6c5c0-c91c-4ddb-bbd4-78e5f094787f" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:38:09.75Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-f1ca9f7f1fccd641-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c5120becc7f9164cdfb3e5acfdfb1a27", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bfff1667-3ebc-426d-b9fd-ea6a398eee4d", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "a7811874-155f-465b-a5c7-1820796103a9", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193810Z:bfff1667-3ebc-426d-b9fd-ea6a398eee4d" - }, - "ResponseBody": { - "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", - "status": "InProgress", - "startTime": "2023-06-29T19:38:09.75Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-193cbada1847df43-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "263d0b7c579c86cc4c153acfc48b81da", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "63fe810b-90b5-4816-9ce1-c8fb013f5dcb", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "d99c938a-4889-4951-b3ce-2ac6c44d2b81", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193825Z:63fe810b-90b5-4816-9ce1-c8fb013f5dcb" - }, - "ResponseBody": { - "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", - "status": "InProgress", - "startTime": "2023-06-29T19:38:09.75Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-9c944964d9bec242-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "601da219020aecfcbb1e98456b8b64a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ce860777-ab7a-40d6-9d34-8e4fb00f7ffd", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "d7fbe277-6fe1-4523-95f5-53e27b2f4a46", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193840Z:ce860777-ab7a-40d6-9d34-8e4fb00f7ffd" - }, - "ResponseBody": { - "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", - "status": "InProgress", - "startTime": "2023-06-29T19:38:09.75Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/d99c5795-0f74-43eb-9354-6f4732ca5a17?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-0dcb3c89d23ed24d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2ed37f6b267195a83f8c78e48c7c5153", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d434a55b-cbd9-4cc5-8eae-1ff194588ab2", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "9311b81a-31f6-476e-81fb-9440c2106116", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193855Z:d434a55b-cbd9-4cc5-8eae-1ff194588ab2" - }, - "ResponseBody": { - "name": "d99c5795-0f74-43eb-9354-6f4732ca5a17", - "status": "Succeeded", - "startTime": "2023-06-29T19:38:09.75Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-dd903b1b4b53374ab428973e513f62f5-951d0bc433d22f46-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "5a930a31bade791c0f516a7ebf861bc1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "819", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "76b233df-7fc3-4168-9dc6-257c4aac6693", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "02fb97f5-3c29-4458-87d8-e420a98a2b6d", - "x-ms-routing-request-id": "WESTUS:20230629T193857Z:76b233df-7fc3-4168-9dc6-257c4aac6693" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:38:09.89Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", - "name": "sql-pool-Default-8332", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-317ee51e53ea714fa9d4659a9521a972-2b0602d428a77545-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "446497b053b8f269fa88207e8a185f3e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "819", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a559aa8a-7e71-4995-bd44-88ee39ac88d8", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "c5d26f24-6dcb-46ed-9ea4-6e6fcf845958", - "x-ms-routing-request-id": "WESTUS:20230629T193857Z:a559aa8a-7e71-4995-bd44-88ee39ac88d8" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:38:09.89Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", - "name": "sql-pool-Default-8332", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-7f6c25f371ee6344a713d66964214f46-3e0628984a8d7141-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "601344cc0af7b0c4625a1e1fbb29d6b8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "255", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f62ec90f-7c5d-44d6-a18c-c69978db1d3b", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "f62ec90f-7c5d-44d6-a18c-c69978db1d3b", - "x-ms-routing-request-id": "WESTUS:20230629T193858Z:f62ec90f-7c5d-44d6-a18c-c69978db1d3b" - }, - "ResponseBody": { - "error": { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4530/elasticpools/sql-pool-Default-2785\u0027 under resource group \u0027Sql-RG-1560\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-99804e87589a2a478a5ab109a878df3e-2d32fceb6fef1c40-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f433b7710c18de9ba1a05f559a9eeff7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "819", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:38:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bbe7748a-0f48-46b6-971b-dd832a637df9", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "a3e4bb91-a666-434d-a7b8-b97447c17ade", - "x-ms-routing-request-id": "WESTUS:20230629T193858Z:bbe7748a-0f48-46b6-971b-dd832a637df9" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:38:09.89Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", - "name": "sql-pool-Default-8332", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "80", - "Content-Type": "application/json", - "traceparent": "00-2a3b67899aab974ea113490997013241-3598eff6430c4844-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7ab22bf1ba72a6c9d3b3e25e344a36d1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "Default" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "78", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "98257005-9fef-4112-9d78-47a9efdd5b30", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", - "x-ms-routing-request-id": "WESTUS:20230629T193901Z:98257005-9fef-4112-9d78-47a9efdd5b30" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:39:01.24Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a3b67899aab974ea113490997013241-9634526c4c65cb48-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "902d276a5b77b645ed8d21642a3da956", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f3a54a80-9399-48aa-b8f2-627a9a9c9abc", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "27f9a4bb-93cd-4707-bcad-6ead7243bd47", - "x-ms-routing-request-id": "WESTUS:20230629T193901Z:f3a54a80-9399-48aa-b8f2-627a9a9c9abc" - }, - "ResponseBody": { - "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", - "status": "InProgress", - "startTime": "2023-06-29T19:39:01.24Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a3b67899aab974ea113490997013241-4ec53dc626d80e42-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "32a28e6a1c92861205f2d13dfc72fb63", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "14a1d33f-26aa-4082-9080-a7b6ae65b815", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "18416072-5301-4fd6-a5dd-2b11e504ba7f", - "x-ms-routing-request-id": "WESTUS:20230629T193916Z:14a1d33f-26aa-4082-9080-a7b6ae65b815" - }, - "ResponseBody": { - "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", - "status": "InProgress", - "startTime": "2023-06-29T19:39:01.24Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a3b67899aab974ea113490997013241-78262a7c5ed4984b-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0df31d9ca61c57592155e55649c1956b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5a7a74a3-f26e-4757-98b5-48387ba35302", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "bd692d71-df23-4b54-8266-ea0556d0cf6e", - "x-ms-routing-request-id": "WESTUS:20230629T193932Z:5a7a74a3-f26e-4757-98b5-48387ba35302" - }, - "ResponseBody": { - "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", - "status": "InProgress", - "startTime": "2023-06-29T19:39:01.24Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/c32bc2e2-df62-40a2-b297-4adc20bd0e38?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a3b67899aab974ea113490997013241-ccc36125e75a9b40-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1cec688be4cc4e3215a78a858908ba7b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "42cf236b-0cd7-46c6-b019-53b5f1d78153", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "5826427e-258d-4604-96dd-9f26f0abb795", - "x-ms-routing-request-id": "WESTUS:20230629T193947Z:42cf236b-0cd7-46c6-b019-53b5f1d78153" - }, - "ResponseBody": { - "name": "c32bc2e2-df62-40a2-b297-4adc20bd0e38", - "status": "Succeeded", - "startTime": "2023-06-29T19:39:01.24Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a3b67899aab974ea113490997013241-2889bbeb4b5baf48-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0cc8be929c4ac33a344b103c37bb3d43", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5a3e31bc-f32a-45c8-a69f-190413ecbb79", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "929f6ddb-62af-4452-b208-955f2e4525de", - "x-ms-routing-request-id": "WESTUS:20230629T193947Z:5a3e31bc-f32a-45c8-a69f-190413ecbb79" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:01.383Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785", - "name": "sql-pool-Default-2785", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-b53ebfab5e56fe4291db14294b2ee061-eace9c505144dd45-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "93b2665cde86b896eba4f8751bd4cd19", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1652", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9a1d6d16-6730-4d83-8eda-b40bc6e383b7", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "610c59c3-d952-4800-a41c-72ea467db0c7", - "x-ms-routing-request-id": "WESTUS:20230629T193948Z:9a1d6d16-6730-4d83-8eda-b40bc6e383b7" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:38:09.89Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", - "name": "sql-pool-Default-8332", - "type": "Microsoft.Sql/servers/elasticPools" - }, - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:01.383Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785", - "name": "sql-pool-Default-2785", - "type": "Microsoft.Sql/servers/elasticPools" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-dbff79995bbdb54cb1462d2fca0a624f-3472f43b93e39347-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8bc46a9b89f9ee202d28e880d4f51759", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "819", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "54a8e7b9-0578-4bf7-8e46-813cbfeeaf25", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "080a7e43-5bd2-43e6-b742-e0b8fbb03a76", - "x-ms-routing-request-id": "WESTUS:20230629T193948Z:54a8e7b9-0578-4bf7-8e46-813cbfeeaf25" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:38:09.89Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332", - "name": "sql-pool-Default-8332", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-8332?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-5a78098fe521fa4d989dffe4075de7db-9bed9b03dd1a1c43-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "232846692655b3f4271020a5a4c5a85f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:39:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8d6e3968-dc25-4640-970e-6597317502f0", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "13d9d2e1-39e0-4812-82bd-51ef50cfa645", - "x-ms-routing-request-id": "WESTUS:20230629T193953Z:8d6e3968-dc25-4640-970e-6597317502f0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-d79c682bfb290447868b5b2677625e36-9fec0d9f0be47f4f-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d40b9e8da9ac74c4751063e9687a4968", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1b37a169-2034-4408-a6e7-6b1df6ea855e", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "e36a235b-526b-4b32-9d8c-91d7be68ab03", - "x-ms-routing-request-id": "WESTUS:20230629T193954Z:1b37a169-2034-4408-a6e7-6b1df6ea855e" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:01.383Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785", - "name": "sql-pool-Default-2785", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-Default-2785?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-c1377ed3ae1e0e4ab19c3323d337a1aa-8a97d69854d6c34e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "dd0288804a54b762fc55dd90c097bc11", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:39:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d79833df-efed-4023-a556-4bf9ed88d6fd", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "57cacd80-3ce8-4320-aef4-ac95be82a6c1", - "x-ms-routing-request-id": "WESTUS:20230629T193956Z:d79833df-efed-4023-a556-4bf9ed88d6fd" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-f5fe550b2a802342ba3e01987d8a2e12-e9a8ff50cd8c5345-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6dddfd7a061343a13c54d857cc34b4de", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "14f60919-177a-4355-9d0b-c5a58c21ad6c", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "5976df61-ef55-447c-90be-25da1595f745", - "x-ms-routing-request-id": "WESTUS:20230629T193957Z:14f60919-177a-4355-9d0b-c5a58c21ad6c" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-cdc21fbc42252843-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "43623ebdadaf2dd5ab27f27c689bea12", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "VBS" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4c97cdfd-3b11-49d4-9134-22503667bd68", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", - "x-ms-routing-request-id": "WESTUS:20230629T193958Z:4c97cdfd-3b11-49d4-9134-22503667bd68" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:39:58.787Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-fc5eefa65b0f754e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2ca3fb9237682f4e97e55b7951c0eb3c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:39:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8e8a1105-33ea-467a-946b-892fcb18f5bc", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "a8aca265-38e9-4022-a823-892771cdc20f", - "x-ms-routing-request-id": "WESTUS:20230629T193959Z:8e8a1105-33ea-467a-946b-892fcb18f5bc" - }, - "ResponseBody": { - "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", - "status": "InProgress", - "startTime": "2023-06-29T19:39:58.787Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-6ce691dbe9e3ab40-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f11eb96c04239854b68d7a4ab27924ad", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "68bfa1a5-b381-4bdd-81c4-fb0280e9337b", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "859b5065-ae47-4bdf-97ce-7cbb0fa0f269", - "x-ms-routing-request-id": "WESTUS:20230629T194014Z:68bfa1a5-b381-4bdd-81c4-fb0280e9337b" - }, - "ResponseBody": { - "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", - "status": "InProgress", - "startTime": "2023-06-29T19:39:58.787Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-60cf685bb351c848-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6cea78afbef7deaa748ab717c90e8409", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c10de1bc-09f9-4e53-9719-f72f301137d9", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "47eafdb1-3fea-4c19-8515-74eeed595e72", - "x-ms-routing-request-id": "WESTUS:20230629T194029Z:c10de1bc-09f9-4e53-9719-f72f301137d9" - }, - "ResponseBody": { - "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", - "status": "InProgress", - "startTime": "2023-06-29T19:39:58.787Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/b4154bff-2996-41bb-bb6a-e692f9ca0bdd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-fcb8a60452b9144a-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4fefbd7886df8d55a70b75dabc037c1e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "75d72c34-b3d0-4e47-9dc7-e72ceb5bf861", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "32d2a608-4f33-4ff3-a30c-af18b60f3f15", - "x-ms-routing-request-id": "WESTUS:20230629T194044Z:75d72c34-b3d0-4e47-9dc7-e72ceb5bf861" - }, - "ResponseBody": { - "name": "b4154bff-2996-41bb-bb6a-e692f9ca0bdd", - "status": "Succeeded", - "startTime": "2023-06-29T19:39:58.787Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-97651c51e3c54f4e9cd4fa3a9ed06496-4fd4ddf4269fe445-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d8caaec07fd5ae450e407d994d3dcfa8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "804", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "42e201b5-04f0-4b33-8989-755dc53beef3", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "fcfe5ced-1f48-4857-8dd5-0558a60a2fa9", - "x-ms-routing-request-id": "WESTUS:20230629T194045Z:42e201b5-04f0-4b33-8989-755dc53beef3" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:58.897Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", - "name": "sql-pool-VBS-33", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-472260895e58ad42a636a0e28abd349e-c67cdb7eee915546-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f5d17009d58a28cd225cc5ec48d02170", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "804", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "23607615-a18f-40a1-88a5-5ace50deaa02", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "2bf71ee3-c007-491d-b678-bdc32bc93707", - "x-ms-routing-request-id": "WESTUS:20230629T194045Z:23607615-a18f-40a1-88a5-5ace50deaa02" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:58.897Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", - "name": "sql-pool-VBS-33", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-980e6061e22441419372152ae767b73e-a84923915220c644-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1a56990dab43f9337840419f09bc3f69", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "251", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "49112ff9-aa3a-4448-b2d6-d7596d4c17e3", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "49112ff9-aa3a-4448-b2d6-d7596d4c17e3", - "x-ms-routing-request-id": "WESTUS:20230629T194045Z:49112ff9-aa3a-4448-b2d6-d7596d4c17e3" - }, - "ResponseBody": { - "error": { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4530/elasticpools/sql-pool-VBS-5705\u0027 under resource group \u0027Sql-RG-1560\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-8aedd4d14554b44ea628522d048bc55e-0916f67fe27a154e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4cd1cd3c8732eb93e1a1b578b958653e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "804", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b1e47dc9-9cc5-40a7-9ffa-011480ba8903", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "cc376fd3-ec80-46f8-be83-2f47af413de4", - "x-ms-routing-request-id": "WESTUS:20230629T194045Z:b1e47dc9-9cc5-40a7-9ffa-011480ba8903" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:58.897Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", - "name": "sql-pool-VBS-33", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "traceparent": "00-2a9959383f28234aa433fbbf47115401-0a5f7690f8fd994e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b48b0c1eb4e65d643cd77c49942d1f66", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "VBS" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a2dc57e6-6fd8-4cc5-9001-0fb7379bc748", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", - "x-ms-routing-request-id": "WESTUS:20230629T194047Z:a2dc57e6-6fd8-4cc5-9001-0fb7379bc748" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:40:47.883Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a9959383f28234aa433fbbf47115401-d5144b54d7544c48-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "fc8003db8b30878369730f5a0b4957b3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:40:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "41261f53-8836-4e53-8d6c-67ac3c38ac69", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "ff800f94-4656-4675-8118-382d5556f62f", - "x-ms-routing-request-id": "WESTUS:20230629T194048Z:41261f53-8836-4e53-8d6c-67ac3c38ac69" - }, - "ResponseBody": { - "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", - "status": "InProgress", - "startTime": "2023-06-29T19:40:47.883Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a9959383f28234aa433fbbf47115401-5c1a5eaa6b38f54c-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "5d5b4f81eaa7493ecd05ae7b7bc16781", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "af25f072-7ed9-4df7-aac2-8c40deea0765", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "07e110c3-9119-4f20-933f-45a42647fb3c", - "x-ms-routing-request-id": "WESTUS:20230629T194103Z:af25f072-7ed9-4df7-aac2-8c40deea0765" - }, - "ResponseBody": { - "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", - "status": "InProgress", - "startTime": "2023-06-29T19:40:47.883Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a9959383f28234aa433fbbf47115401-2c355a21bc956247-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "916e5c9622ad9135d828118bc5e47abc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9f22ab60-d478-4240-bd92-e8248a8f5c59", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "48d05a30-882f-4ae9-a75b-d8c73a084def", - "x-ms-routing-request-id": "WESTUS:20230629T194118Z:9f22ab60-d478-4240-bd92-e8248a8f5c59" - }, - "ResponseBody": { - "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", - "status": "InProgress", - "startTime": "2023-06-29T19:40:47.883Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/6e2af56c-7753-4be0-a705-ab1dbca6ba96?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a9959383f28234aa433fbbf47115401-098328133b66aa4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a6208514e35ff178c4372f2bdd080ca8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2bc5440f-24a2-4e8d-821f-8ab817f9a074", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "4ad5020c-e481-4402-aa83-9f7348aeab02", - "x-ms-routing-request-id": "WESTUS:20230629T194133Z:2bc5440f-24a2-4e8d-821f-8ab817f9a074" - }, - "ResponseBody": { - "name": "6e2af56c-7753-4be0-a705-ab1dbca6ba96", - "status": "Succeeded", - "startTime": "2023-06-29T19:40:47.883Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2a9959383f28234aa433fbbf47115401-7a3cc773de95b64d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "afc38d0bc6db5f0619ca847ed8b383e9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "808", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "764fc0f8-c86d-4349-9cfa-44bc110db6c0", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "a2dbdb74-8269-46c7-8be8-5ab65b6cb686", - "x-ms-routing-request-id": "WESTUS:20230629T194134Z:764fc0f8-c86d-4349-9cfa-44bc110db6c0" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:40:47.977Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705", - "name": "sql-pool-VBS-5705", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-133ff48720c35a438fa94fa077eaf02d-f6adb5750d00e244-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f567f18bc1a0b322e37dcc75f30ab3d0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1625", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "84694e1c-c824-4ac9-977b-1e69d05fdce0", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "3499eb69-04dc-46a7-8094-8fc4e88982d8", - "x-ms-routing-request-id": "WESTUS:20230629T194134Z:84694e1c-c824-4ac9-977b-1e69d05fdce0" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:40:47.977Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705", - "name": "sql-pool-VBS-5705", - "type": "Microsoft.Sql/servers/elasticPools" - }, - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:58.897Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", - "name": "sql-pool-VBS-33", - "type": "Microsoft.Sql/servers/elasticPools" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-7a91cc9d284fe4449992c10aaaf3c935-62874d5cbe581c4a-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3880691ccb204de17fc18d955ef91810", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "804", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6533e11a-084b-42bc-b391-004922e8755f", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "46588ce8-9751-4844-82d1-50717bb35101", - "x-ms-routing-request-id": "WESTUS:20230629T194134Z:6533e11a-084b-42bc-b391-004922e8755f" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:39:58.897Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33", - "name": "sql-pool-VBS-33", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-33?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-dc75aee768964e46808439459d3471b3-d111a3988ea00340-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "eb9f45b317a049076b0fcb5ef9906b0f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:41:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "984c28b9-edf4-4ef3-adcf-2e9022ef8d14", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "fbc0c2c8-6f4f-4354-8fe6-1bf09f5c4ceb", - "x-ms-routing-request-id": "WESTUS:20230629T194138Z:984c28b9-edf4-4ef3-adcf-2e9022ef8d14" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-0d9f5099d78ed54f8faf44519b618f7a-e4ec862129db8849-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "adc2bb64c76a052f6136cc10ff8254ee", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "808", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f1c9a1c8-7a84-45c0-a27e-1d2b3389db45", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "f1c8e984-d525-414a-af8e-94ee1b83aeb0", - "x-ms-routing-request-id": "WESTUS:20230629T194138Z:f1c9a1c8-7a84-45c0-a27e-1d2b3389db45" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:40:47.977Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705", - "name": "sql-pool-VBS-5705", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools/sql-pool-VBS-5705?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-de1fdf81b9b5f54eae7239138e3d9096-1f2ecf67b6829c42-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a97e7d55a99767de7ce0db87a12815de", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:41:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "11e36bb8-064e-4063-b42b-f2983e290515", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "998c8067-89e3-49de-afef-d8c494e74eb2", - "x-ms-routing-request-id": "WESTUS:20230629T194140Z:11e36bb8-064e-4063-b42b-f2983e290515" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-1beb002beb3f19489e2453fd17349f54-00053532f7b91645-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b68886c4ab0ebb53dd5a308aeca76338", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9d15386c-7742-4f24-92b7-bbb50aed8d24", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "5cd8e4fa-39d4-4ccb-9e90-f2067c675a05", - "x-ms-routing-request-id": "WESTUS:20230629T194141Z:9d15386c-7742-4f24-92b7-bbb50aed8d24" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-22bd6d8be4fe3f40a7ef4f7e49ac6418-7110d6ccb6220943-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1f56ee2017899720d92f24399be1e8c5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "580", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ce2bf1c7-1357-4b0b-aecc-460baf12ac20", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "65059582-75bd-4d0c-8193-5e2ef098417c", - "x-ms-routing-request-id": "WESTUS:20230629T194142Z:ce2bf1c7-1357-4b0b-aecc-460baf12ac20" - }, - "ResponseBody": { - "value": [ - { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-4530", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-4530.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530", - "name": "sql-server-4530", - "type": "Microsoft.Sql/servers" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/servers/sql-server-4530?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ff712571a83f1d4ca6d1fb3870268b10-8c9b3f5efed8ad44-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1ac34d205f9f0ecf8d3e5f748d1962dd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "72", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "238487cc-aec6-4880-9af4-4916a3bf65ea", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "7d954163-efaf-4088-8c72-fd46f664b82b", - "x-ms-routing-request-id": "WESTUS:20230629T194142Z:238487cc-aec6-4880-9af4-4916a3bf65ea" - }, - "ResponseBody": { - "operation": "DropLogicalServer", - "startTime": "2023-06-29T19:41:42.413Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ff712571a83f1d4ca6d1fb3870268b10-a106cb54af7d2e4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "9e6a6b7148e4c1981f47914bb8ac0abf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7f47f0eb-8d81-4b8e-bb86-48f6991523fa", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "78835587-1e99-4a35-9a16-b2c65c36847f", - "x-ms-routing-request-id": "WESTUS:20230629T194142Z:7f47f0eb-8d81-4b8e-bb86-48f6991523fa" - }, - "ResponseBody": { - "name": "7d954163-efaf-4088-8c72-fd46f664b82b", - "status": "InProgress", - "startTime": "2023-06-29T19:41:42.413Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/7d954163-efaf-4088-8c72-fd46f664b82b?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ff712571a83f1d4ca6d1fb3870268b10-c10431149cab0a44-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c63f46cd58067f634916b4ae82f08774", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:41:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ebe9ed05-5ce5-4f64-99d0-b24ec2ac96ce", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "9efec6ac-5d91-44d2-b594-84da26760dbb", - "x-ms-routing-request-id": "WESTUS:20230629T194157Z:ebe9ed05-5ce5-4f64-99d0-b24ec2ac96ce" - }, - "ResponseBody": { - "name": "7d954163-efaf-4088-8c72-fd46f664b82b", - "status": "Succeeded", - "startTime": "2023-06-29T19:41:42.413Z" - } - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "2071916993", - "RESOURCE_MANAGER_URL": null, - "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" - } -} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json deleted file mode 100644 index 57d1eab6b5d05..0000000000000 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolApiTestsWithEnclavesAsync.json +++ /dev/null @@ -1,2415 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-2241?api-version=**", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-4894c2666f8c254b9b52c0fbe3774dc3-32a9e785e4057d48-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "059080fed1adb9d0e6b526d58e6bfbe1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "220", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "18123e59-4a2f-478d-a450-843ea06b8532", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "18123e59-4a2f-478d-a450-843ea06b8532", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194519Z:18123e59-4a2f-478d-a450-843ea06b8532" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241", - "name": "Sql-RG-2241", - "type": "Microsoft.Resources/resourceGroups", - "location": "uksouth", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "140", - "Content-Type": "application/json", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-db4cb7bcd2a47f4d-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f98dfb7f0e00501845b6241332a39d34", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "administratorLogin": "admin-sql-server-4273", - "administratorLoginPassword": "HvVJ%paVC@%GBKmi" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "72", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a3cc7cd7-2c5c-45e5-a494-4bb864278d4d", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "f66124f0-dc8c-4143-a263-7afda11fac31", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194520Z:a3cc7cd7-2c5c-45e5-a494-4bb864278d4d" - }, - "ResponseBody": { - "operation": "UpsertLogicalServer", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-acfd457de563a641-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "527bb04f1b0f72fd78b4681aaca6b311", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6bc9a15a-b8b2-4792-ac02-184e93cba7a2", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "464ae9ed-02e2-4553-b4c4-11bd1b30af68", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194520Z:6bc9a15a-b8b2-4792-ac02-184e93cba7a2" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "InProgress", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-a2d63ac2b272ba45-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ce36a188f8d1e775648e70a5db12815b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "afc261f7-ff76-4d81-a093-1abb4ebbce67", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "95976be8-9088-4742-b520-2ec826794d1f", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194521Z:afc261f7-ff76-4d81-a093-1abb4ebbce67" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "InProgress", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-1d6ce7a38480b348-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "82c3cfd24a273b249fb670d72f7c52e2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3936eaaf-b8d8-4e6e-95d3-a9323c83e36a", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "2bd81273-2914-44b7-8737-0dba14945624", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194523Z:3936eaaf-b8d8-4e6e-95d3-a9323c83e36a" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "InProgress", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-b441cde0f664d241-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2d7d21a715b357833a93ed81ab589665", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1a62b052-f091-4ee3-9503-06c7a4444e51", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "d7975b92-ca6d-4136-a3b6-b405993451c1", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194524Z:1a62b052-f091-4ee3-9503-06c7a4444e51" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "InProgress", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-3bdcf16fd22a3147-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "dc470c3331e33ee97dfa2f1a889eb7e8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "453fd78f-9aff-45c4-963c-7c89cecfc7a6", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "fb899e15-c826-4a87-baba-73b2cc72d92c", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194526Z:453fd78f-9aff-45c4-963c-7c89cecfc7a6" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "InProgress", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-283149f7daad6448-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "bafd8e3c5395bca74c6c48945ca39046", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:45:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "299d4be1-276e-4f3b-80e1-0364c7af120b", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "20bc8d02-ebdd-4888-9bd0-a52e80d5fd70", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194546Z:299d4be1-276e-4f3b-80e1-0364c7af120b" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "InProgress", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-c5c6637018cd9b44-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "23a40a1f753476ff373eb0b9e668ce9c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:46:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9af1b750-2b11-4656-a13a-878c4cb1cdbd", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "21aff596-a026-4211-86a0-2a5baf651481", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194606Z:9af1b750-2b11-4656-a13a-878c4cb1cdbd" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "InProgress", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/f66124f0-dc8c-4143-a263-7afda11fac31?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-9d6cc9dce33b3245-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1c4405dbdc5adfd0648b9076e955e2d9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "105", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:46:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "09afc835-5e5c-4152-876a-2c198374a924", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "28fe2a4f-9a95-4bdf-afb3-458fb85be1c4", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194626Z:09afc835-5e5c-4152-876a-2c198374a924" - }, - "ResponseBody": { - "name": "f66124f0-dc8c-4143-a263-7afda11fac31", - "status": "Succeeded", - "startTime": "2023-06-29T19:45:20.4Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-cce93aed08a36c49b17366eff2faeb6f-42a4664a1a05db42-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7dfae86994f9c7b48f878257a3eed6e4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "568", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:46:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e2d99e24-f1d5-4205-851b-055041072d42", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "65316cbd-5b6c-44ab-b44d-692c479ed7f5", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194627Z:e2d99e24-f1d5-4205-851b-055041072d42" - }, - "ResponseBody": { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-4273", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-4273.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273", - "name": "sql-server-4273", - "type": "Microsoft.Sql/servers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "80", - "Content-Type": "application/json", - "traceparent": "00-06a96945e10b5e46837d0943266d5be9-24af245e33afd748-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "735e57b843ecc53abea9e4888de15cd6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "Default" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:46:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d16797b8-5277-4867-9113-c37d633601a5", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "ed268158-50c0-4fa6-b425-c459fa9ad119", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194629Z:d16797b8-5277-4867-9113-c37d633601a5" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:46:29.137Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-06a96945e10b5e46837d0943266d5be9-33f7e66dc1f03f4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8b9d3dd8f67bb7fc4334d50be206faa1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:46:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f063ce2e-cf53-45b0-ac01-6d7ed4afeef9", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "598a9b11-2396-495b-b72d-b3a718c5c056", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194629Z:f063ce2e-cf53-45b0-ac01-6d7ed4afeef9" - }, - "ResponseBody": { - "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", - "status": "InProgress", - "startTime": "2023-06-29T19:46:29.137Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-06a96945e10b5e46837d0943266d5be9-1f27f9ee7a93a442-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d99eccfb4c77710806e1e519e9c18948", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:46:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f0f746a6-e93b-4473-b45f-634bfd9ff0c6", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "0bebf607-7193-475b-a662-aff59e51490d", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194644Z:f0f746a6-e93b-4473-b45f-634bfd9ff0c6" - }, - "ResponseBody": { - "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", - "status": "InProgress", - "startTime": "2023-06-29T19:46:29.137Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-06a96945e10b5e46837d0943266d5be9-c63e0b75c9a9794f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "50af38f4d144595b01b50d6e71459a86", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:46:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9a6a6950-31e1-4c04-8216-2849aaef2452", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "eebe1825-bedd-49b8-a514-ddbef2b74845", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194659Z:9a6a6950-31e1-4c04-8216-2849aaef2452" - }, - "ResponseBody": { - "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", - "status": "InProgress", - "startTime": "2023-06-29T19:46:29.137Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/ed268158-50c0-4fa6-b425-c459fa9ad119?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-06a96945e10b5e46837d0943266d5be9-a7f5ea77ea8e2e45-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6f7db8d8dbd78c35342c849910e2ce82", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fa59eac1-52fe-4c64-ab83-3a20fed9d5fe", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "7d86b004-2903-4b6d-8605-13def33cbf6d", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194714Z:fa59eac1-52fe-4c64-ab83-3a20fed9d5fe" - }, - "ResponseBody": { - "name": "ed268158-50c0-4fa6-b425-c459fa9ad119", - "status": "Succeeded", - "startTime": "2023-06-29T19:46:29.137Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-06a96945e10b5e46837d0943266d5be9-b52ce377d655ed4a-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "aa168daaa9572a5c7145d7c13e9affc1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "50e07cbe-39f1-4633-95e0-05526a859bff", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "8372e758-6107-4326-ad47-af5c7cbc7a11", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194715Z:50e07cbe-39f1-4633-95e0-05526a859bff" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:46:29.293Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", - "name": "sql-pool-Default-6544", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-e7378906cc5fdf4bbed4fd549d267a00-bfcef40c1257ec4f-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "30405f471a43197102221b184cc1491f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fb747100-ce60-4c24-9628-530a03047415", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "2ae78d28-348e-42d5-b7af-e1c76a94dea2", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194715Z:fb747100-ce60-4c24-9628-530a03047415" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:46:29.293Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", - "name": "sql-pool-Default-6544", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-853d4d3f5e3ebd4983daa8d5e8570068-798097aab809474d-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e4c48be6f02e2e2f5c53fd9103734e9a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "255", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "432eb6d2-5579-451c-8446-26c0dc2be987", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "432eb6d2-5579-451c-8446-26c0dc2be987", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194716Z:432eb6d2-5579-451c-8446-26c0dc2be987" - }, - "ResponseBody": { - "error": { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4273/elasticpools/sql-pool-Default-7445\u0027 under resource group \u0027Sql-RG-2241\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-2f6f14c600fc8d4f88d40996a9bd6b0c-8c13ec0cf3726040-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b052c22c9ea1903e1bfca7348e44ddaf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "05c26f5b-e841-46d2-8d81-caead4a1b776", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "1fd3ff07-6134-4bd7-af3b-79d0702a37a3", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194716Z:05c26f5b-e841-46d2-8d81-caead4a1b776" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:46:29.293Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", - "name": "sql-pool-Default-6544", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "80", - "Content-Type": "application/json", - "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-95c863c77962a747-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b2dab8fc1bd556923011d4ef1cdf168f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "Default" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a61d9dea-8e5e-499e-9817-64a2a1d83d7c", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194717Z:a61d9dea-8e5e-499e-9817-64a2a1d83d7c" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:47:17.813Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-271294e6a86baf44-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4a954e769b9811c430fb808fc94f733c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "18a5c43c-a7fe-4fca-a3e4-580f58dbf952", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "4b52d165-1200-4e18-a303-4a59d95184a6", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194718Z:18a5c43c-a7fe-4fca-a3e4-580f58dbf952" - }, - "ResponseBody": { - "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", - "status": "InProgress", - "startTime": "2023-06-29T19:47:17.813Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-8f5c40e098d55846-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0c5f18e55358633f3b9165a1525f0d35", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5cc9e152-bb71-492f-80c7-00c71f543a14", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "b4d10aaf-f1a1-4094-85b0-6beef1b1e1ad", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194733Z:5cc9e152-bb71-492f-80c7-00c71f543a14" - }, - "ResponseBody": { - "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", - "status": "InProgress", - "startTime": "2023-06-29T19:47:17.813Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-12a083cd8f455348-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ce78bc70cc4939f6bdd9597417ee7efd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:47:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cfbca0a3-aa19-415d-892f-aca042a16d8c", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "d241e789-a0e6-4fdf-afcc-7e2610156571", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194748Z:cfbca0a3-aa19-415d-892f-aca042a16d8c" - }, - "ResponseBody": { - "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", - "status": "InProgress", - "startTime": "2023-06-29T19:47:17.813Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-df14b76eb15db44e-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "304d8bc0949a23bf0e310f063522bfd0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f88fdeb8-24a6-4ad7-a665-c5cf06fd0414", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "5eb0fa63-6a5a-49c5-9bb4-c767e454d5b5", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194803Z:f88fdeb8-24a6-4ad7-a665-c5cf06fd0414" - }, - "ResponseBody": { - "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", - "status": "InProgress", - "startTime": "2023-06-29T19:47:17.813Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/67c8a1b0-eaf5-47db-b0f5-ad948887a3ad?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-5b38d5926b99a94d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0d1e4beda5d618f321264f7ef9cb4c4d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4a5895f4-3919-467f-b0b2-e7954f638c5d", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "153dfdf3-a201-4d3a-a037-db1f60ef14e8", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194819Z:4a5895f4-3919-467f-b0b2-e7954f638c5d" - }, - "ResponseBody": { - "name": "67c8a1b0-eaf5-47db-b0f5-ad948887a3ad", - "status": "Succeeded", - "startTime": "2023-06-29T19:47:17.813Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-69d983d19cd4254d88b903fbaf77fc5a-90017b85ec98654d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c6e16813dd12dc9bfd54c017bdef039a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "39b2cdf7-7fbb-45cc-b585-0d8ffede8692", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "92c1aa7b-589f-4713-8235-b66cb93dd581", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194819Z:39b2cdf7-7fbb-45cc-b585-0d8ffede8692" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:47:17.953Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445", - "name": "sql-pool-Default-7445", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "cc86891a71cf1b2698340f7344402a42", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1653", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "42a6e473-ea4c-4ca1-9f54-fbe73ea0e54c", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "ce4c5f45-bc18-4a74-a051-64cc89b48a91", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194819Z:42a6e473-ea4c-4ca1-9f54-fbe73ea0e54c" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:47:17.953Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445", - "name": "sql-pool-Default-7445", - "type": "Microsoft.Sql/servers/elasticPools" - }, - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:46:29.293Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", - "name": "sql-pool-Default-6544", - "type": "Microsoft.Sql/servers/elasticPools" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-80e4076c25a09649932c003b6e505167-cb8be516e3e90f49-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "cdf3c2e5f84110bdaf421082e4db5b32", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "41d3160e-3355-45b6-a5d6-28e1a8461ff5", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "138404c1-2518-4982-a1bd-d9173c29e0ae", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194820Z:41d3160e-3355-45b6-a5d6-28e1a8461ff5" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:46:29.293Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544", - "name": "sql-pool-Default-6544", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-6544?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-d0d5b0bd2c0fa04ba37a8c9dee5b2f5d-fdd9039f1fe2d445-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6f64b5228045a17d41c52ddecd2797bd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:48:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "29aa02e3-91fb-45e5-b3dc-68612d605b99", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "dab865d5-546e-4407-9edf-3a8869b17e54", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194823Z:29aa02e3-91fb-45e5-b3dc-68612d605b99" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-f805b11098790a40a7b9fa42e2bead0c-5a20fb2118612b46-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8f51ddd9bbdc65fd44528c7bcadf4288", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "820", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "78dd5d5e-b8fd-4001-bf96-ee2ed7347efa", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "83b677cf-2d76-4f61-87d0-32ac18ff5cc7", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194824Z:78dd5d5e-b8fd-4001-bf96-ee2ed7347efa" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:47:17.953Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "Default", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445", - "name": "sql-pool-Default-7445", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-Default-7445?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-26afd1d54c89c44e86127e68f380f129-18bd446361f8b54c-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "675753aa60a9ec365b41a2ce63f0409d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:48:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4a7cf882-7b45-4cc3-9639-fb307c554cbe", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "4c0b8023-fa0b-4c4d-a2a0-f28e4d6d74b0", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194828Z:4a7cf882-7b45-4cc3-9639-fb307c554cbe" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0ee39433cf4c7813a664349a182f0154", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "030ec0b1-75c3-4196-b9fe-f664367b4bfd", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "a3f17147-6d55-44cf-b689-1622aaaa4316", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194828Z:030ec0b1-75c3-4196-b9fe-f664367b4bfd" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "traceparent": "00-bc983d323bde724ca634c0740bd029ae-e081a36e843b7c4a-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "51d95aeba2b2e872e7dca98c427deab5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "VBS" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "55274bef-619a-480d-b748-34279d340cbc", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194830Z:55274bef-619a-480d-b748-34279d340cbc" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:48:29.973Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-bc983d323bde724ca634c0740bd029ae-931169b0f3f7bf49-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "fcf2ba97e21340e19b64e737cf1a22b6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c7dacc06-f67d-421f-915c-173b9e7009cf", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "3d5d12a1-7a78-4ea0-a6c6-369ddc4f4908", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194830Z:c7dacc06-f67d-421f-915c-173b9e7009cf" - }, - "ResponseBody": { - "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", - "status": "InProgress", - "startTime": "2023-06-29T19:48:29.973Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-bc983d323bde724ca634c0740bd029ae-e06694197a07a946-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "329462b0df472b9efe4d0840ce2b9196", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:48:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "172a12e6-b99b-4b46-8b23-fc96cc857e5d", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "63aca520-308b-4d38-bb8a-57af096730c4", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194845Z:172a12e6-b99b-4b46-8b23-fc96cc857e5d" - }, - "ResponseBody": { - "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", - "status": "InProgress", - "startTime": "2023-06-29T19:48:29.973Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-bc983d323bde724ca634c0740bd029ae-63f7a7b1b965354a-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "87f54712ed8ab8a1edcb96ebd825bc2f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9b0dfcf6-93bf-4ac3-a8dc-bd2f69987ccc", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "a375e780-0a40-4d4d-930a-7f4cf14db6e2", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194900Z:9b0dfcf6-93bf-4ac3-a8dc-bd2f69987ccc" - }, - "ResponseBody": { - "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", - "status": "InProgress", - "startTime": "2023-06-29T19:48:29.973Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/2543b9b2-fbe8-403f-afa8-371c8d2b09fd?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-bc983d323bde724ca634c0740bd029ae-86d2ed1b5b9a434f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f4961c4f98bcb71a1bc7fec6daa07270", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0f96ce51-dbbd-40ab-905c-a746a05e2ee5", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "e77a8385-7096-4ed2-8b58-974fab9c976b", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T194915Z:0f96ce51-dbbd-40ab-905c-a746a05e2ee5" - }, - "ResponseBody": { - "name": "2543b9b2-fbe8-403f-afa8-371c8d2b09fd", - "status": "Succeeded", - "startTime": "2023-06-29T19:48:29.973Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-bc983d323bde724ca634c0740bd029ae-116e48a845ffa84f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "882451d39a25c22cc1db447b49b353d8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "807", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ac62ce12-b2e2-4238-b038-28a10414621a", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "7aae97ba-bbae-4464-9229-8f0bd34bc1cc", - "x-ms-routing-request-id": "WESTUS:20230629T194916Z:ac62ce12-b2e2-4238-b038-28a10414621a" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:48:30.13Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", - "name": "sql-pool-VBS-9126", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-76758b6df2cc4d46b359a76059a25c7f-9c0c8ca650aa8d4f-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b1f1d8909d9579da2c3d6bc3eedbde4c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "807", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "085a90b2-46a8-4f41-914e-409241d0eab9", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "3b5105b5-5546-477f-84bb-44f7ee1523cc", - "x-ms-routing-request-id": "WESTUS:20230629T194917Z:085a90b2-46a8-4f41-914e-409241d0eab9" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:48:30.13Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", - "name": "sql-pool-VBS-9126", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-8b5f072f6f17064288bd6cec6a09b60f-12b0f0239450bd49-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "871826593400b40af0d332e0539e6e68", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "251", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "893a37c8-e2ea-4250-8c6a-c1a85620a9f6", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "893a37c8-e2ea-4250-8c6a-c1a85620a9f6", - "x-ms-routing-request-id": "WESTUS:20230629T194917Z:893a37c8-e2ea-4250-8c6a-c1a85620a9f6" - }, - "ResponseBody": { - "error": { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Sql/servers/sql-server-4273/elasticpools/sql-pool-VBS-1240\u0027 under resource group \u0027Sql-RG-2241\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-26685428956bda45bc8413ee39e55de7-a1df7f72a571214e-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "01352674c0af36da76aa5be72e68d4e5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "807", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5f85fe8b-b1d1-4a47-bf03-0fd2577bbe65", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "86a2c347-9363-42a2-a243-ce7dd7a65abc", - "x-ms-routing-request-id": "WESTUS:20230629T194917Z:5f85fe8b-b1d1-4a47-bf03-0fd2577bbe65" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:48:30.13Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", - "name": "sql-pool-VBS-9126", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "traceparent": "00-20a8767350730b43bd1a2b53922b149e-056b802f85924249-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2322f7fdcb9b5cd8ce3cc0c16af9268d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "tags": {}, - "location": "uksouth", - "properties": { - "preferredEnclaveType": "VBS" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "79", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolOperationResults/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9c49440a-a87a-4174-8dae-0de0992083ec", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "91129c65-8fc3-4a71-b19d-6580cefac38c", - "x-ms-routing-request-id": "WESTUS:20230629T194921Z:9c49440a-a87a-4174-8dae-0de0992083ec" - }, - "ResponseBody": { - "operation": "CreateLogicalElasticPool", - "startTime": "2023-06-29T19:49:21.287Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-20a8767350730b43bd1a2b53922b149e-7c15ca97d4ee8f4d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "5be24dff4b7ca8cd4dd93372ff18cc7d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f8cb7607-4785-4a02-bbb6-568779b401e8", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "af59d704-bac2-4e1e-9a24-a2f96b62d2db", - "x-ms-routing-request-id": "WESTUS:20230629T194921Z:f8cb7607-4785-4a02-bbb6-568779b401e8" - }, - "ResponseBody": { - "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", - "status": "InProgress", - "startTime": "2023-06-29T19:49:21.287Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-20a8767350730b43bd1a2b53922b149e-46c65d8032bd814c-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2b18cd840b192140598ad7b8bb8283ab", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7977fb7a-56bc-4afd-9f01-d0b5bd1fcb43", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "d86ebdbe-2433-46ba-9c93-1fdd79ab86ab", - "x-ms-routing-request-id": "WESTUS:20230629T194936Z:7977fb7a-56bc-4afd-9f01-d0b5bd1fcb43" - }, - "ResponseBody": { - "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", - "status": "InProgress", - "startTime": "2023-06-29T19:49:21.287Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-20a8767350730b43bd1a2b53922b149e-d22f914a34756c4d-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1cc239b6ca16831135a77acca82b9832", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:49:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ca65b768-ae18-4338-9cda-902185cf1ce3", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "2438ab16-4cc6-4538-b551-477be67789c5", - "x-ms-routing-request-id": "WESTUS:20230629T194952Z:ca65b768-ae18-4338-9cda-902185cf1ce3" - }, - "ResponseBody": { - "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", - "status": "InProgress", - "startTime": "2023-06-29T19:49:21.287Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/elasticPoolAzureAsyncOperation/91129c65-8fc3-4a71-b19d-6580cefac38c?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-20a8767350730b43bd1a2b53922b149e-4c5d93dadae6ca4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0ad093165a09f36e0dc102f17314ecca", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ef1cb959-c3c2-440a-9f59-fad8160a6511", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "5fd6b580-398e-4ec6-aef4-2595b5dabe47", - "x-ms-routing-request-id": "WESTUS:20230629T195007Z:ef1cb959-c3c2-440a-9f59-fad8160a6511" - }, - "ResponseBody": { - "name": "91129c65-8fc3-4a71-b19d-6580cefac38c", - "status": "Succeeded", - "startTime": "2023-06-29T19:49:21.287Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-20a8767350730b43bd1a2b53922b149e-33d61e1ec73cae41-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c6bc8855af56ba66bc95f5729073782e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "808", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "788b265d-88d5-4108-b888-503e60af3487", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "fa72e705-8135-4743-a1d3-a6e4256f3ba0", - "x-ms-routing-request-id": "WESTUS:20230629T195008Z:788b265d-88d5-4108-b888-503e60af3487" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:49:21.443Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240", - "name": "sql-pool-VBS-1240", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "28a2a5f179b25ba1cace0f55c81f1021", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1628", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1b163685-2ab7-4f65-ba4c-ba54d6f0bb71", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "cdb214ef-a3d2-4487-9a9d-4be2964ce4aa", - "x-ms-routing-request-id": "WESTUS:20230629T195008Z:1b163685-2ab7-4f65-ba4c-ba54d6f0bb71" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:49:21.443Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240", - "name": "sql-pool-VBS-1240", - "type": "Microsoft.Sql/servers/elasticPools" - }, - { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:48:30.13Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", - "name": "sql-pool-VBS-9126", - "type": "Microsoft.Sql/servers/elasticPools" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-d535b50e6ae81149a75d9f98289a1e69-9724d4adac82c640-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2076b0bad16e66dc2c164e7465fc6299", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "807", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "29c20651-4d12-4c5a-b05a-fa388bbef681", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "56f0977d-2b2a-42af-b0d4-00cb93a7ab36", - "x-ms-routing-request-id": "WESTUS:20230629T195008Z:29c20651-4d12-4c5a-b05a-fa388bbef681" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:48:30.13Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126", - "name": "sql-pool-VBS-9126", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-9126?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-0c0cdb4019ce47479e36013719d1552b-ed6f20bec3357747-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ce00d348c471dc18e761fb879f10f29c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:50:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ff50852f-3f26-466d-973f-2db06b9c19d1", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "730b0c1d-e396-4500-810a-1d1435030fbb", - "x-ms-routing-request-id": "WESTUS:20230629T195014Z:ff50852f-3f26-466d-973f-2db06b9c19d1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-0cc6763cb864cc48a5fe942ccc21eb24-5c51a74705895345-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f50d766c411ff6af979a390dd654c71c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "808", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cdd31c7a-3599-4c35-a154-eaaea5dcf9d4", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "c03204c6-bafa-4c6c-9850-5234d6b95be9", - "x-ms-routing-request-id": "WESTUS:20230629T195014Z:cdd31c7a-3599-4c35-a154-eaaea5dcf9d4" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 2 - }, - "kind": "vcore,pool", - "properties": { - "state": "Ready", - "creationDate": "2023-06-29T19:49:21.443Z", - "maxSizeBytes": 34359738368, - "perDatabaseSettings": { - "minCapacity": 0.0000, - "maxCapacity": 2.0000 - }, - "zoneRedundant": false, - "licenseType": "LicenseIncluded", - "maintenanceConfigurationId": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default", - "preferredEnclaveType": "VBS", - "availabilityZone": "NoPreference" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240", - "name": "sql-pool-VBS-1240", - "type": "Microsoft.Sql/servers/elasticPools" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools/sql-pool-VBS-1240?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-7a6fbb7be0a4e0409b87f40ad5a309ed-c0c8d8412e982c48-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "90efb2248244f09c12e00535c87cb1ba", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 29 Jun 2023 19:50:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ff835ffd-09f0-478e-9fde-cb77c3b23325", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "a95db0e2-b3a2-4d99-958d-7f77b0b13eed", - "x-ms-routing-request-id": "WESTUS:20230629T195016Z:ff835ffd-09f0-478e-9fde-cb77c3b23325" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273/elasticPools?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7877df74653dea8ad91de23f3c792d1b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cee9dff6-8adb-4a15-8864-df01b9f81591", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "97cea7b5-cbc0-4076-8160-b11bcdc53b09", - "x-ms-routing-request-id": "WESTUS:20230629T195017Z:cee9dff6-8adb-4a15-8864-df01b9f81591" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a9a17ee99e39271836ab6b82393ad05f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "580", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ad7e72fb-0a55-4661-9550-4ff45a0290e1", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "49648791-ca75-4c1b-a864-5b1700a42cb9", - "x-ms-routing-request-id": "WESTUS:20230629T195017Z:ad7e72fb-0a55-4661-9550-4ff45a0290e1" - }, - "ResponseBody": { - "value": [ - { - "kind": "v12.0", - "properties": { - "administratorLogin": "admin-sql-server-4273", - "version": "12.0", - "state": "Ready", - "fullyQualifiedDomainName": "sql-server-4273.database.windows.net", - "privateEndpointConnections": [], - "minimalTlsVersion": "None", - "publicNetworkAccess": "Enabled", - "restrictOutboundNetworkAccess": "Disabled", - "externalGovernanceStatus": "Disabled" - }, - "location": "uksouth", - "tags": {}, - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273", - "name": "sql-server-4273", - "type": "Microsoft.Sql/servers" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/servers/sql-server-4273?api-version=2022-08-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-924f422ecec8964bbb38a12446cfab8e-6ad2f9042e440f4d-00", - "User-Agent": "azsdk-net-ResourceManager.Sql/1.3.0-alpha.20230602.1 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e9c190963904067ca2314fe61a3c06ac", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "71", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverOperationResults/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "301502ab-1c0e-437e-ae1f-7b31ae99fa09", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b", - "x-ms-routing-request-id": "WESTUS:20230629T195018Z:301502ab-1c0e-437e-ae1f-7b31ae99fa09" - }, - "ResponseBody": { - "operation": "DropLogicalServer", - "startTime": "2023-06-29T19:50:18.18Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-924f422ecec8964bbb38a12446cfab8e-fd3f4c38fb9ff440-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "aba9824c43b8af16029b06074f320cf9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "107", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4313e5cd-3b66-48c7-9a93-91df5e80d5c3", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "777905c0-5224-4816-9574-71727aad800c", - "x-ms-routing-request-id": "WESTUS:20230629T195018Z:4313e5cd-3b66-48c7-9a93-91df5e80d5c3" - }, - "ResponseBody": { - "name": "8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b", - "status": "InProgress", - "startTime": "2023-06-29T19:50:18.18Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241/providers/Microsoft.Sql/locations/uksouth/serverAzureAsyncOperation/8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b?api-version=2022-08-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-924f422ecec8964bbb38a12446cfab8e-e5aaf5702d03e547-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0beebfa42fc1f54e55eb23b4f7eb0c9a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:50:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7792a153-1829-4e27-9026-3437a921141f", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "5b631bc0-76d4-431c-af6d-d4325cc18bd3", - "x-ms-routing-request-id": "WESTUS:20230629T195033Z:7792a153-1829-4e27-9026-3437a921141f" - }, - "ResponseBody": { - "name": "8ed09e5f-4454-4ed0-abca-ffcd0f8d3d6b", - "status": "Succeeded", - "startTime": "2023-06-29T19:50:18.18Z" - } - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "1059204483", - "RESOURCE_MANAGER_URL": null, - "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" - } -} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json deleted file mode 100644 index 9ab383d257ebf..0000000000000 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(False).json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29?api-version=2021-01-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "traceparent": "00-3a80cf83dc36f84995f13e144614ca30-ab6bffa6cd046740-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "495e563dd3f48a2ee70a2ffbfbae7ead", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "409", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "94b345bd-4e4d-431a-bd33-381a9cf83c72", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "94b345bd-4e4d-431a-bd33-381a9cf83c72", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193345Z:94b345bd-4e4d-431a-bd33-381a9cf83c72" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "2c647056-bab2-4175-b172-493ff049eb29", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "DS-SQLAzure_hanumak_R\u0026D_60843", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-1560?api-version=**", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "22", - "Content-Type": "application/json", - "traceparent": "00-78dddd73760f0b41b8d4aa56a06b3f0e-18cc5221fc107a4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0f4cd9dc9f6d5b496e81ec392f9ee43f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "location": "uksouth" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "220", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:33:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5df458d6-f13d-4bfc-92f3-7622a7d6e159", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "5df458d6-f13d-4bfc-92f3-7622a7d6e159", - "x-ms-routing-request-id": "WESTCENTRALUS:20230629T193347Z:5df458d6-f13d-4bfc-92f3-7622a7d6e159" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-1560", - "name": "Sql-RG-1560", - "type": "Microsoft.Resources/resourceGroups", - "location": "uksouth", - "properties": { - "provisioningState": "Succeeded" - } - } - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "1670139179", - "RESOURCE_MANAGER_URL": null, - "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" - } -} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json deleted file mode 100644 index 5e4297dd0e4c0..0000000000000 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/SessionRecords/ElasticPoolTests/ElasticPoolTests(True)Async.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29?api-version=2021-01-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-fd5e03456684ed42af9c46eb0c9a5b9c-eb303d10fb222d47-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "01f41acf196c601f9b29dcbd5b7ab04e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "409", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fcc386ca-b1c8-4b37-83da-c8511938a98f", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "fcc386ca-b1c8-4b37-83da-c8511938a98f", - "x-ms-routing-request-id": "WESTUS:20230629T194202Z:fcc386ca-b1c8-4b37-83da-c8511938a98f" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "2c647056-bab2-4175-b172-493ff049eb29", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "DS-SQLAzure_hanumak_R\u0026D_60843", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourcegroups/Sql-RG-2241?api-version=**", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "22", - "Content-Type": "application/json", - "traceparent": "00-ed124fad371ca24fbb9df7931c039ce7-0488c09aa2c8564a-00", - "User-Agent": "azsdk-net-ResourceManager/1.6.0 (.NET Framework 4.8.9166.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0bbdafd96c73020f7aa3043ec9b7ec2c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "location": "uksouth" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "220", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Jun 2023 19:42:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d5c371bd-1250-492c-9aa4-198c228d9ad5", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "d5c371bd-1250-492c-9aa4-198c228d9ad5", - "x-ms-routing-request-id": "WESTUS:20230629T194204Z:d5c371bd-1250-492c-9aa4-198c228d9ad5" - }, - "ResponseBody": { - "id": "/subscriptions/2c647056-bab2-4175-b172-493ff049eb29/resourceGroups/Sql-RG-2241", - "name": "Sql-RG-2241", - "type": "Microsoft.Resources/resourceGroups", - "location": "uksouth", - "properties": { - "provisioningState": "Succeeded" - } - } - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "1666761700", - "RESOURCE_MANAGER_URL": null, - "SUBSCRIPTION_ID": "2c647056-bab2-4175-b172-493ff049eb29" - } -} From 8f5507baf2865dc313db29beea89d269034906c2 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Wed, 26 Jul 2023 22:34:55 -0700 Subject: [PATCH 16/25] add back tag --- sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md index cc814400f69da..6713d1a62a0ae 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/autorest.md @@ -4,6 +4,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true +tag: package-composite-v5 require: https://github.com/Azure/azure-rest-api-specs/blob/eba34b9c764e877193788a87a81cebfa915eb858/specification/sql/resource-manager/readme.md namespace: Azure.ResourceManager.Sql output-folder: $(this-folder)/Generated From 2d1830c8487e3593e4ad533c06e2b15d0ed8a1d2 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 14:16:26 +0800 Subject: [PATCH 17/25] Update --- .../api/Azure.ResourceManager.Sql.netstandard2.0.cs | 2 ++ .../Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs | 2 ++ .../Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs | 2 ++ .../src/{Customized => Custom}/Models/SqlMetricDefinition.cs | 0 4 files changed, 6 insertions(+) rename sdk/sqlmanagement/Azure.ResourceManager.Sql/src/{Customized => Custom}/Models/SqlMetricDefinition.cs (100%) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs index bdddcfd0aac16..a1e1fa3cc57da 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs @@ -468,6 +468,7 @@ public partial class FailoverGroupData : Azure.ResourceManager.Models.ResourceDa { public FailoverGroupData() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] public System.Collections.Generic.IList Databases { get { throw null; } } public System.Collections.Generic.IList FailoverDatabases { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } @@ -1407,6 +1408,7 @@ public ManagedInstanceData(Azure.Core.AzureLocation location) : base (default(Az public Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get { throw null; } } public string DnsZone { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] public string DnsZonePartner { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs index 2afebaf56f8e4..c8c3c114338e4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/FailoverGroupData.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Collections.Generic; using System.ComponentModel; @@ -10,6 +11,7 @@ public partial class FailoverGroupData { /// List of databases in the failover group. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is obsolete and will be removed in a future release", false)] public IList Databases { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs index 1f8c660dd9f1d..6e3414beb1192 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ManagedInstanceData.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.ComponentModel; namespace Azure.ResourceManager.Sql @@ -9,6 +10,7 @@ public partial class ManagedInstanceData { /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is obsolete and will be removed in a future release", false)] public string DnsZonePartner { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Customized/Models/SqlMetricDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/Models/SqlMetricDefinition.cs similarity index 100% rename from sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Customized/Models/SqlMetricDefinition.cs rename to sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/Models/SqlMetricDefinition.cs From b3f0bbd23ec5ecd4f76a467e62673e03431d2c06 Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Wed, 26 Jul 2023 23:48:23 -0700 Subject: [PATCH 18/25] revert not needed changes --- .../Azure.Identity.BrokeredAuthentication.net462.cs | 2 -- .../Azure.ResourceManager.Sql.sln | 10 +++++++--- .../Azure.ResourceManager.Sql/assets.json | 2 +- .../tests/Azure.ResourceManager.Sql.Tests.csproj | 3 --- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs b/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs index 9016acddfe994..e981f65bb80bb 100644 --- a/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs +++ b/sdk/identity/Azure.Identity.BrokeredAuthentication/api/Azure.Identity.BrokeredAuthentication.net462.cs @@ -3,12 +3,10 @@ namespace Azure.Identity.BrokeredAuthentication public partial class InteractiveBrowserCredentialBrokerOptions : Azure.Identity.InteractiveBrowserCredentialOptions { public InteractiveBrowserCredentialBrokerOptions(System.IntPtr parentWindowHandle) { } - public bool? IsMsaPassthroughEnabled { get { throw null; } set { } } } public partial class SharedTokenCacheCredentialBrokerOptions : Azure.Identity.SharedTokenCacheCredentialOptions { public SharedTokenCacheCredentialBrokerOptions() { } public SharedTokenCacheCredentialBrokerOptions(Azure.Identity.TokenCachePersistenceOptions tokenCacheOptions) { } - public bool? IsMsaPassthroughEnabled { get { throw null; } set { } } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln b/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln index be90089f65e50..e296d231f516d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.4.33403.182 @@ -24,6 +24,7 @@ Global {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|Any CPU.Build.0 = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x64.ActiveCfg = Debug|Any CPU + {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x64.Build.0 = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x86.ActiveCfg = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Debug|x86.Build.0 = Debug|Any CPU {FDCB8782-8FDA-4DCB-A66D-24BD9E3F9F1A}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -35,6 +36,7 @@ Global {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|Any CPU.Build.0 = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x64.ActiveCfg = Debug|Any CPU + {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x64.Build.0 = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x86.ActiveCfg = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Debug|x86.Build.0 = Debug|Any CPU {89796B68-A3DB-4298-B59B-17A8EF781021}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -45,7 +47,8 @@ Global {89796B68-A3DB-4298-B59B-17A8EF781021}.Release|x86.Build.0 = Release|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x64.ActiveCfg = Debug|x64 + {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x64.ActiveCfg = Debug|Any CPU + {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x64.Build.0 = Debug|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x86.ActiveCfg = Debug|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Debug|x86.Build.0 = Debug|Any CPU {BE6FF05E-1E3C-4C35-B18A-89A029B79999}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -57,6 +60,7 @@ Global {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|Any CPU.Build.0 = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x64.ActiveCfg = Debug|Any CPU + {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x64.Build.0 = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x86.ActiveCfg = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Debug|x86.Build.0 = Debug|Any CPU {656C277B-1EA7-4A1F-85BF-0E47361BDCB5}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -72,4 +76,4 @@ Global GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A243C23D-9715-4941-93E0-916EEDDFBDA0} EndGlobalSection -EndGlobal +EndGlobal \ No newline at end of file diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json index 138c0b3b8f495..81dba85dc502f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/sqlmanagement/Azure.ResourceManager.Sql", - "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_4324f3f94a" + "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_c0593529dd" } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj index 8c9c1be772202..7b342b877094b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj @@ -1,7 +1,4 @@  - - AnyCPU;x64 - From f9da0954d0a7d16ea859009601df10494ce762ac Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 16:38:02 +0800 Subject: [PATCH 19/25] update --- sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json index 81dba85dc502f..3bf3bc57cdca5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/sqlmanagement/Azure.ResourceManager.Sql", - "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_c0593529dd" + "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_61fc73729e" } From a82befc1399de95d523e0cad254224ad3503a5e1 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 17:00:57 +0800 Subject: [PATCH 20/25] Prepare release --- sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md index a8b4b4b3a893a..f2292df907df2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md @@ -6,12 +6,6 @@ - Supported Sql Elastic Pool creation and update with `PreferredEnclaveType`. -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.3.0-beta.1 (2023-05-31) ### Features Added From 357fef375cfd0f3d3e264b6ed3a339b102ed21d7 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Thu, 27 Jul 2023 17:32:21 +0800 Subject: [PATCH 21/25] revert minor change --- .../Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln b/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln index e296d231f516d..548f9c4a58a79 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/Azure.ResourceManager.Sql.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.4.33403.182 @@ -76,4 +76,4 @@ Global GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A243C23D-9715-4941-93E0-916EEDDFBDA0} EndGlobalSection -EndGlobal \ No newline at end of file +EndGlobal From e0c02233aa11b380a6819daac6b2c8f5a523c81d Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Thu, 27 Jul 2023 09:49:31 -0700 Subject: [PATCH 22/25] address PR feedback --- .../Azure.ResourceManager.Sql/assets.json | 2 +- .../tests/Scenario/ElasticPoolTests.cs | 22 +++++++------------ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json index 3bf3bc57cdca5..811f3039d27b4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/sqlmanagement/Azure.ResourceManager.Sql", - "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_61fc73729e" + "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_32125e76ba" } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs index f0815969b4957..15ee742a04420 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs @@ -1,13 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.Linq; using System.Threading.Tasks; using Azure.Core; using Azure.Core.TestFramework; using Azure.ResourceManager.Resources; -using Azure.ResourceManager.Resources.Models; using Azure.ResourceManager.Sql.Models; using NUnit.Framework; @@ -17,7 +15,9 @@ public class ElasticPoolTests : SqlManagementTestBase { private ResourceGroupResource _resourceGroup; private ResourceIdentifier _resourceGroupIdentifier; - private static AzureLocation Location = new AzureLocation("uksouth", "UK South"); + private ElasticPoolCollection collection; + private static AzureLocation Location = AzureLocation.UKSouth; + private static SqlAlwaysEncryptedEnclaveType[] enclaveTypes = { SqlAlwaysEncryptedEnclaveType.Default, SqlAlwaysEncryptedEnclaveType.Vbs }; public ElasticPoolTests(bool isAsync) : base(isAsync)//, RecordedTestMode.Record) @@ -39,6 +39,11 @@ public async Task TestSetUp() ArmClientOptions options = new ArmClientOptions(); var client = GetArmClient(options); _resourceGroup = await client.GetResourceGroupResource(_resourceGroupIdentifier).GetAsync(); + + // create Sql Server + string serverName = Recording.GenerateAssetName("sql-server-"); + var sqlServer = await CreateDefaultSqlServer(serverName, Location, _resourceGroup); + collection = sqlServer.GetElasticPools(); } [TearDown] @@ -55,11 +60,6 @@ public async Task TearDown() [RecordedTest] public async Task ElasticPoolApiTests() { - // create Sql Server - string serverName = Recording.GenerateAssetName("sql-server-"); - var sqlServer = await CreateDefaultSqlServer(serverName, Location, _resourceGroup); - var collection = sqlServer.GetElasticPools(); - string poolName1 = Recording.GenerateAssetName("sql-pool-"); string poolName2 = Recording.GenerateAssetName("sql-pool-"); @@ -105,17 +105,11 @@ public async Task ElasticPoolApiTests() [RecordedTest] public async Task ElasticPoolApiTestsWithEnclaves() { - // create Sql Server - string serverName = Recording.GenerateAssetName("sql-server-"); - var sqlServer = await CreateDefaultSqlServer(serverName, Location, _resourceGroup); - SqlAlwaysEncryptedEnclaveType[] enclaveTypes = { SqlAlwaysEncryptedEnclaveType.Default, SqlAlwaysEncryptedEnclaveType.Vbs }; - foreach (SqlAlwaysEncryptedEnclaveType enclaveType in enclaveTypes) { string preferredEnclaveType = enclaveType.ToString(); string poolName1 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); string poolName2 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); - var collection = sqlServer.GetElasticPools(); // 1.CreateOrUpdate ElasticPoolData data = new ElasticPoolData(Location) From d86c723ba32d0950e3479f0beec5c895d264d87f Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:28:06 -0700 Subject: [PATCH 23/25] new recordings pushed to assets repo --- sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json index 811f3039d27b4..383849e53ba40 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/sqlmanagement/Azure.ResourceManager.Sql", - "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_32125e76ba" + "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_ce68d2f28d" } From d8e57f1dc03397e2deea3419a5ed18e9d883bd5b Mon Sep 17 00:00:00 2001 From: vidit-msft <78883096+vidit-msft@users.noreply.github.com> Date: Thu, 27 Jul 2023 22:21:50 -0700 Subject: [PATCH 24/25] address more feedback --- .../Azure.ResourceManager.Sql/assets.json | 2 +- .../tests/Scenario/ElasticPoolTests.cs | 103 ++++++++++-------- 2 files changed, 56 insertions(+), 49 deletions(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json index 383849e53ba40..37c1d42fb1b8b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/sqlmanagement/Azure.ResourceManager.Sql", - "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_ce68d2f28d" + "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_ce1481d0aa" } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs index 15ee742a04420..c3e6b65ab9185 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Scenario/ElasticPoolTests.cs @@ -102,58 +102,65 @@ public async Task ElasticPoolApiTests() } [Test] + [TestCase("Default")] + [TestCase("VBS")] [RecordedTest] - public async Task ElasticPoolApiTestsWithEnclaves() + public async Task ElasticPoolApiTestsWithEnclaves(string preferredEnclaveType) { - foreach (SqlAlwaysEncryptedEnclaveType enclaveType in enclaveTypes) + SqlAlwaysEncryptedEnclaveType enclaveType; + if (preferredEnclaveType == SqlAlwaysEncryptedEnclaveType.Default.ToString()) { - string preferredEnclaveType = enclaveType.ToString(); - string poolName1 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); - string poolName2 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); - - // 1.CreateOrUpdate - ElasticPoolData data = new ElasticPoolData(Location) - { - PreferredEnclaveType = preferredEnclaveType - }; - - var pool1 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName1, data); - Assert.IsNotNull(pool1.Value.Data); - Assert.AreEqual(poolName1, pool1.Value.Data.Name); - Assert.AreEqual(enclaveType, pool1.Value.Data.PreferredEnclaveType); - - // 2.CheckIfExist - Assert.IsTrue(await collection.ExistsAsync(poolName1)); - Assert.IsFalse(await collection.ExistsAsync(poolName2)); - - // 3.Get - var getPool = await collection.GetAsync(poolName1); - Assert.IsNotNull(getPool.Value.Data); - Assert.AreEqual(poolName1, getPool.Value.Data.Name); - Assert.AreEqual(enclaveType, getPool.Value.Data.PreferredEnclaveType); - - var pool2 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName2, data); - Assert.IsNotNull(pool2.Value.Data); - Assert.AreEqual(poolName2, pool2.Value.Data.Name); - - // 4.GetAll - var list = await collection.GetAllAsync().ToEnumerableAsync(); - Assert.IsNotEmpty(list); - Assert.AreEqual(2, list.Count); - string[] poolNamesList = { list.First().Data.Name, list.Last().Data.Name }; - Assert.Contains(poolName1, poolNamesList); - Assert.Contains(poolName2, poolNamesList); - - // 5.Delete - var deletePool1 = await collection.GetAsync(poolName1); - await deletePool1.Value.DeleteAsync(WaitUntil.Completed); - - var deletePool2 = await collection.GetAsync(poolName2); - await deletePool2.Value.DeleteAsync(WaitUntil.Completed); - - list = await collection.GetAllAsync().ToEnumerableAsync(); - Assert.AreEqual(0, list.Count); + enclaveType = SqlAlwaysEncryptedEnclaveType.Default; } + else + { + enclaveType = SqlAlwaysEncryptedEnclaveType.Vbs; + } + string poolName1 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); + string poolName2 = Recording.GenerateAssetName($"sql-pool-{preferredEnclaveType}-"); + + // 1.CreateOrUpdate + ElasticPoolData data = new ElasticPoolData(Location) + { + PreferredEnclaveType = preferredEnclaveType + }; + + var pool1 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName1, data); + Assert.IsNotNull(pool1.Value.Data); + Assert.AreEqual(poolName1, pool1.Value.Data.Name); + Assert.AreEqual(enclaveType, pool1.Value.Data.PreferredEnclaveType); + + // 2.CheckIfExist + Assert.IsTrue(await collection.ExistsAsync(poolName1)); + Assert.IsFalse(await collection.ExistsAsync(poolName2)); + + // 3.Get + var getPool = await collection.GetAsync(poolName1); + Assert.IsNotNull(getPool.Value.Data); + Assert.AreEqual(poolName1, getPool.Value.Data.Name); + Assert.AreEqual(enclaveType, getPool.Value.Data.PreferredEnclaveType); + + var pool2 = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName2, data); + Assert.IsNotNull(pool2.Value.Data); + Assert.AreEqual(poolName2, pool2.Value.Data.Name); + + // 4.GetAll + var list = await collection.GetAllAsync().ToEnumerableAsync(); + Assert.IsNotEmpty(list); + Assert.AreEqual(2, list.Count); + string[] poolNamesList = { list.First().Data.Name, list.Last().Data.Name }; + Assert.Contains(poolName1, poolNamesList); + Assert.Contains(poolName2, poolNamesList); + + // 5.Delete + var deletePool1 = await collection.GetAsync(poolName1); + await deletePool1.Value.DeleteAsync(WaitUntil.Completed); + + var deletePool2 = await collection.GetAsync(poolName2); + await deletePool2.Value.DeleteAsync(WaitUntil.Completed); + + list = await collection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(0, list.Count); } } } From 3e2c9592dd5b96dfed5dd1ed43d1353e520e06f2 Mon Sep 17 00:00:00 2001 From: "Wei Hu (from Dev Box)" Date: Fri, 28 Jul 2023 14:24:07 +0800 Subject: [PATCH 25/25] update --- sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json index 37c1d42fb1b8b..8071e469533b0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/sqlmanagement/Azure.ResourceManager.Sql", - "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_ce1481d0aa" + "Tag": "net/sqlmanagement/Azure.ResourceManager.Sql_6c92b7d572" }