From 76e8e845e4cfe5ee504761a3c3ac659626acb867 Mon Sep 17 00:00:00 2001 From: Milan Adamovic Date: Thu, 9 Nov 2023 13:56:34 +0100 Subject: [PATCH] Update Instance Pool API version to Preview 2023-05-01 --- .../Generated/IInstancePoolsOperations.cs | 82 +++---- .../Generated/InstancePoolsOperations.cs | 232 +++++++++--------- .../InstancePoolsOperationsExtensions.cs | 144 +++++------ .../Generated/Models/InstancePool.cs | 25 +- .../Models/InstancePoolProperties.cs | 25 +- .../Generated/Models/InstancePoolUpdate.cs | 84 ++++++- src/Sql/Sql.Management.Sdk/README.md | 2 +- src/Sql/Sql/ChangeLog.md | 1 + .../Cmdlet/NewAzureSqlInstancePool.cs | 8 + .../Cmdlet/SetAzureSqlInstancePool.cs | 63 ++++- .../Model/AzureSqlInstancePoolModel.cs | 10 + .../Services/AzureSqlInstancePoolAdapter.cs | 4 +- src/Sql/Sql/help/Get-AzSqlInstancePool.md | 130 +++++----- src/Sql/Sql/help/New-AzSqlInstancePool.md | 28 ++- src/Sql/Sql/help/Set-AzSqlInstancePool.md | 35 ++- 15 files changed, 549 insertions(+), 324 deletions(-) diff --git a/src/Sql/Sql.Management.Sdk/Generated/IInstancePoolsOperations.cs b/src/Sql/Sql.Management.Sdk/Generated/IInstancePoolsOperations.cs index e464d03fbe6f..314bc1bb82d1 100644 --- a/src/Sql/Sql.Management.Sdk/Generated/IInstancePoolsOperations.cs +++ b/src/Sql/Sql.Management.Sdk/Generated/IInstancePoolsOperations.cs @@ -14,17 +14,11 @@ namespace Microsoft.Azure.Management.Sql public partial interface IInstancePoolsOperations { /// - /// Gets an instance pool. + /// Gets a list of all instance pools in the subscription. /// /// - /// Gets an instance pool. + /// Gets a list of all instance pools in the 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 instance pool to be retrieved. - /// /// /// The headers that will be added to request. /// @@ -37,23 +31,17 @@ public partial interface IInstancePoolsOperations /// /// Thrown when unable to deserialize the response /// - System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Creates or updates an instance pool. + /// Gets a list of instance pools in the resource group /// /// - /// Creates or updates an instance pool. + /// Gets a list of instance pools in the resource group /// /// /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// - /// - /// The name of the instance pool to be created or updated. - /// - /// - /// The requested instance pool resource state. - /// /// /// The headers that will be added to request. /// @@ -66,19 +54,19 @@ public partial interface IInstancePoolsOperations /// /// Thrown when unable to deserialize the response /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePool parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Deletes an instance pool + /// Gets an instance pool. /// /// - /// Deletes an instance pool + /// Gets an instance pool. /// /// /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the instance pool to be deleted + /// The name of the instance pool to be retrieved. /// /// /// The headers that will be added to request. @@ -89,19 +77,22 @@ public partial interface IInstancePoolsOperations /// /// Thrown when the operation returned an invalid status code /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Updates an instance pool. + /// Creates or updates an instance pool. /// /// - /// Updates an instance pool. + /// Creates or updates an instance pool. /// /// /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the instance pool to be updated. + /// The name of the instance pool to be created or updated. /// /// /// The requested instance pool resource state. @@ -118,17 +109,20 @@ public partial interface IInstancePoolsOperations /// /// Thrown when unable to deserialize the response /// - System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePoolUpdate parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePool parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Gets a list of instance pools in the resource group + /// Deletes an instance pool /// /// - /// Gets a list of instance pools in the resource group + /// Deletes an instance pool /// /// /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. /// + /// + /// The name of the instance pool to be deleted + /// /// /// The headers that will be added to request. /// @@ -138,17 +132,23 @@ public partial interface IInstancePoolsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// - System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Gets a list of all instance pools in the subscription. + /// Updates an instance pool. /// /// - /// Gets a list of all instance pools in the subscription. + /// Updates an instance pool. /// + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the instance pool to be updated. + /// + /// + /// The requested instance pool resource state. + /// /// /// The headers that will be added to request. /// @@ -161,7 +161,7 @@ public partial interface IInstancePoolsOperations /// /// Thrown when unable to deserialize the response /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePoolUpdate parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Creates or updates an instance pool. @@ -245,10 +245,10 @@ public partial interface IInstancePoolsOperations System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePoolUpdate parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Gets a list of instance pools in the resource group + /// Gets a list of all instance pools in the subscription. /// /// - /// Gets a list of instance pools in the resource group + /// Gets a list of all instance pools in the subscription. /// /// /// The NextLink from the previous successful call to List operation. @@ -265,13 +265,13 @@ public partial interface IInstancePoolsOperations /// /// Thrown when unable to deserialize the response /// - System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Gets a list of all instance pools in the subscription. + /// Gets a list of instance pools in the resource group /// /// - /// Gets a list of all instance pools in the subscription. + /// Gets a list of instance pools in the resource group /// /// /// The NextLink from the previous successful call to List operation. @@ -288,7 +288,7 @@ public partial interface IInstancePoolsOperations /// /// Thrown when unable to deserialize the response /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } } \ No newline at end of file diff --git a/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperations.cs b/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperations.cs index 9af32247cd79..078e79f506dc 100644 --- a/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperations.cs +++ b/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperations.cs @@ -39,14 +39,8 @@ internal InstancePoolsOperations (SqlManagementClient client) public SqlManagementClient Client { get; private set; } /// - /// Gets an instance pool. + /// Gets a list of all instance pools in the 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 instance pool to be retrieved. - /// /// /// Headers that will be added to request. /// @@ -68,28 +62,18 @@ internal InstancePoolsOperations (SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - - if (instancePoolName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instancePoolName"); - } - if (this.Client.SubscriptionId == null) { throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2023-05-01-preview"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -97,20 +81,16 @@ internal InstancePoolsOperations (SqlManagementClient client) { _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("instancePoolName", instancePoolName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); @@ -211,7 +191,7 @@ internal InstancePoolsOperations (SqlManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; @@ -225,7 +205,7 @@ internal InstancePoolsOperations (SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -248,78 +228,6 @@ internal InstancePoolsOperations (SqlManagementClient client) } - /// - /// Creates or updates an instance pool. - /// - /// - /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the instance pool to be created or updated. - /// - /// - /// The requested instance pool resource state. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePool parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, instancePoolName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an instance pool - /// - /// - /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the instance pool to be deleted - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, instancePoolName, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates an instance pool. - /// - /// - /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the instance pool to be updated. - /// - /// - /// The requested instance pool resource state. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePoolUpdate parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, instancePoolName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Gets a list of instance pools in the resource group /// @@ -363,7 +271,7 @@ internal InstancePoolsOperations (SqlManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2023-05-01-preview"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -521,8 +429,14 @@ internal InstancePoolsOperations (SqlManagementClient client) } /// - /// Gets a list of all instance pools in the subscription. + /// Gets an instance pool. /// + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the instance pool to be retrieved. + /// /// /// Headers that will be added to request. /// @@ -544,18 +458,28 @@ internal InstancePoolsOperations (SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + + if (instancePoolName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instancePoolName"); + } + if (this.Client.SubscriptionId == null) { throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2023-05-01-preview"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -563,16 +487,20 @@ internal InstancePoolsOperations (SqlManagementClient client) { _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("instancePoolName", instancePoolName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); @@ -673,7 +601,7 @@ internal InstancePoolsOperations (SqlManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; @@ -687,7 +615,7 @@ internal InstancePoolsOperations (SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -710,6 +638,78 @@ internal InstancePoolsOperations (SqlManagementClient client) } + /// + /// Creates or updates an instance pool. + /// + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the instance pool to be created or updated. + /// + /// + /// The requested instance pool resource state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePool parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, instancePoolName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes an instance pool + /// + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the instance pool to be deleted + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, instancePoolName, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an instance pool. + /// + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the instance pool to be updated. + /// + /// + /// The requested instance pool resource state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, InstancePoolUpdate parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, instancePoolName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Creates or updates an instance pool. /// @@ -772,7 +772,7 @@ internal InstancePoolsOperations (SqlManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2023-05-01-preview"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1004,7 +1004,7 @@ internal InstancePoolsOperations (SqlManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2023-05-01-preview"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1203,7 +1203,7 @@ internal InstancePoolsOperations (SqlManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2023-05-01-preview"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1370,7 +1370,7 @@ internal InstancePoolsOperations (SqlManagementClient client) } /// - /// Gets a list of instance pools in the resource group + /// Gets a list of all instance pools in the subscription. /// /// /// The NextLink from the previous successful call to List operation. @@ -1396,7 +1396,7 @@ internal InstancePoolsOperations (SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { if (nextPageLink == null) @@ -1414,7 +1414,7 @@ internal InstancePoolsOperations (SqlManagementClient client) tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1552,7 +1552,7 @@ internal InstancePoolsOperations (SqlManagementClient client) } /// - /// Gets a list of all instance pools in the subscription. + /// Gets a list of instance pools in the resource group /// /// /// The NextLink from the previous successful call to List operation. @@ -1578,7 +1578,7 @@ internal InstancePoolsOperations (SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { if (nextPageLink == null) @@ -1596,7 +1596,7 @@ internal InstancePoolsOperations (SqlManagementClient client) tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperationsExtensions.cs b/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperationsExtensions.cs index 329289714eb3..3319aa24a8a8 100644 --- a/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperationsExtensions.cs +++ b/src/Sql/Sql.Management.Sdk/Generated/InstancePoolsOperationsExtensions.cs @@ -12,6 +12,66 @@ namespace Microsoft.Azure.Management.Sql /// public static partial class InstancePoolsOperationsExtensions { + /// + /// Gets a list of all instance pools in the subscription. + /// + /// + /// The operations group for this extension method. + /// + public static Microsoft.Rest.Azure.IPage List(this IInstancePoolsOperations operations) + { + return ((IInstancePoolsOperations)operations).ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets a list of all instance pools in the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListAsync(this IInstancePoolsOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Gets a list of instance pools in the resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IInstancePoolsOperations operations, string resourceGroupName) + { + return ((IInstancePoolsOperations)operations).ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of instance pools in the resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListByResourceGroupAsync(this IInstancePoolsOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } /// /// Gets an instance pool. /// @@ -166,66 +226,6 @@ public static InstancePool Update(this IInstancePoolsOperations operations, stri } } /// - /// Gets a list of instance pools in the resource group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IInstancePoolsOperations operations, string resourceGroupName) - { - return ((IInstancePoolsOperations)operations).ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of instance pools in the resource group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListByResourceGroupAsync(this IInstancePoolsOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// - /// Gets a list of all instance pools in the subscription. - /// - /// - /// The operations group for this extension method. - /// - public static Microsoft.Rest.Azure.IPage List(this IInstancePoolsOperations operations) - { - return ((IInstancePoolsOperations)operations).ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Gets a list of all instance pools in the subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async System.Threading.Tasks.Task> ListAsync(this IInstancePoolsOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Creates or updates an instance pool. /// /// @@ -340,7 +340,7 @@ public static InstancePool BeginUpdate(this IInstancePoolsOperations operations, } } /// - /// Gets a list of instance pools in the resource group + /// Gets a list of all instance pools in the subscription. /// /// /// The operations group for this extension method. @@ -348,13 +348,13 @@ public static InstancePool BeginUpdate(this IInstancePoolsOperations operations, /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this IInstancePoolsOperations operations, string nextPageLink) + public static Microsoft.Rest.Azure.IPage ListNext(this IInstancePoolsOperations operations, string nextPageLink) { - return ((IInstancePoolsOperations)operations).ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + return ((IInstancePoolsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of instance pools in the resource group + /// Gets a list of all instance pools in the subscription. /// /// /// The operations group for this extension method. @@ -365,15 +365,15 @@ public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(t /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task> ListByResourceGroupNextAsync(this IInstancePoolsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async System.Threading.Tasks.Task> ListNextAsync(this IInstancePoolsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets a list of all instance pools in the subscription. + /// Gets a list of instance pools in the resource group /// /// /// The operations group for this extension method. @@ -381,13 +381,13 @@ public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(t /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListNext(this IInstancePoolsOperations operations, string nextPageLink) + public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this IInstancePoolsOperations operations, string nextPageLink) { - return ((IInstancePoolsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + return ((IInstancePoolsOperations)operations).ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of all instance pools in the subscription. + /// Gets a list of instance pools in the resource group /// /// /// The operations group for this extension method. @@ -398,9 +398,9 @@ public static Microsoft.Rest.Azure.IPage ListNext(this IInstancePo /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task> ListNextAsync(this IInstancePoolsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async System.Threading.Tasks.Task> ListByResourceGroupNextAsync(this IInstancePoolsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePool.cs b/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePool.cs index f9130ce46740..07aa28e19c5d 100644 --- a/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePool.cs +++ b/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePool.cs @@ -52,7 +52,13 @@ public InstancePool() /// The license type. Possible values are 'LicenseIncluded' (price for SQL /// license is included) and 'BasePrice' (without SQL license price). /// Possible values include: 'LicenseIncluded', 'BasePrice' - public InstancePool(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Sku sku = default(Sku), string subnetId = default(string), int? vCores = default(int?), string licenseType = default(string)) + + /// The Dns Zone that the managed instance pool is in. + /// + + /// Specifies maintenance configuration id to apply to this managed instance. + /// + public InstancePool(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Sku sku = default(Sku), string subnetId = default(string), int? vCores = default(int?), string licenseType = default(string), string dnsZone = default(string), string maintenanceConfigurationId = default(string)) : base(location, id, name, type, tags) { @@ -60,6 +66,8 @@ public InstancePool() this.SubnetId = subnetId; this.VCores = vCores; this.LicenseType = licenseType; + this.DnsZone = dnsZone; + this.MaintenanceConfigurationId = maintenanceConfigurationId; CustomInit(); } @@ -93,6 +101,19 @@ public InstancePool() /// [Newtonsoft.Json.JsonProperty(PropertyName = "properties.licenseType")] public string LicenseType {get; set; } + + /// + /// Gets the Dns Zone that the managed instance pool is in. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.dnsZone")] + public string DnsZone {get; private set; } + + /// + /// Gets or sets specifies maintenance configuration id to apply to this + /// managed instance. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] + public string MaintenanceConfigurationId {get; set; } /// /// Validate the object. /// @@ -108,6 +129,8 @@ public override void Validate() } + + } } } \ No newline at end of file diff --git a/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolProperties.cs b/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolProperties.cs index 8440713ea809..66d65dad0503 100644 --- a/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolProperties.cs +++ b/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolProperties.cs @@ -33,12 +33,20 @@ public InstancePoolProperties() /// The license type. Possible values are 'LicenseIncluded' (price for SQL /// license is included) and 'BasePrice' (without SQL license price). /// Possible values include: 'LicenseIncluded', 'BasePrice' - public InstancePoolProperties(string subnetId, int vCores, string licenseType) + + /// The Dns Zone that the managed instance pool is in. + /// + + /// Specifies maintenance configuration id to apply to this managed instance. + /// + public InstancePoolProperties(string subnetId, int vCores, string licenseType, string dnsZone = default(string), string maintenanceConfigurationId = default(string)) { this.SubnetId = subnetId; this.VCores = vCores; this.LicenseType = licenseType; + this.DnsZone = dnsZone; + this.MaintenanceConfigurationId = maintenanceConfigurationId; CustomInit(); } @@ -66,6 +74,19 @@ public InstancePoolProperties(string subnetId, int vCores, string licenseType) /// [Newtonsoft.Json.JsonProperty(PropertyName = "licenseType")] public string LicenseType {get; set; } + + /// + /// Gets the Dns Zone that the managed instance pool is in. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dnsZone")] + public string DnsZone {get; private set; } + + /// + /// Gets or sets specifies maintenance configuration id to apply to this + /// managed instance. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "maintenanceConfigurationId")] + public string MaintenanceConfigurationId {get; set; } /// /// Validate the object. /// @@ -84,6 +105,8 @@ public virtual void Validate() } + + } } } \ No newline at end of file diff --git a/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolUpdate.cs b/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolUpdate.cs index 0146595ecbe6..7b5891d8ec99 100644 --- a/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolUpdate.cs +++ b/src/Sql/Sql.Management.Sdk/Generated/Models/InstancePoolUpdate.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// An update to an Instance pool. /// + [Microsoft.Rest.Serialization.JsonTransformation] public partial class InstancePoolUpdate { /// @@ -24,12 +25,37 @@ public InstancePoolUpdate() /// Initializes a new instance of the InstancePoolUpdate class. /// + /// The name and tier of the SKU. + /// + /// Resource tags. /// - public InstancePoolUpdate(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary)) + + /// Resource ID of the subnet to place this instance pool in. + /// + + /// Count of vCores belonging to this instance pool. + /// + + /// The license type. Possible values are 'LicenseIncluded' (price for SQL + /// license is included) and 'BasePrice' (without SQL license price). + /// Possible values include: 'LicenseIncluded', 'BasePrice' + + /// The Dns Zone that the managed instance pool is in. + /// + + /// Specifies maintenance configuration id to apply to this managed instance. + /// + public InstancePoolUpdate(Sku sku = default(Sku), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string subnetId = default(string), int? vCores = default(int?), string licenseType = default(string), string dnsZone = default(string), string maintenanceConfigurationId = default(string)) { + this.Sku = sku; this.Tags = tags; + this.SubnetId = subnetId; + this.VCores = vCores; + this.LicenseType = licenseType; + this.DnsZone = dnsZone; + this.MaintenanceConfigurationId = maintenanceConfigurationId; CustomInit(); } @@ -39,10 +65,66 @@ public InstancePoolUpdate() partial void CustomInit(); + /// + /// Gets or sets the name and tier of the SKU. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] + public Sku Sku {get; set; } + /// /// Gets or sets resource tags. /// [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] public System.Collections.Generic.IDictionary Tags {get; set; } + + /// + /// Gets or sets resource ID of the subnet to place this instance pool in. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.subnetId")] + public string SubnetId {get; set; } + + /// + /// Gets or sets count of vCores belonging to this instance pool. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.vCores")] + public int? VCores {get; set; } + + /// + /// Gets or sets the license type. Possible values are 'LicenseIncluded' (price + /// for SQL license is included) and 'BasePrice' (without SQL license price). Possible values include: 'LicenseIncluded', 'BasePrice' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.licenseType")] + public string LicenseType {get; set; } + + /// + /// Gets the Dns Zone that the managed instance pool is in. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.dnsZone")] + public string DnsZone {get; private set; } + + /// + /// Gets or sets specifies maintenance configuration id to apply to this + /// managed instance. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] + public string MaintenanceConfigurationId {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Sku != null) + { + this.Sku.Validate(); + } + + + + + + } } } \ No newline at end of file diff --git a/src/Sql/Sql.Management.Sdk/README.md b/src/Sql/Sql.Management.Sdk/README.md index e0244c7f56e6..d29d87db75f9 100644 --- a/src/Sql/Sql.Management.Sdk/README.md +++ b/src/Sql/Sql.Management.Sdk/README.md @@ -39,7 +39,7 @@ input-file: - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/DatabaseVulnerabilityAssessmentScans.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/ElasticPoolOperations.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/EncryptionProtectors.json - - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/InstancePools.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2023-05-01-preview/InstancePools.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2023-05-01-preview/JobAgents.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2023-05-01-preview/JobCredentials.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/sql/resource-manager/Microsoft.Sql/preview/2023-05-01-preview/JobExecutions.json diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md index 9c1514421ddf..2d5fdc84d679 100644 --- a/src/Sql/Sql/ChangeLog.md +++ b/src/Sql/Sql/ChangeLog.md @@ -26,6 +26,7 @@ * Added new parameters `WorkerCount`, `SkuName`, `Identity` to `AzSqlElasticJobAgent` cmdlets * Added support for optional SQL auth for Elastic Job Agent cmdlets * - The following parameters are now optional: `CredentialName`, `OutputCredentialName`, `RefreshCredentialName` +* Added new parameters `MaintenanceConfigurationId`, `DnsZone` to `AzSqlInstancePool` cmdlets ## Version 4.10.0 * Fixed cmdlets to use 2018-06-01-preview api version diff --git a/src/Sql/Sql/Instance Pools/Cmdlet/NewAzureSqlInstancePool.cs b/src/Sql/Sql/Instance Pools/Cmdlet/NewAzureSqlInstancePool.cs index 51015fcc5abb..d47cc480c79a 100644 --- a/src/Sql/Sql/Instance Pools/Cmdlet/NewAzureSqlInstancePool.cs +++ b/src/Sql/Sql/Instance Pools/Cmdlet/NewAzureSqlInstancePool.cs @@ -120,6 +120,13 @@ public class NewAzureSqlInstancePool : InstancePoolCmdletBase [Parameter(Mandatory = false, HelpMessage = "Run cmdlet in the background")] public SwitchParameter AsJob { get; set; } + /// + /// Gets or sets the maintenance configuration id. + /// + [Parameter(Mandatory = false, + HelpMessage = "The maintenance configuration id to associate with the instance")] + public string MaintenanceConfigurationId { get; set; } + /// /// Overriding to add warning message /// @@ -182,6 +189,7 @@ protected override IEnumerable ApplyUserInputToModel SubnetId = SubnetId, VCores = VCore, LicenseType = LicenseType, + MaintenanceConfigurationId = this.MaintenanceConfigurationId, }; return new List { newEntity }; diff --git a/src/Sql/Sql/Instance Pools/Cmdlet/SetAzureSqlInstancePool.cs b/src/Sql/Sql/Instance Pools/Cmdlet/SetAzureSqlInstancePool.cs index 50d97136e3d9..4c1ca09d4415 100644 --- a/src/Sql/Sql/Instance Pools/Cmdlet/SetAzureSqlInstancePool.cs +++ b/src/Sql/Sql/Instance Pools/Cmdlet/SetAzureSqlInstancePool.cs @@ -21,6 +21,7 @@ using Microsoft.Azure.Commands.ResourceManager.Common.Tags; using Microsoft.Azure.Commands.Sql.Common; using Microsoft.Azure.Commands.Sql.Instance_Pools.Model; +using Microsoft.Azure.Management.Sql.Models; using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; @@ -106,6 +107,41 @@ public class SetAzureSqlInstancePool : InstancePoolCmdletBase [Parameter(Mandatory = false, HelpMessage = "Run cmdlet in the background")] public SwitchParameter AsJob { get; set; } + /// + /// Gets or sets the maintenance configuration id. + /// + [Parameter(Mandatory = false, + HelpMessage = "The maintenance configuration id to associate with the instance")] + public string MaintenanceConfigurationId { get; set; } + + /// + /// Gets or sets the VCore for instance + /// + [Parameter(Mandatory = false, + HelpMessage = "Determines how much VCore to associate with instance.")] + [ValidateNotNullOrEmpty] + [Alias("VCores")] + [PSArgumentCompleter("8", "16", "24", "32", "40", "64", "80")] + public int? VCore { get; set; } + + /// + /// Gets or sets the instance compute generation + /// + [Parameter(Mandatory = false, + HelpMessage = "The compute generation for the instance pool.")] + [ValidateNotNullOrEmpty] + [PSArgumentCompleter(Constants.ComputeGenerationGen5)] + public string ComputeGeneration { get; set; } + + /// + /// Gets or sets the instance edition + /// + [Parameter(Mandatory = false, + HelpMessage = "The edition for the instance pool.")] + [ValidateNotNullOrEmpty] + [PSArgumentCompleter(Constants.GeneralPurposeEdition)] + public string Edition { get; set; } + /// /// Overriding to add warning message /// @@ -161,16 +197,37 @@ protected override IEnumerable ApplyUserInputToModel( { var existingEntity = model.FirstOrDefault(); + string miEdition = !string.IsNullOrWhiteSpace(this.Edition) ? this.Edition : existingEntity.Sku.Tier; + + string skuName; + if (!string.IsNullOrWhiteSpace(this.ComputeGeneration)) + { + string editionShort = miEdition.Equals(Constants.GeneralPurposeEdition) ? "GP" : + miEdition.Equals(Constants.BusinessCriticalEdition) ? "BC" : "Unknown"; + skuName = editionShort + "_" + this.ComputeGeneration; + } + else + { + skuName = existingEntity.Sku.Name; + } + AzureSqlInstancePoolModel newEntity = new AzureSqlInstancePoolModel { Location = existingEntity.Location, ResourceGroupName = this.ResourceGroupName, InstancePoolName = this.Name, Tags = TagsConversionHelper.CreateTagDictionary(this.Tag, validate: true), - Sku = existingEntity.Sku, + Sku = new Sku() + { + Name = skuName, + Tier = miEdition, + Family = !string.IsNullOrWhiteSpace(this.ComputeGeneration) ? this.ComputeGeneration : existingEntity.Sku.Family + }, SubnetId = existingEntity.SubnetId, - VCores = existingEntity.VCores, - LicenseType = LicenseType != null ? this.LicenseType : existingEntity.LicenseType, + VCores = this.VCore?? existingEntity.VCores, + LicenseType = this.LicenseType != null ? this.LicenseType : existingEntity.LicenseType, + MaintenanceConfigurationId = !string.IsNullOrWhiteSpace(this.MaintenanceConfigurationId) + ? this.MaintenanceConfigurationId : existingEntity.MaintenanceConfigurationId, }; return new List { newEntity }; diff --git a/src/Sql/Sql/Instance Pools/Model/AzureSqlInstancePoolModel.cs b/src/Sql/Sql/Instance Pools/Model/AzureSqlInstancePoolModel.cs index be1e23ce4ffa..0ff7e72371f2 100644 --- a/src/Sql/Sql/Instance Pools/Model/AzureSqlInstancePoolModel.cs +++ b/src/Sql/Sql/Instance Pools/Model/AzureSqlInstancePoolModel.cs @@ -78,5 +78,15 @@ public class AzureSqlInstancePoolModel /// Gets or sets the license type /// public string LicenseType { get; set; } + + /// + /// Gets or sets the Maintenance Configuration Id. + /// + public string MaintenanceConfigurationId { get; set; } + + /// + /// Gets or sets the DNS Zone. + /// + public string DnsZone { get; set; } } } diff --git a/src/Sql/Sql/Instance Pools/Services/AzureSqlInstancePoolAdapter.cs b/src/Sql/Sql/Instance Pools/Services/AzureSqlInstancePoolAdapter.cs index 87996b947a72..e130b663de88 100644 --- a/src/Sql/Sql/Instance Pools/Services/AzureSqlInstancePoolAdapter.cs +++ b/src/Sql/Sql/Instance Pools/Services/AzureSqlInstancePoolAdapter.cs @@ -63,7 +63,8 @@ public AzureSqlInstancePoolModel UpsertInstancePool(AzureSqlInstancePoolModel mo Location = model.Location, SubnetId = model.SubnetId, Tags = model.Tags, - VCores = model.VCores + VCores = model.VCores, + MaintenanceConfigurationId = model.MaintenanceConfigurationId, }); return CreateInstancePoolModelFromResponse(result); } @@ -124,6 +125,7 @@ public AzureSqlInstancePoolModel CreateInstancePoolModelFromResponse( VCores = instancePoolResp.VCores.Value, LicenseType = instancePoolResp.LicenseType, Sku = instancePoolResp.Sku, + MaintenanceConfigurationId = instancePoolResp.MaintenanceConfigurationId, }; } diff --git a/src/Sql/Sql/help/Get-AzSqlInstancePool.md b/src/Sql/Sql/help/Get-AzSqlInstancePool.md index eec4d10954e3..7a9ffd1364cd 100644 --- a/src/Sql/Sql/help/Get-AzSqlInstancePool.md +++ b/src/Sql/Sql/help/Get-AzSqlInstancePool.md @@ -41,31 +41,33 @@ Get-AzSqlInstancePool ``` ```output -ResourceGroupName : resourcegroup01 -Type : Microsoft.Sql/instancePools -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 -InstancePoolName : instancePool0 -SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name -VCores : 8 -ComputeGeneration : Gen5 -Edition : GeneralPurpose -Tags : -Sku : Microsoft.Azure.Management.Sql.Models.Sku -Location : canadacentral -LicenseType : LicenseIncluded - -ResourceGroupName : resourcegroup02 -Type : Microsoft.Sql/instancePools -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup02/providers/Microsoft.Sql/instancePools/ps-instancepool-1 -InstancePoolName : instancePool0 -SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup02/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name -VCores : 8 -ComputeGeneration : Gen5 -Edition : GeneralPurpose -Tags : -Sku : Microsoft.Azure.Management.Sql.Models.Sku -Location : canadacentral -LicenseType : LicenseIncluded +ResourceGroupName : resourcegroup01 +Type : Microsoft.Sql/instancePools +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 +InstancePoolName : instancePool0 +SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name +VCores : 8 +ComputeGeneration : Gen5 +Edition : GeneralPurpose +Tags : +Sku : Microsoft.Azure.Management.Sql.Models.Sku +Location : canadacentral +LicenseType : LicenseIncluded +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 + +ResourceGroupName : resourcegroup02 +Type : Microsoft.Sql/instancePools +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup02/providers/Microsoft.Sql/instancePools/ps-instancepool-1 +InstancePoolName : instancePool0 +SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup02/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name +VCores : 8 +ComputeGeneration : Gen5 +Edition : GeneralPurpose +Tags : +Sku : Microsoft.Azure.Management.Sql.Models.Sku +Location : canadacentral +LicenseType : LicenseIncluded +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command gets information about all instance pools within the customer subscription. @@ -76,18 +78,20 @@ Get-AzSqlInstancePool -ResourceGroupName resourcegroup01 ``` ```output -ResourceGroupName : resourcegroup01 -Type : Microsoft.Sql/instancePools -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 -InstancePoolName : instancePool0 -SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name -VCores : 8 -ComputeGeneration : Gen5 -Edition : GeneralPurpose -Tags : -Sku : Microsoft.Azure.Management.Sql.Models.Sku -Location : canadacentral -LicenseType : LicenseIncluded +ResourceGroupName : resourcegroup01 +Type : Microsoft.Sql/instancePools +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 +InstancePoolName : instancePool0 +SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name +VCores : 8 +ComputeGeneration : Gen5 +Edition : GeneralPurpose +Tags : +Sku : Microsoft.Azure.Management.Sql.Models.Sku +Location : canadacentral +LicenseType : LicenseIncluded +DnsZone : 1234567890 +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command gets information about all instance pools within the resource group resourcegroup01. @@ -98,18 +102,20 @@ Get-AzSqlInstancePool -ResourceGroupName resourcegroup01 -Name instancePool0 ``` ```output -ResourceGroupName : resourcegroup01 -Type : Microsoft.Sql/instancePools -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 -InstancePoolName : instancePool0 -SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name -VCores : 8 -ComputeGeneration : Gen5 -Edition : GeneralPurpose -Tags : -Sku : Microsoft.Azure.Management.Sql.Models.Sku -Location : canadacentral -LicenseType : LicenseIncluded +ResourceGroupName : resourcegroup01 +Type : Microsoft.Sql/instancePools +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 +InstancePoolName : instancePool0 +SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name +VCores : 8 +ComputeGeneration : Gen5 +Edition : GeneralPurpose +Tags : +Sku : Microsoft.Azure.Management.Sql.Models.Sku +Location : canadacentral +LicenseType : LicenseIncluded +DnsZone : 1234567890 +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command gets information about the instance pool instancePool0. @@ -120,18 +126,20 @@ Get-AzSqlInstancePool -ResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxx ``` ```output -ResourceGroupName : resourcegroup01 -Type : Microsoft.Sql/instancePools -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 -InstancePoolName : instancePool0 -SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name -VCores : 8 -ComputeGeneration : Gen5 -Edition : GeneralPurpose -Tags : -Sku : Microsoft.Azure.Management.Sql.Models.Sku -Location : canadacentral -LicenseType : LicenseIncluded +ResourceGroupName : resourcegroup01 +Type : Microsoft.Sql/instancePools +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 +InstancePoolName : instancePool0 +SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name +VCores : 8 +ComputeGeneration : Gen5 +Edition : GeneralPurpose +Tags : +Sku : Microsoft.Azure.Management.Sql.Models.Sku +Location : canadacentral +LicenseType : LicenseIncluded +DnsZone : 1234567890 +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command gets information about the instance pool with its resource identifier. diff --git a/src/Sql/Sql/help/New-AzSqlInstancePool.md b/src/Sql/Sql/help/New-AzSqlInstancePool.md index 5060a935473f..252fd6150c68 100644 --- a/src/Sql/Sql/help/New-AzSqlInstancePool.md +++ b/src/Sql/Sql/help/New-AzSqlInstancePool.md @@ -14,7 +14,7 @@ Creates an Azure SQL Instance pool. ``` New-AzSqlInstancePool [-ResourceGroupName] [-Name] -Location -SubnetId - -VCore -Edition -ComputeGeneration -LicenseType [-Tag ] [-AsJob] + -VCore -Edition -ComputeGeneration -LicenseType [-Tag ] -MaintenanceConfigurationId [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -29,18 +29,20 @@ New-AzSqlInstancePool -ResourceGroupName resourcegroup01 -Name instancepool0 -Lo ``` ```output -ResourceGroupName : resourcegroup01 -Type : Microsoft.Sql/instancePools -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 -InstancePoolName : instancePool0 -SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name -VCores : 8 -ComputeGeneration : Gen5 -Edition : GeneralPurpose -Tags : -Sku : Microsoft.Azure.Management.Sql.Models.Sku -Location : canadacentral -LicenseType : LicenseIncluded +ResourceGroupName : resourcegroup01 +Type : Microsoft.Sql/instancePools +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 +InstancePoolName : instancePool0 +SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name +VCores : 8 +ComputeGeneration : Gen5 +Edition : GeneralPurpose +Tags : +Sku : Microsoft.Azure.Management.Sql.Models.Sku +Location : canadacentral +LicenseType : LicenseIncluded +DnsZone : 1234567890 +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command creates a new Azure SQL Instance pool. diff --git a/src/Sql/Sql/help/Set-AzSqlInstancePool.md b/src/Sql/Sql/help/Set-AzSqlInstancePool.md index f48ca5480eaa..261be4fe6740 100644 --- a/src/Sql/Sql/help/Set-AzSqlInstancePool.md +++ b/src/Sql/Sql/help/Set-AzSqlInstancePool.md @@ -15,18 +15,21 @@ Sets properties for an Azure SQL Instance pool. ### DefaultSetInstancePoolParameterSet (Default) ``` Set-AzSqlInstancePool [-ResourceGroupName] [-Name] [-LicenseType ] [-Tag ] + -VCore -Edition -ComputeGeneration -MaintenanceConfigurationId [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### InputObjectSetInstancePoolParameterSet ``` Set-AzSqlInstancePool [-InputObject] [-LicenseType ] [-Tag ] + -VCore -Edition -ComputeGeneration -MaintenanceConfigurationId [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ResourceIdSetInstancePoolParameterSet ``` -Set-AzSqlInstancePool [-ResourceId] [-LicenseType ] [-Tag ] [-AsJob] +Set-AzSqlInstancePool [-ResourceId] [-LicenseType ] [-Tag ] + -VCore -Edition -ComputeGeneration -MaintenanceConfigurationId [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -41,18 +44,20 @@ Set-AzSqlInstancePool -ResourceGroupName resourcegroup01 -Name instancePool0 -Li ``` ```output -ResourceGroupName : resourcegroup01 -Type : Microsoft.Sql/instancePools -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 -InstancePoolName : instancePool0 -SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name -VCores : 8 -ComputeGeneration : Gen5 -Edition : GeneralPurpose -Tags : -Sku : Microsoft.Azure.Management.Sql.Models.Sku -Location : canadacentral -LicenseType : LicenseIncluded +ResourceGroupName : resourcegroup01 +Type : Microsoft.Sql/instancePools +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0 +InstancePoolName : instancePool0 +SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name +VCores : 8 +ComputeGeneration : Gen5 +Edition : GeneralPurpose +Tags : +Sku : Microsoft.Azure.Management.Sql.Models.Sku +Location : canadacentral +LicenseType : LicenseIncluded +DnsZone : 1234567890 +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command sets the license type and/or tags for an instance pool named instancePool0. @@ -76,6 +81,8 @@ Tags : Sku : Microsoft.Azure.Management.Sql.Models.Sku Location : canadacentral LicenseType : LicenseIncluded +DnsZone : 1234567890 +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command sets the license type and/or tags for an instance pool using an instance pool object. @@ -98,6 +105,8 @@ Tags : Sku : Microsoft.Azure.Management.Sql.Models.Sku Location : canadacentral LicenseType : LicenseIncluded +DnsZone : 1234567890 +MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_canadacentral_MI_1 ``` This command sets the license type and/or tags for an instance pool named instancePool0.