diff --git a/eng/mgmt/mgmtmetadata/maintenance_resource-manager.txt b/eng/mgmt/mgmtmetadata/maintenance_resource-manager.txt index 30bc4dbb065b..46e746e15cf7 100644 --- a/eng/mgmt/mgmtmetadata/maintenance_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/maintenance_resource-manager.txt @@ -4,11 +4,11 @@ Commencing code generation Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/maintenance/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\NetSDK\azure-sdk-for-net\sdk -2020-07-20 19:00:33 UTC +2020-07-31 04:41:40 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 99e5561c9cb7fc63ea693a1b6484a58ff8cd8d7e +Commit: 3d12d70d765934c2f59d1d1d3eb4485719c04361 AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/IMaintenanceManagementClient.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/IMaintenanceManagementClient.cs index 05b013ea3fa2..de2ac321e915 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/IMaintenanceManagementClient.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/IMaintenanceManagementClient.cs @@ -71,6 +71,11 @@ public partial interface IMaintenanceManagementClient : System.IDisposable bool? GenerateClientRequestId { get; set; } + /// + /// Gets the IPublicMaintenanceConfigurationsOperations. + /// + IPublicMaintenanceConfigurationsOperations PublicMaintenanceConfigurations { get; } + /// /// Gets the IApplyUpdatesOperations. /// diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/IPublicMaintenanceConfigurationsOperations.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/IPublicMaintenanceConfigurationsOperations.cs new file mode 100644 index 000000000000..9efe6ae90f6e --- /dev/null +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/IPublicMaintenanceConfigurationsOperations.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Maintenance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PublicMaintenanceConfigurationsOperations operations. + /// + public partial interface IPublicMaintenanceConfigurationsOperations + { + /// + /// Get Public Maintenance Configuration records + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get Public Maintenance Configuration record + /// + /// + /// Resource Identifier + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/MaintenanceManagementClient.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/MaintenanceManagementClient.cs index 16b394f919b5..2aab4246f26b 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/MaintenanceManagementClient.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/MaintenanceManagementClient.cs @@ -76,6 +76,11 @@ public partial class MaintenanceManagementClient : ServiceClient public bool? GenerateClientRequestId { get; set; } + /// + /// Gets the IPublicMaintenanceConfigurationsOperations. + /// + public virtual IPublicMaintenanceConfigurationsOperations PublicMaintenanceConfigurations { get; private set; } + /// /// Gets the IApplyUpdatesOperations. /// @@ -342,6 +347,7 @@ public MaintenanceManagementClient(System.Uri baseUri, ServiceClientCredentials /// private void Initialize() { + PublicMaintenanceConfigurations = new PublicMaintenanceConfigurationsOperations(this); ApplyUpdates = new ApplyUpdatesOperations(this); ConfigurationAssignments = new ConfigurationAssignmentsOperations(this); MaintenanceConfigurations = new MaintenanceConfigurationsOperations(this); diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceConfiguration.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceConfiguration.cs index df34fc79f775..3ff629a86682 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceConfiguration.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceConfiguration.cs @@ -46,17 +46,18 @@ public MaintenanceConfiguration() /// of the maintenanceConfiguration /// Gets or sets maintenanceScope of the /// configuration. Possible values include: 'All', 'Host', 'Resource', - /// 'InResource', 'OSImage', 'Extension', 'InGuestPatch' + /// 'InResource', 'OSImage', 'Extension', 'InGuestPatch', 'SQLDB', + /// 'SQLManagedInstance' /// Effective start date of the maintenance - /// window in YYYY-MM-DD hh:mm:ss format. The start date can be set to + /// window in YYYY-MM-DD hh:mm format. The start date can be set to /// either the current date or future date. The window will be created /// in the time zone provided and adjusted to daylight savings /// according to that time zone. /// Effective expiration date of the - /// maintenance window in YYYY-MM-DD hh:mm:ss format. The window will - /// be created in the time zone provided and adjusted to daylight - /// savings according to that time zone. Expiration date must be set to - /// a future date. If not provided, it will be set to the maximum + /// maintenance window in YYYY-MM-DD hh:mm format. The window will be + /// created in the time zone provided and adjusted to daylight savings + /// according to that time zone. Expiration date must be set to a + /// future date. If not provided, it will be set to the maximum /// datetime 9999-12-31 23:59:59. /// Duration of the maintenance window in HH:mm /// format. If not provided, default value will be used based on @@ -82,7 +83,9 @@ public MaintenanceConfiguration() /// recurEvery: Month, recurEvery: 2Months, recurEvery: Month /// day23,day24, recurEvery: Month Last Sunday, recurEvery: Month /// Fourth Monday. - public MaintenanceConfiguration(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string namespaceProperty = default(string), IDictionary extensionProperties = default(IDictionary), string maintenanceScope = default(string), string startDateTime = default(string), string expirationDateTime = default(string), string duration = default(string), string timeZone = default(string), string recurEvery = default(string)) + /// Gets or sets the visibility of the + /// configuration. Possible values include: 'Custom', 'Public' + public MaintenanceConfiguration(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string namespaceProperty = default(string), IDictionary extensionProperties = default(IDictionary), string maintenanceScope = default(string), string startDateTime = default(string), string expirationDateTime = default(string), string duration = default(string), string timeZone = default(string), string recurEvery = default(string), string visibility = default(string)) : base(id, name, type) { Location = location; @@ -95,6 +98,7 @@ public MaintenanceConfiguration() Duration = duration; TimeZone = timeZone; RecurEvery = recurEvery; + Visibility = visibility; CustomInit(); } @@ -130,14 +134,14 @@ public MaintenanceConfiguration() /// /// Gets or sets maintenanceScope of the configuration. Possible values /// include: 'All', 'Host', 'Resource', 'InResource', 'OSImage', - /// 'Extension', 'InGuestPatch' + /// 'Extension', 'InGuestPatch', 'SQLDB', 'SQLManagedInstance' /// [JsonProperty(PropertyName = "properties.maintenanceScope")] public string MaintenanceScope { get; set; } /// /// Gets or sets effective start date of the maintenance window in - /// YYYY-MM-DD hh:mm:ss format. The start date can be set to either the + /// YYYY-MM-DD hh:mm format. The start date can be set to either the /// current date or future date. The window will be created in the time /// zone provided and adjusted to daylight savings according to that /// time zone. @@ -147,7 +151,7 @@ public MaintenanceConfiguration() /// /// Gets or sets effective expiration date of the maintenance window in - /// YYYY-MM-DD hh:mm:ss format. The window will be created in the time + /// YYYY-MM-DD hh:mm format. The window will be created in the time /// zone provided and adjusted to daylight savings according to that /// time zone. Expiration date must be set to a future date. If not /// provided, it will be set to the maximum datetime 9999-12-31 @@ -193,5 +197,12 @@ public MaintenanceConfiguration() [JsonProperty(PropertyName = "properties.maintenanceWindow.recurEvery")] public string RecurEvery { get; set; } + /// + /// Gets or sets the visibility of the configuration. Possible values + /// include: 'Custom', 'Public' + /// + [JsonProperty(PropertyName = "properties.visibility")] + public string Visibility { get; set; } + } } diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceScope.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceScope.cs index 42fb3d2bd48a..64efd68052f9 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceScope.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/MaintenanceScope.cs @@ -23,5 +23,7 @@ public static class MaintenanceScope public const string OSImage = "OSImage"; public const string Extension = "Extension"; public const string InGuestPatch = "InGuestPatch"; + public const string SQLDB = "SQLDB"; + public const string SQLManagedInstance = "SQLManagedInstance"; } } diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/Update.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/Update.cs index 2c1d4831d947..a23323073cd6 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/Update.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/Update.cs @@ -34,7 +34,7 @@ public Update() /// /// The impact area. Possible values /// include: 'All', 'Host', 'Resource', 'InResource', 'OSImage', - /// 'Extension', 'InGuestPatch' + /// 'Extension', 'InGuestPatch', 'SQLDB', 'SQLManagedInstance' /// The impact type. Possible values include: /// 'None', 'Freeze', 'Restart', 'Redeploy' /// The status. Possible values include: @@ -64,7 +64,7 @@ public Update() /// /// Gets or sets the impact area. Possible values include: 'All', /// 'Host', 'Resource', 'InResource', 'OSImage', 'Extension', - /// 'InGuestPatch' + /// 'InGuestPatch', 'SQLDB', 'SQLManagedInstance' /// [JsonProperty(PropertyName = "maintenanceScope")] public string MaintenanceScope { get; set; } diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/Visibility.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/Visibility.cs new file mode 100644 index 000000000000..6a1c3de71e75 --- /dev/null +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/Models/Visibility.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Maintenance.Models +{ + + /// + /// Defines values for Visibility. + /// + public static class Visibility + { + public const string Custom = "Custom"; + public const string Public = "Public"; + } +} diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/PublicMaintenanceConfigurationsOperations.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/PublicMaintenanceConfigurationsOperations.cs new file mode 100644 index 000000000000..56b61c5d5781 --- /dev/null +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/PublicMaintenanceConfigurationsOperations.cs @@ -0,0 +1,409 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Maintenance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PublicMaintenanceConfigurationsOperations operations. + /// + internal partial class PublicMaintenanceConfigurationsOperations : IServiceOperations, IPublicMaintenanceConfigurationsOperations + { + /// + /// Initializes a new instance of the PublicMaintenanceConfigurationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PublicMaintenanceConfigurationsOperations(MaintenanceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the MaintenanceManagementClient + /// + public MaintenanceManagementClient Client { get; private set; } + + /// + /// Get Public Maintenance Configuration records + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new MaintenanceErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + MaintenanceError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get Public Maintenance Configuration record + /// + /// + /// Resource Identifier + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new MaintenanceErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + MaintenanceError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/PublicMaintenanceConfigurationsOperationsExtensions.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/PublicMaintenanceConfigurationsOperationsExtensions.cs new file mode 100644 index 000000000000..6e245ec72ba3 --- /dev/null +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/PublicMaintenanceConfigurationsOperationsExtensions.cs @@ -0,0 +1,89 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Maintenance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PublicMaintenanceConfigurationsOperations. + /// + public static partial class PublicMaintenanceConfigurationsOperationsExtensions + { + /// + /// Get Public Maintenance Configuration records + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable List(this IPublicMaintenanceConfigurationsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Get Public Maintenance Configuration records + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPublicMaintenanceConfigurationsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get Public Maintenance Configuration record + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource Identifier + /// + public static MaintenanceConfiguration Get(this IPublicMaintenanceConfigurationsOperations operations, string resourceName) + { + return operations.GetAsync(resourceName).GetAwaiter().GetResult(); + } + + /// + /// Get Public Maintenance Configuration record + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource Identifier + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPublicMaintenanceConfigurationsOperations operations, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/SdkInfo_MaintenanceManagementClient.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/SdkInfo_MaintenanceManagementClient.cs index ce21eb18036a..b3089b109810 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/SdkInfo_MaintenanceManagementClient.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/SdkInfo_MaintenanceManagementClient.cs @@ -23,6 +23,7 @@ public static IEnumerable> ApiInfo_MaintenanceMana new Tuple("Maintenance", "ConfigurationAssignments", "2020-07-01-preview"), new Tuple("Maintenance", "MaintenanceConfigurations", "2020-07-01-preview"), new Tuple("Maintenance", "Operations", "2020-07-01-preview"), + new Tuple("Maintenance", "PublicMaintenanceConfigurations", "2020-07-01-preview"), new Tuple("Maintenance", "Updates", "2020-07-01-preview"), }.AsEnumerable(); } diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Microsoft.Azure.Management.Maintenance.csproj b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Microsoft.Azure.Management.Maintenance.csproj index d8d3a919367f..0081f6be5f30 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Microsoft.Azure.Management.Maintenance.csproj +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Microsoft.Azure.Management.Maintenance.csproj @@ -6,10 +6,10 @@ Microsoft.Azure.Management.Maintenance Microsoft Azure Maintenance Management Library - 1.1.0 + 1.2.0 Microsoft.Azure.Management.Maintenance Microsoft Azure Maintenance Management;Maintenance; - Provides capabilities to manage Platform and Resource maintenance on Azure resources. This version supports all capabilities in the 2020-04-01 version along with changes to support scheduled maintenance windows. + Provides capabilities to manage Platform and Resource maintenance on Azure resources. This version supports all capabilities in the 2020-04-01 version along with changes to support scheduled maintenance windows and public maintenance configurations. diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Properties/AssemblyInfo.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..7ff8ac080c36 --- /dev/null +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/src/Properties/AssemblyInfo.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Maintenance")] +[assembly: AssemblyDescription("Provides capabilities to manage Platform and Resource maintenance on Azure resources.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Maintenance")] +[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + + +[assembly: AssemblyVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")] diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Helpers/MaintenanceTestUtilities.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Helpers/MaintenanceTestUtilities.cs index b756c391f4fa..422bb8240ddc 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Helpers/MaintenanceTestUtilities.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Helpers/MaintenanceTestUtilities.cs @@ -48,6 +48,18 @@ public static MaintenanceConfiguration CreateTestMaintenanceConfiguration(string return maintenanceConfiguration; } + public static MaintenanceConfiguration CreateTestPublicMaintenanceConfiguration(string maintenanceConfigurationName) + { + var maintenanceConfiguration = new MaintenanceConfiguration( + name: maintenanceConfigurationName, + location: "westus", + startDateTime: "2020-04-01 01:00:00", + visibility: Visibility.Public, + maintenanceScope: MaintenanceScope.SQLDB); + + return maintenanceConfiguration; + } + public static void VerifyMaintenanceConfigurationProperties(MaintenanceConfiguration expected, MaintenanceConfiguration actual) { Assert.NotNull(actual); diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Properties/AssemblyInfo.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Properties/AssemblyInfo.cs index e9910f6bc8dd..0acfa7011784 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Properties/AssemblyInfo.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Properties/AssemblyInfo.cs @@ -20,5 +20,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("6D17E66C-92BB-455C-A150-45922A0BA619")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")] diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/SessionRecords/MaintenanceConfigurationTests/PublicMaintenanceConfigurationGetTest.json b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/SessionRecords/MaintenanceConfigurationTests/PublicMaintenanceConfigurationGetTest.json new file mode 100644 index 000000000000..f04a0be1e2ae --- /dev/null +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/SessionRecords/MaintenanceConfigurationTests/PublicMaintenanceConfigurationGetTest.json @@ -0,0 +1,207 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg1854?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Jlc291cmNlZ3JvdXBzL21haW50ZW5hbmNlX3JnMTg1ND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c97ba0a6-6c77-4417-839d-6fbf1b43bb06" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "53fc56f2-03e0-4314-94ad-6a1cfd5d8fbd" + ], + "x-ms-correlation-request-id": [ + "53fc56f2-03e0-4314-94ad-6a1cfd5d8fbd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235533Z:53fc56f2-03e0-4314-94ad-6a1cfd5d8fbd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourceGroups/maintenance_rg1854\",\r\n \"name\": \"maintenance_rg1854\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg1854/providers/Microsoft.Maintenance/maintenanceConfigurations/maintenancesdk3255?api-version=2020-07-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Jlc291cmNlZ3JvdXBzL21haW50ZW5hbmNlX3JnMTg1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL21haW50ZW5hbmNlQ29uZmlndXJhdGlvbnMvbWFpbnRlbmFuY2VzZGszMjU1P2FwaS12ZXJzaW9uPTIwMjAtMDctMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"maintenanceScope\": \"SQLDB\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b8e493c3-15a2-411c-8f7d-57fea03bc8b9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Maintenance.MaintenanceManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "85" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "284fb9ad-7fb6-45d0-8be0-cafe9fe5f9b5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "284fb9ad-7fb6-45d0-8be0-cafe9fe5f9b5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235534Z:284fb9ad-7fb6-45d0-8be0-cafe9fe5f9b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "402" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n }, \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg1854/providers/Microsoft.Maintenance/maintenanceConfigurations/maintenancesdk3255\",\r\n \"name\": \"maintenancesdk3255\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/maintenancesdk3255?api-version=2020-07-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFpbnRlbmFuY2UvcHVibGljTWFpbnRlbmFuY2VDb25maWd1cmF0aW9ucy9tYWludGVuYW5jZXNkazMyNTU/YXBpLXZlcnNpb249MjAyMC0wNy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b1ecfe50-a011-4c82-9417-b0087ac7e76a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Maintenance.MaintenanceManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4e73859b-c67d-4c27-8b5e-5d6c6a00e52d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "4e73859b-c67d-4c27-8b5e-5d6c6a00e52d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235534Z:4e73859b-c67d-4c27-8b5e-5d6c6a00e52d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "402" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"maintenanceScope\": \"SQLDB\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg1854/providers/Microsoft.Maintenance/maintenanceConfigurations/maintenancesdk3255\",\r\n \"name\": \"maintenancesdk3255\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n}", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "maintenance_rg1854" + ], + "PublicMaintenanceConfigurationGetTest": [ + "maintenancesdk3255" + ] + }, + "Variables": { + "SubscriptionId": "42c974dd-2c03-4f1b-96ad-b07f050aaa74" + } +} \ No newline at end of file diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/SessionRecords/MaintenanceConfigurationTests/PublicMaintenanceConfigurationListTest.json b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/SessionRecords/MaintenanceConfigurationTests/PublicMaintenanceConfigurationListTest.json new file mode 100644 index 000000000000..249c499b6c93 --- /dev/null +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/SessionRecords/MaintenanceConfigurationTests/PublicMaintenanceConfigurationListTest.json @@ -0,0 +1,345 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg3136?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Jlc291cmNlZ3JvdXBzL21haW50ZW5hbmNlX3JnMzEzNj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a4797950-de12-42ce-8a09-7b07704be02f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "9c39a23f-68ca-4fa1-8f6b-8ce671038064" + ], + "x-ms-correlation-request-id": [ + "9c39a23f-68ca-4fa1-8f6b-8ce671038064" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235525Z:9c39a23f-68ca-4fa1-8f6b-8ce671038064" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourceGroups/maintenance_rg3136\",\r\n \"name\": \"maintenance_rg3136\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg3136/providers/Microsoft.Maintenance/maintenanceConfigurations/maintenancesdk5989?api-version=2020-07-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Jlc291cmNlZ3JvdXBzL21haW50ZW5hbmNlX3JnMzEzNi9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL21haW50ZW5hbmNlQ29uZmlndXJhdGlvbnMvbWFpbnRlbmFuY2VzZGs1OTg5P2FwaS12ZXJzaW9uPTIwMjAtMDctMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "39417c9d-07e9-42a7-8a93-44b66d24325c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Maintenance.MaintenanceManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "85" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a34713c8-38c8-4e65-98ef-3acfd14f2c0b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "a34713c8-38c8-4e65-98ef-3acfd14f2c0b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235526Z:a34713c8-38c8-4e65-98ef-3acfd14f2c0b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "402" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"maintenanceScope\": \"SQLDB\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg3136/providers/Microsoft.Maintenance/maintenanceConfigurations/maintenancesdk5989\",\r\n \"name\": \"maintenancesdk5989\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg6391?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Jlc291cmNlZ3JvdXBzL21haW50ZW5hbmNlX3JnNjM5MT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "15106f3e-7572-47a3-9f42-56c33ad5388f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "99220b3c-3179-45b6-9f61-ab69b3a64df9" + ], + "x-ms-correlation-request-id": [ + "99220b3c-3179-45b6-9f61-ab69b3a64df9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235526Z:99220b3c-3179-45b6-9f61-ab69b3a64df9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourceGroups/maintenance_rg6391\",\r\n \"name\": \"maintenance_rg6391\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg6391/providers/Microsoft.Maintenance/maintenanceConfigurations/acinetsdk2792?api-version=2020-07-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Jlc291cmNlZ3JvdXBzL21haW50ZW5hbmNlX3JnNjM5MS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL21haW50ZW5hbmNlQ29uZmlndXJhdGlvbnMvYWNpbmV0c2RrMjc5Mj9hcGktdmVyc2lvbj0yMDIwLTA3LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "41a7b937-4708-47ec-8056-9971fa1d96d7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Maintenance.MaintenanceManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "85" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d0ddaa7d-034c-434f-bf66-8175c68986d1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "d0ddaa7d-034c-434f-bf66-8175c68986d1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235526Z:d0ddaa7d-034c-434f-bf66-8175c68986d1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "392" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"maintenanceScope\": \"SQLDB\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg6391/providers/Microsoft.Maintenance/maintenanceConfigurations/acinetsdk2792\",\r\n \"name\": \"acinetsdk2792\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/providers/Microsoft.Maintenance/publicMaintenanceConfigurations?api-version=2020-07-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDJjOTc0ZGQtMmMwMy00ZjFiLTk2YWQtYjA3ZjA1MGFhYTc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFpbnRlbmFuY2UvcHVibGljTWFpbnRlbmFuY2VDb25maWd1cmF0aW9ucz9hcGktdmVyc2lvbj0yMDIwLTA3LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5d3ba384-0d52-4709-bfbe-e752cdec48cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.00001.0", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Maintenance.MaintenanceManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 10 Sep 2019 23:55:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "944f5e8b-5d86-4fe1-b118-f6c8574c7bc1", + "944f5e8b-5d86-4fe1-b118-f6c8574c7bc1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "944f5e8b-5d86-4fe1-b118-f6c8574c7bc1" + ], + "x-ms-correlation-request-id": [ + "944f5e8b-5d86-4fe1-b118-f6c8574c7bc1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190910T235527Z:944f5e8b-5d86-4fe1-b118-f6c8574c7bc1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "57000" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"maintenanceScope\": \"Resource\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/laurenConfig\",\r\n \"name\": \"laurenConfig\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n }, \r\n \"maintenanceScope\": \"Resource\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/laurenConfigEast2\",\r\n \"name\": \"laurenConfigEast2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsceuap\",\r\n \"name\": \"workervmsceuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmseus\",\r\n \"name\": \"workervmseus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmseastus\",\r\n \"name\": \"workervmseastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/prodeastus\",\r\n \"name\": \"prodeastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/prodcentraluseuap\",\r\n \"name\": \"prodcentraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/ppeeastus\",\r\n \"name\": \"ppeeastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/ppecentraluseuap\",\r\n \"name\": \"ppecentraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/prodconfig\",\r\n \"name\": \"prodconfig\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/ppeeastus2\",\r\n \"name\": \"ppeeastus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervms\",\r\n \"name\": \"workervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2westus\",\r\n \"name\": \"workervmsfullVm2westus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2westus2\",\r\n \"name\": \"workervmsfullVm2westus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2eastus\",\r\n \"name\": \"workervmsfullVm2eastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2eastus2\",\r\n \"name\": \"workervmsfullVm2eastus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2southcentralus\",\r\n \"name\": \"workervmsfullVm2southcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2northcentralus\",\r\n \"name\": \"workervmsfullVm2northcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2westcentralus\",\r\n \"name\": \"workervmsfullVm2westcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2eastasia\",\r\n \"name\": \"workervmsfullVm2eastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2southeastasia\",\r\n \"name\": \"workervmsfullVm2southeastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2canadacentral\",\r\n \"name\": \"workervmsfullVm2canadacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadaeast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2canadaeast\",\r\n \"name\": \"workervmsfullVm2canadaeast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2northeurope\",\r\n \"name\": \"workervmsfullVm2northeurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2westeurope\",\r\n \"name\": \"workervmsfullVm2westeurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"francecentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2francecentral\",\r\n \"name\": \"workervmsfullVm2francecentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2koreacentral\",\r\n \"name\": \"workervmsfullVm2koreacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreasouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2koreasouth\",\r\n \"name\": \"workervmsfullVm2koreasouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japaneast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2japaneast\",\r\n \"name\": \"workervmsfullVm2japaneast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japanwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2japanwest\",\r\n \"name\": \"workervmsfullVm2japanwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2centralindia\",\r\n \"name\": \"workervmsfullVm2centralindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2westindia\",\r\n \"name\": \"workervmsfullVm2westindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2southindia\",\r\n \"name\": \"workervmsfullVm2southindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"uksouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2uksouth\",\r\n \"name\": \"workervmsfullVm2uksouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"ukwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2ukwest\",\r\n \"name\": \"workervmsfullVm2ukwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2centralus\",\r\n \"name\": \"workervmsfullVm2centralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2westus\",\r\n \"name\": \"workervmsdngVmdngVm2westus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2westus2\",\r\n \"name\": \"workervmsdngVmdngVm2westus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2eastus\",\r\n \"name\": \"workervmsdngVmdngVm2eastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2eastus2\",\r\n \"name\": \"workervmsdngVmdngVm2eastus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2southcentralus\",\r\n \"name\": \"workervmsdngVmdngVm2southcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2northcentralus\",\r\n \"name\": \"workervmsdngVmdngVm2northcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2westcentralus\",\r\n \"name\": \"workervmsdngVmdngVm2westcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2eastasia\",\r\n \"name\": \"workervmsdngVmdngVm2eastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2southeastasia\",\r\n \"name\": \"workervmsdngVmdngVm2southeastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2canadacentral\",\r\n \"name\": \"workervmsdngVmdngVm2canadacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadaeast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2canadaeast\",\r\n \"name\": \"workervmsdngVmdngVm2canadaeast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2northeurope\",\r\n \"name\": \"workervmsdngVmdngVm2northeurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2westeurope\",\r\n \"name\": \"workervmsdngVmdngVm2westeurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"francecentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2francecentral\",\r\n \"name\": \"workervmsdngVmdngVm2francecentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2koreacentral\",\r\n \"name\": \"workervmsdngVmdngVm2koreacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreasouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2koreasouth\",\r\n \"name\": \"workervmsdngVmdngVm2koreasouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japaneast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2japaneast\",\r\n \"name\": \"workervmsdngVmdngVm2japaneast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japanwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2japanwest\",\r\n \"name\": \"workervmsdngVmdngVm2japanwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2centralindia\",\r\n \"name\": \"workervmsdngVmdngVm2centralindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2westindia\",\r\n \"name\": \"workervmsdngVmdngVm2westindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2southindia\",\r\n \"name\": \"workervmsdngVmdngVm2southindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"uksouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2uksouth\",\r\n \"name\": \"workervmsdngVmdngVm2uksouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"ukwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2ukwest\",\r\n \"name\": \"workervmsdngVmdngVm2ukwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2centralus\",\r\n \"name\": \"workervmsdngVmdngVm2centralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmwestus\",\r\n \"name\": \"workervmsdngVmwestus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmwestus2\",\r\n \"name\": \"workervmsdngVmwestus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmeastus\",\r\n \"name\": \"workervmsdngVmeastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmeastus2\",\r\n \"name\": \"workervmsdngVmeastus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmsouthcentralus\",\r\n \"name\": \"workervmsdngVmsouthcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmnorthcentralus\",\r\n \"name\": \"workervmsdngVmnorthcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmwestcentralus\",\r\n \"name\": \"workervmsdngVmwestcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmeastasia\",\r\n \"name\": \"workervmsdngVmeastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmsoutheastasia\",\r\n \"name\": \"workervmsdngVmsoutheastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmcanadacentral\",\r\n \"name\": \"workervmsdngVmcanadacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadaeast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmcanadaeast\",\r\n \"name\": \"workervmsdngVmcanadaeast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmnortheurope\",\r\n \"name\": \"workervmsdngVmnortheurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmwesteurope\",\r\n \"name\": \"workervmsdngVmwesteurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"francecentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmfrancecentral\",\r\n \"name\": \"workervmsdngVmfrancecentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmkoreacentral\",\r\n \"name\": \"workervmsdngVmkoreacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreasouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmkoreasouth\",\r\n \"name\": \"workervmsdngVmkoreasouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japaneast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmjapaneast\",\r\n \"name\": \"workervmsdngVmjapaneast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japanwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmjapanwest\",\r\n \"name\": \"workervmsdngVmjapanwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmcentralindia\",\r\n \"name\": \"workervmsdngVmcentralindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmwestindia\",\r\n \"name\": \"workervmsdngVmwestindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmsouthindia\",\r\n \"name\": \"workervmsdngVmsouthindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"uksouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmuksouth\",\r\n \"name\": \"workervmsdngVmuksouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"ukwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmukwest\",\r\n \"name\": \"workervmsdngVmukwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmcentralus\",\r\n \"name\": \"workervmsdngVmcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmwestus\",\r\n \"name\": \"workervmssharedVmwestus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmwestus2\",\r\n \"name\": \"workervmssharedVmwestus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmeastus\",\r\n \"name\": \"workervmssharedVmeastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmeastus2\",\r\n \"name\": \"workervmssharedVmeastus2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmsouthcentralus\",\r\n \"name\": \"workervmssharedVmsouthcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmnorthcentralus\",\r\n \"name\": \"workervmssharedVmnorthcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmwestcentralus\",\r\n \"name\": \"workervmssharedVmwestcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmeastasia\",\r\n \"name\": \"workervmssharedVmeastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmsoutheastasia\",\r\n \"name\": \"workervmssharedVmsoutheastasia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmcanadacentral\",\r\n \"name\": \"workervmssharedVmcanadacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadaeast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmcanadaeast\",\r\n \"name\": \"workervmssharedVmcanadaeast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmnortheurope\",\r\n \"name\": \"workervmssharedVmnortheurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmwesteurope\",\r\n \"name\": \"workervmssharedVmwesteurope\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"francecentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmfrancecentral\",\r\n \"name\": \"workervmssharedVmfrancecentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmkoreacentral\",\r\n \"name\": \"workervmssharedVmkoreacentral\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreasouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmkoreasouth\",\r\n \"name\": \"workervmssharedVmkoreasouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japaneast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmjapaneast\",\r\n \"name\": \"workervmssharedVmjapaneast\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japanwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmjapanwest\",\r\n \"name\": \"workervmssharedVmjapanwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmcentralindia\",\r\n \"name\": \"workervmssharedVmcentralindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmwestindia\",\r\n \"name\": \"workervmssharedVmwestindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmsouthindia\",\r\n \"name\": \"workervmssharedVmsouthindia\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"uksouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmuksouth\",\r\n \"name\": \"workervmssharedVmuksouth\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"ukwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmukwest\",\r\n \"name\": \"workervmssharedVmukwest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmcentralus\",\r\n \"name\": \"workervmssharedVmcentralus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Resource\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/vmssconfig\",\r\n \"name\": \"vmssconfig\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"brazilsouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestbrazilsouth/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestwestus/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestwestus2/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtesteastus/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtesteastus2/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestsouthcentralus/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestnorthcentralus/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestwestcentralus/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtesteastasia/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestsoutheastasia/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestcanadacentral/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"canadaeast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestcanadaeast/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"northeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestnortheurope/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestwesteurope/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreacentral\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestkoreacentral/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"koreasouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestkoreasouth/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japaneast\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestjapaneast/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"japanwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestjapanwest/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestcentralindia/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestwestindia/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"southindia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestsouthindia/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"uksouth\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestuksouth/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"ukwest\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestukwest/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestcentralus/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {}, \r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n },\r\n \"maintenanceScope\": \"SQLDB\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg3136/providers/Microsoft.Maintenance/maintenanceConfigurations/maintenancesdk5989\",\r\n \"name\": \"maintenancesdk5989\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"SQLDB\"\r\n ,\r\n \"maintenanceWindow\":{ \"startDateTime\": \"2020-04-01 01:00:00\"\r\n }, },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenance_rg6391/providers/Microsoft.Maintenance/maintenanceConfigurations/acinetsdk2792\",\r\n \"name\": \"acinetsdk2792\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/ppeeastus\",\r\n \"name\": \"ppeeastus\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/ppecentraluseuap\",\r\n \"name\": \"ppecentraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Resource\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/laurenConfigEast2\",\r\n \"name\": \"laurenConfigEast2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/prodconfig2\",\r\n \"name\": \"prodconfig2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/242c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervms\",\r\n \"name\": \"workervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervms2\",\r\n \"name\": \"workervms2\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {\r\n \"microsoft.Compute.VirtualMachineScaleSet.FollowSdp\": \"true\"\r\n },\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervms\",\r\n \"name\": \"workervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmseastus2euap\",\r\n \"name\": \"workervmseastus2euap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"All\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/batchingtesteastus2euap/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVm2eastus2euap\",\r\n \"name\": \"workervmssharedVm2eastus2euap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVm2centraluseuap\",\r\n \"name\": \"workervmssharedVm2centraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2centraluseuap\",\r\n \"name\": \"workervmsfullVm2centraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsfullVm2eastus2euap\",\r\n \"name\": \"workervmsfullVm2eastus2euap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2centraluseuap\",\r\n \"name\": \"workervmsdngVmdngVm2centraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmdngVm2eastus2euap\",\r\n \"name\": \"workervmsdngVmdngVm2eastus2euap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmcentraluseuap\",\r\n \"name\": \"workervmsdngVmcentraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmsdngVmeastus2euap\",\r\n \"name\": \"workervmsdngVmeastus2euap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmcentraluseuap\",\r\n \"name\": \"workervmssharedVmcentraluseuap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/workervmssharedVmeastus2euap\",\r\n \"name\": \"workervmssharedVmeastus2euap\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestcentraluseuap/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtesteastus2euap/providers/Microsoft.Maintenance/maintenanceConfigurations/batchingtestworkervms\",\r\n \"name\": \"batchingtestworkervms\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"extensionProperties\": {},\r\n \"maintenanceScope\": \"Host\"\r\n },\r\n \"id\": \"/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtest/providers/Microsoft.Maintenance/maintenanceConfigurations/vmsshosttest\",\r\n \"name\": \"vmsshosttest\",\r\n \"type\": \"Microsoft.Maintenance/maintenanceConfigurations\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "maintenance_rg3136", + "maintenance_rg6391" + ], + "PublicMaintenanceConfigurationListTest": [ + "maintenancesdk5989", + "acinetsdk2792" + ] + }, + "Variables": { + "SubscriptionId": "42c974dd-2c03-4f1b-96ad-b07f050aaa74" + } +} \ No newline at end of file diff --git a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Tests/MaintenanceConfigurationTests.cs b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Tests/MaintenanceConfigurationTests.cs index 6908fe0072e8..723db20bf69b 100644 --- a/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Tests/MaintenanceConfigurationTests.cs +++ b/sdk/maintenance/Microsoft.Azure.Management.Maintenance/tests/Tests/MaintenanceConfigurationTests.cs @@ -103,5 +103,64 @@ public void MaintenanceConfigurationListTest() } } + /// + /// Test list public maintenance configurations. + /// + [Fact] + public void PublicMaintenanceConfigurationListTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType())) + { + var resourceClient = MaintenanceTestUtilities.GetResourceManagementClient(context, handler); + var maintenanceClient = MaintenanceTestUtilities.GetMaintenanceManagementClient(context, handler); + + // Create 2 maintenance configurations. + var resourceGroup1 = MaintenanceTestUtilities.CreateResourceGroup(resourceClient); + var maintenanceConfigurationName1 = TestUtilities.GenerateName("maintenancesdk"); + var maintenanceConfiguration1 = MaintenanceTestUtilities.CreateTestPublicMaintenanceConfiguration(maintenanceConfigurationName1); + maintenanceClient.MaintenanceConfigurations.CreateOrUpdate(resourceGroup1.Name, maintenanceConfigurationName1, maintenanceConfiguration1); + + var resourceGroup2 = MaintenanceTestUtilities.CreateResourceGroup(resourceClient); + var maintenanceConfigurationName2 = TestUtilities.GenerateName("acinetsdk"); + var maintenanceConfiguration2 = MaintenanceTestUtilities.CreateTestPublicMaintenanceConfiguration(maintenanceConfigurationName2); + maintenanceClient.MaintenanceConfigurations.CreateOrUpdate(resourceGroup2.Name, maintenanceConfigurationName2, maintenanceConfiguration2); + + // Verify both maintenance configurations exist when listing. + var retrievedMaintenanceConfigurations = maintenanceClient.PublicMaintenanceConfigurations.List(); + Assert.True(retrievedMaintenanceConfigurations.Count() >= 2); + var retrievedMaintenanceConfiguration1 = retrievedMaintenanceConfigurations.Where(cg => cg.Name == maintenanceConfigurationName1).FirstOrDefault(); + MaintenanceTestUtilities.VerifyMaintenanceConfigurationProperties(maintenanceConfiguration1, retrievedMaintenanceConfiguration1); + var retrievedMaintenanceConfiguration2 = retrievedMaintenanceConfigurations.Where(cg => cg.Name == maintenanceConfigurationName2).FirstOrDefault(); + MaintenanceTestUtilities.VerifyMaintenanceConfigurationProperties(maintenanceConfiguration2, retrievedMaintenanceConfiguration2); + } + } + + /// + /// Test get maintenance configuration. + /// + [Fact] + public void PublicMaintenanceConfigurationGetTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType())) + { + var resourceClient = MaintenanceTestUtilities.GetResourceManagementClient(context, handler); + var maintenanceClient = MaintenanceTestUtilities.GetMaintenanceManagementClient(context, handler); + + var resourceGroup = MaintenanceTestUtilities.CreateResourceGroup(resourceClient); + + // Create maintenance configuration. + var maintenanceConfigurationName = TestUtilities.GenerateName("maintenancesdk"); + var maintenanceConfiguration = MaintenanceTestUtilities.CreateTestPublicMaintenanceConfiguration(maintenanceConfigurationName); + + // Verifiy retrieved maintenance configuration. + var retrievedMaintenanceConfiguration = maintenanceClient.PublicMaintenanceConfigurations.Get( maintenanceConfigurationName); + MaintenanceTestUtilities.VerifyMaintenanceConfigurationProperties(maintenanceConfiguration, retrievedMaintenanceConfiguration); + } + } + } }